Skip to content

armgit / flix

Public Imported from GitHub
0

Making an ESP32-based quadcopter from scratch

Define ESP32 Dev Module LED pin

Oleg Kalachev2fbebe102e41
diff --git a/flix/led.ino b/flix/led.ino
index 30b79ce..f06a926 100644
--- a/flix/led.ino
+++ b/flix/led.ino
@@ -5,6 +5,10 @@
#define BLINK_PERIOD 500000
+#ifndef LED_BUILTIN
+#define LED_BUILTIN 2 // for ESP32 Dev Module
+#endif
+
void setupLED() {
pinMode(LED_BUILTIN, OUTPUT);
}