feat(bw128): add option to invert LCD/OLED display (#4933)

This commit is contained in:
philmoz
2024-06-06 07:52:45 +10:00
committed by GitHub
parent fb2188cacd
commit 65e05085a4
15 changed files with 275 additions and 191 deletions
@@ -411,3 +411,10 @@ void lcdSetRefVolt(uint8_t val)
lcdWriteCommand(0x81); // Set Vop
lcdWriteCommand(val+LCD_CONTRAST_OFFSET); // 0-255
}
#if LCD_W == 128
void lcdSetInvert(bool invert)
{
lcdWriteCommand(invert ? 0xA7 : 0xA6);
}
#endif