mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
ui : manage colors and ensure fw using ssd1306 still compile
This commit is contained in:
parent
7534c5143f
commit
cf3d55201f
12 changed files with 77 additions and 34 deletions
|
|
@ -38,7 +38,7 @@ void SSD1306Display::setTextSize(int sz) {
|
|||
}
|
||||
|
||||
void SSD1306Display::setColor(Color c) {
|
||||
_color = (c == LIGHT) ? SSD1306_WHITE : SSD1306_BLACK;
|
||||
_color = (c != 0) ? SSD1306_WHITE : SSD1306_BLACK;
|
||||
display.setTextColor(_color);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue