ESP32-C3 ePaper

This commit is contained in:
2025-04-25 03:35:57 -04:00
parent 32b8ecf2a3
commit b2f7005478

View File

@@ -78,9 +78,9 @@ void setup() {
display.drawRect(str_x+100, str_y-str_inc, 100, str_inc, GxEPD_BLACK);
display.fillRect(str_x+100, str_y-str_inc, 100*0.25, str_inc, GxEPD_BLACK);
// Backups bar
display.drawRect(str_x+100, str_y, 100, str_inc, GxEPD_BLACK);
display.fillRect(str_x+100, str_y, 100*0.75, str_inc, GxEPD_BLACK);
display.fillRect(str_x+100+100*0.75, str_y, 100*0.25, str_inc, GxEPD_RED);
display.drawRect(str_x+100-1, str_y, 100, str_inc, GxEPD_BLACK);
display.fillRect(str_x+100-1, str_y, 100*0.75, str_inc, GxEPD_BLACK);
display.fillRect(str_x+100-1+100*0.75, str_y, 100*0.25, str_inc, GxEPD_RED);
// Display text nicely centered on the display
display.setTextColor(GxEPD_WHITE);