From 6aa22f60425a0a2e24efdcb75d55edf23b217ef4 Mon Sep 17 00:00:00 2001 From: Alexander Bobkov Date: Fri, 25 Apr 2025 02:44:51 -0400 Subject: [PATCH] ESP32-C3 ePaper --- ESP32-C3_ePaper/src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ESP32-C3_ePaper/src/main.cpp b/ESP32-C3_ePaper/src/main.cpp index e341bc3d2..3f1df49bd 100644 --- a/ESP32-C3_ePaper/src/main.cpp +++ b/ESP32-C3_ePaper/src/main.cpp @@ -40,9 +40,9 @@ void setup() { display.init(115200); display.fillScreen(GxEPD_BLACK); display.update(); - //display.fillScreen(GxEPD_WHITE); - //display.setTextColor(GxEPD_BLACK); - display.setTextColor(GxEPD_WHITE); + display.fillScreen(GxEPD_WHITE); + display.setTextColor(GxEPD_BLACK); + //display.setTextColor(GxEPD_WHITE); display.setFont(&FreeMono9pt7b); //display.setCursor(205, 10); //display.print("ESP32_DisplayNode"); // Takes 195 pixels in width @@ -79,7 +79,7 @@ void setup() { // Draw axis: (x1,y1) @ 5, 100 and width-2*margin_x height-2*margin_y display.drawRect(5, 155, display.width()-10, display.height()-160, GxEPD_RED); display.drawRect(6, 156, display.width()-8, display.height()-158, GxEPD_RED); - display.setTextColor(GxEPD_WHITE); + display.setTextColor(GxEPD_BLACK); display.setFont(&TomThumb); for (int i = 0; i < display.width()-10; i+=50) { display.setCursor(i, display.height());