esp-blink.ino 343 Bytes
Newer Older
1
2
#include <Arduino.h>

3
#define     LED_PIN         2           // NODEMCU D4
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#define     SLEEP_INTERVAL  500         // milliseconds

void setup()
{
    Serial.begin(115200);
    pinMode(LED_PIN, OUTPUT);
}

void loop()
{
    digitalWrite(LED_PIN, HIGH);
    delay(SLEEP_INTERVAL);
    digitalWrite(LED_PIN, LOW);
    delay(SLEEP_INTERVAL);
}