ESP32-C3 ePaper

This commit is contained in:
2025-04-25 02:53:11 -04:00
parent badeb7e4d2
commit 8d63a7ccd0

View File

@@ -65,10 +65,10 @@ void setup() {
display.print("PreeSerif 9pt7b"); display.print("PreeSerif 9pt7b");
// Display text nicely centered on the display // Display text nicely centered on the display
display.setFont(&FreeSerif18pt7b); // Specify the font family & size display.setFont(&FreeSerif12pt7b); // Specify the font family & size
display.getTextBounds("INFO 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("INFO DASHBOARD"); // Print the text display.print("SERVER DASHBOARD"); // Print the text
//display.update(); //display.update();
//display.drawBitmap(200, 200, gridicons_bug, 24, 24, GxEPD_BLACK); //display.drawBitmap(200, 200, gridicons_bug, 24, 24, GxEPD_BLACK);