add support for new companion ui on thinknode m1

This commit is contained in:
liamcottle 2025-08-09 00:21:10 +12:00
parent 4b95c981bb
commit 8d7a49867f
5 changed files with 8 additions and 3 deletions

View file

@ -68,10 +68,11 @@ void GxEPDDisplay::setTextSize(int sz) {
}
void GxEPDDisplay::setColor(Color c) {
// colours need to be inverted for epaper displays
if (c == DARK) {
display.setTextColor(_curr_color = GxEPD_BLACK);
} else {
display.setTextColor(_curr_color = GxEPD_WHITE);
} else {
display.setTextColor(_curr_color = GxEPD_BLACK);
}
}