mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 23:20:52 +00:00
libs
This commit is contained in:
@@ -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;
|
||||
}
|
Reference in New Issue
Block a user