Taranis-based B/W: Initial Contrast fix

This commit is contained in:
ErNis
2021-11-21 22:43:28 +01:00
committed by Raphael Coeffic
parent 3ffa531fdd
commit 3e9a6b79d3
5 changed files with 26 additions and 9 deletions
+4
View File
@@ -226,6 +226,10 @@ void boardInit()
#endif
backlightInit();
#if defined(GUI)
lcdSetContrast(true);
#endif
}
void boardOff()
+3 -1
View File
@@ -951,7 +951,9 @@ void lcdRefresh();
void lcdRefresh(bool wait=true); // TODO uint8_t wait to simplify this
#endif
void lcdSetRefVolt(unsigned char val);
void lcdSetContrast();
#ifdef __cplusplus
void lcdSetContrast(bool useDefault = false);
#endif
// Top LCD driver
#if defined(TOPLCD_GPIO)
@@ -27,6 +27,7 @@ extern MemoryType memoryType;
void bootloaderInitScreen()
{
lcdSetContrast(true);
}
static void bootloaderDrawMsg(unsigned int x, const char *str, uint8_t line, bool inverted)