Files
PlatformIO_ESP32_SimpleBlink/src/main.cpp

16 lines
198 B
C++
Raw Normal View History

#include <Arduino.h>
void setup() {
// put your setup code here, to run once:
pinMode(2,OUTPUT);
}
void loop() {
digitalWrite(2,HIGH);
sleep(1);
digitalWrite(2,LOW);
sleep(1);
}