mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-11-11 07:19:39 +00:00
Status LED
This commit is contained in:
@@ -6,19 +6,28 @@
|
|||||||
int myFunction(int, int);
|
int myFunction(int, int);
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
|
|
||||||
|
pinMode(12, OUTPUT);
|
||||||
|
|
||||||
Serial.begin(115200);
|
Serial.begin(115200);
|
||||||
Serial.println("Running setup ...");
|
Serial.println("Running setup ...");
|
||||||
|
|
||||||
|
/*display.init(115200);
|
||||||
display.fillScreen(GxEPD_WHITE);
|
display.fillScreen(GxEPD_WHITE);
|
||||||
display.setTextColor(GxEPD_BLACK);
|
display.setTextColor(GxEPD_BLACK);
|
||||||
display.setFont(&FreeMonoBold9pt7b);
|
display.setFont(&FreeMonoBold9pt7b);
|
||||||
display.setCursor(10, 20);
|
display.setCursor(10, 20);
|
||||||
display.print("ESP32 Display Node");
|
display.print("ESP32 Display Node");
|
||||||
display.update();
|
display.update();*/
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
|
Serial.println("LED ON");
|
||||||
|
digitalWrite(12, HIGH);
|
||||||
|
delay(750);
|
||||||
|
Serial.println("LED OFF");
|
||||||
|
digitalWrite(12, LOW);
|
||||||
|
delay(750);
|
||||||
// put your main code here, to run repeatedly:
|
// put your main code here, to run repeatedly:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user