ESP32-C3 ePaper

This commit is contained in:
2025-04-25 03:19:06 -04:00
parent fd83fc79c7
commit b3b334e956

View File

@@ -74,7 +74,7 @@ void setup() {
display.setTextColor(GxEPD_WHITE); display.setTextColor(GxEPD_WHITE);
display.setFont(&FreeSansBold12pt7b); // Specify the font family & size display.setFont(&FreeSansBold12pt7b); // Specify the font family & size
display.getTextBounds("SERVER INFOBOARD", 0, 0, &tbx, &tby, &tbw, &tbh); // Request width of text to be displayed display.getTextBounds("SERVER INFOBOARD", 0, 0, &tbx, &tby, &tbw, &tbh); // Request width of text to be displayed
display.setCursor((display.width() - tbw) / 2, 24); // Calculate x-coordinate value display.setCursor((display.width() - tbw) / 2, 20); // Calculate x-coordinate value
display.print("SERVER INFOBOARD"); // Print the text display.print("SERVER INFOBOARD"); // Print the text
//display.update(); //display.update();