ui : manage colors and ensure fw using ssd1306 still compile

This commit is contained in:
Florent committed 2025-04-11 22:23:47 +02:00
1 parent 41af329c44
commit 8e04471f89
12 files changed
+77 -34

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@ class DisplayDriver {
protected:
DisplayDriver(int w, int h) { _w = w; _h = h; }
public:
enum Color { DARK, LIGHT };
enum Color { DARK=0, LIGHT, RED, GREEN, BLUE, YELLOW, ORANGE }; // on b/w screen, colors will be !=0 synonym of light
int width() const { return _w; }
int height() const { return _h; }