LCD asynchronous refresh prepared for Taranis+

This commit is contained in:
bsongis
2014-07-05 19:32:00 +02:00
parent 838190ce80
commit f66388c1d3
3 changed files with 11 additions and 3 deletions
+8 -1
View File
@@ -264,7 +264,14 @@ void lcdSetRefVolt(unsigned char val);
void lcdInit();
void lcd_clear();
void lcdSetContrast();
void lcdRefresh();
#if defined(PCBTARANIS) && defined(REVPLUS) && !defined(SIMU)
void lcdRefresh(bool wait=true);
#define LCD_REFRESH_DONT_WAIT false
#else
void lcdRefresh();
#define LCD_REFRESH_DONT_WAIT
#endif
#if defined(PCBTARANIS)
const pm_char * bmpLoad(uint8_t *dest, const char *filename, const xcoord_t width, const uint8_t height);
+2 -1
View File
@@ -2853,7 +2853,8 @@ void perMain()
}
drawStatusLine();
lcdRefresh();
lcdRefresh(LCD_REFRESH_DONT_WAIT);
if (SLAVE_MODE()) {
JACK_PPM_OUT();
+1 -1
View File
@@ -161,7 +161,7 @@ void Set_Address(u8 x, u8 y)
LCD_CLK_HIGH();
#if defined(REVPLUS)
void lcdRefresh()
void lcdRefresh(bool wait)
{
Set_Address(0, 0);