ESP32-C3 ePaper

This commit is contained in:
2025-04-25 03:14:53 -04:00
parent 5d84fea334
commit e0c883be4b

View File

@@ -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();