From 4029da8384efca6a351acc94f812fc7f7bf9018b Mon Sep 17 00:00:00 2001 From: sh123 Date: Sat, 6 Feb 2021 22:23:40 +0200 Subject: [PATCH] Use pin4 for led on T-Beam --- esp32_loraprs.ino | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/esp32_loraprs.ino b/esp32_loraprs.ino index 729075d..a69a3d1 100644 --- a/esp32_loraprs.ino +++ b/esp32_loraprs.ino @@ -2,7 +2,6 @@ #include "WiFi.h" #include "loraprs_service.h" -#define LED_BUILTIN 2 #define LED_TOGGLE_PERIOD 1000 //#define BOARD_T_BEAM // enable for TTG T-Beam board support @@ -21,6 +20,12 @@ #pragma message("Configured for server mode") #endif +#ifdef BOARD_T_BEAM +#define LED_BUILTIN 4 +#else +#define LED_BUILTIN 2 +#endif + void initializeConfig(LoraPrs::Config &cfg) { // client/server mode switch