Explorar el Código

Add an LED blinker sketch as an example for ESP32

Patrick Malsom hace 1 año
padre
commit
460e510974
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
  1. 10 0
      blinker/blinker.ino

+ 10 - 0
blinker/blinker.ino

@@ -0,0 +1,10 @@
+const int LED_BUILTIN = 2;
+void setup() {
+    pinMode(LED_BUILTIN, OUTPUT);
+}
+void loop() {
+    digitalWrite(LED_BUILTIN, HIGH);
+    delay(1000);
+    digitalWrite(LED_BUILTIN, LOW);
+    delay(1000);
+}