ESP32-C3 ePaper

This commit is contained in:
2025-04-25 02:59:59 -04:00
parent 1cc6b366d9
commit 5dc7fb53f3

View File

@@ -68,7 +68,7 @@ void setup() {
display.print("Archives Storage"); display.print("Archives Storage");
// Display text nicely centered on the display // Display text nicely centered on the display
display.setFont(&Freesans12pt7b); // Specify the font family & size display.setFont(&FreeSans12pt7b); // Specify the font family & size
display.getTextBounds("SERVER DASHBOARD", 10, 100, &tbx, &tby, &tbw, &tbh); // Request width of text to be displayed display.getTextBounds("SERVER DASHBOARD", 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.setCursor((display.width() - tbw) / 2, 100); // Calculate x-coordinate value
display.print("SERVER DASHBOARD"); // Print the text display.print("SERVER DASHBOARD"); // Print the text