From b2f7005478c8d50c84cc818280e111e2b929fbe6 Mon Sep 17 00:00:00 2001 From: Alexander Bobkov Date: Fri, 25 Apr 2025 03:35:57 -0400 Subject: [PATCH] ESP32-C3 ePaper --- ESP32-C3_ePaper/src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ESP32-C3_ePaper/src/main.cpp b/ESP32-C3_ePaper/src/main.cpp index 2d039fc46..6b6ca4301 100644 --- a/ESP32-C3_ePaper/src/main.cpp +++ b/ESP32-C3_ePaper/src/main.cpp @@ -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);