From e0c883be4b7ecf6ef78be645b7d3a67b9b5caec4 Mon Sep 17 00:00:00 2001 From: Alexander Bobkov Date: Fri, 25 Apr 2025 03:14:53 -0400 Subject: [PATCH] ESP32-C3 ePaper --- ESP32-C3_ePaper/src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ESP32-C3_ePaper/src/main.cpp b/ESP32-C3_ePaper/src/main.cpp index 7868d791b..a11a028bb 100644 --- a/ESP32-C3_ePaper/src/main.cpp +++ b/ESP32-C3_ePaper/src/main.cpp @@ -73,8 +73,8 @@ void setup() { // Display text nicely centered on the display display.setTextColor(GxEPD_WHITE); display.setFont(&FreeSansBold12pt7b); // Specify the font family & size - display.getTextBounds("SERVER INFOBOARD", 10, 100, &tbx, &tby, &tbw, &tbh); // Request width of text to be displayed - display.setCursor((display.width() - tbw) / 2, 100); // Calculate x-coordinate value + display.getTextBounds("SERVER INFOBOARD", 0, 0, &tbx, &tby, &tbw, &tbh); // Request width of text to be displayed + display.setCursor((display.width() - tbw) / 2, 0); // Calculate x-coordinate value display.print("SERVER INFOBOARD"); // Print the text //display.update();