mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-07 22:56:11 +00:00
ESP32-C3 ePaper
This commit is contained in:
@@ -74,7 +74,7 @@ void setup() {
|
||||
display.setTextColor(GxEPD_WHITE);
|
||||
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.setCursor((display.width() - tbw) / 2, 0); // Calculate x-coordinate value
|
||||
display.setCursor((display.width() - tbw) / 2, 12); // Calculate x-coordinate value
|
||||
display.print("SERVER INFOBOARD"); // Print the text
|
||||
//display.update();
|
||||
|
||||
|
Reference in New Issue
Block a user