From e2d7ae75335b596d58de5c5681c924310550ab21 Mon Sep 17 00:00:00 2001 From: tablatronix Date: Mon, 29 Jul 2019 16:33:59 -0500 Subject: [PATCH] ESP32 DEFINE LED_BUILTIN --- .../AutoConnectWithFeedbackLED.ino | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/examples/AutoConnect/AutoConnectWithFeedbackLED/AutoConnectWithFeedbackLED.ino b/examples/AutoConnect/AutoConnectWithFeedbackLED/AutoConnectWithFeedbackLED.ino index 532ceec..72279a0 100644 --- a/examples/AutoConnect/AutoConnectWithFeedbackLED/AutoConnectWithFeedbackLED.ino +++ b/examples/AutoConnect/AutoConnectWithFeedbackLED/AutoConnectWithFeedbackLED.ino @@ -5,7 +5,12 @@ //for LED status #include Ticker ticker; -int LED = BUILTIN_LED; + +#ifndef LED_BUILTIN +#define LED_BUILTIN 13 // ESP32 DOES NOT DEFINE LED_BUILTIN +#endif + +int LED = LED_BUILTIN; void tick() {