This commit is contained in:
2024-02-18 23:16:44 -05:00
parent e24ea3f282
commit c4158aee6f
1244 changed files with 107427 additions and 23 deletions

View File

@@ -1,9 +1,9 @@
#include <Arduino.h>
//#include <Fonts/FreeMonoBold9pt7b.h>
#include "ePaper.h"
// put function declarations here:
int myFunction(int, int);
void loop();
void setup();
void setup() {
@@ -18,13 +18,13 @@ void setup() {
display.setTextColor(GxEPD_BLACK);
display.setFont(&FreeMono9pt7b);
display.setCursor(205, 10);
display.print("ESP32_DisplayNode");
display.print("ESP32_DisplayNode"); // Takes 195 pixels in width
display.setCursor(5, 5);
display.setFont(&TomThumb);
display.print("10.100.50.105");
// Add UI elements
// Draw axis: (x1,y1) @ 5, 100 and width-2*margin_x height-2*margin_y 140
// Draw axis: (x1,y1) @ 5, 100 and width-2*margin_x height-2*margin_y
display.drawRect(5, 155, display.width()-10, display.height()-160, GxEPD_RED);
display.setFont(&TomThumb);
for (int i = 0; i < display.width()-10; i+=50) {
@@ -47,10 +47,4 @@ void loop() {
Serial.println("LED OFF");
digitalWrite(12, LOW);
delay(750);
// put your main code here, to run repeatedly:
}
// put function definitions here:
int myFunction(int x, int y) {
return x + y;
}