diff --git a/platformio.ini b/platformio.ini index b2cb2bfa..5afa8b70 100644 --- a/platformio.ini +++ b/platformio.ini @@ -29,8 +29,9 @@ lib_deps = ESP32 BLE Arduino@>=0.4.9 build_flags = ;set log level, we need build_flag for this, otherwise we can't use ESP_LOGx in arduino framework - -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE -; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE + -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_INFO +; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE +; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE ;needed for ESP32 BLE Ardunio v0.4.9 -fexceptions -std=c++11 @@ -52,8 +53,9 @@ lib_deps = ESP32 BLE Arduino@>=0.4.9 build_flags = ;set log level, we need build_flag for this, otherwise we can't use ESP_LOGx in arduino framework -; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE - -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE + -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_INFO +; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE +; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE ;needed for ESP32 BLE Ardunio v0.4.9 -fexceptions -std=c++11 @@ -76,8 +78,8 @@ lib_deps = ESP32 BLE Arduino@>=0.4.9 build_flags = ;set log level, we need build_flag for this, otherwise we can't use ESP_LOGx in arduino framework -; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE - -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_INFO + -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_INFO +; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE ; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE ;needed for ESP32 BLE Ardunio v0.4.9 -fexceptions @@ -101,8 +103,9 @@ lib_deps = SmartLeds build_flags = ;set log level, we need build_flag for this, otherwise we can't use ESP_LOGx in arduino framework - -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE -; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE + -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_INFO +; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE +; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE ;needed for ESP32 BLE Ardunio v0.4.9 -fexceptions -std=c++11 @@ -125,8 +128,9 @@ lib_deps = SmartLeds build_flags = ;set log level, we need build_flag for this, otherwise we can't use ESP_LOGx in arduino framework - -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE -; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE + -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_INFO +; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE +; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE ;needed for ESP32 BLE Ardunio v0.4.9 -fexceptions -std=c++11 @@ -149,8 +153,9 @@ lib_deps = SmartLeds build_flags = ;set log level, we need build_flag for this, otherwise we can't use ESP_LOGx in arduino framework - -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE -; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE + -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_INFO +; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE +; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE ;needed for ESP32 BLE Ardunio v0.4.9 -fexceptions -std=c++11 @@ -173,8 +178,9 @@ lib_deps = SmartLeds build_flags = ;set log level, we need build_flag for this, otherwise we can't use ESP_LOGx in arduino framework - -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE -; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE + -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_INFO +; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE +; -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_NONE ;needed for ESP32 BLE Ardunio v0.4.9 -fexceptions -std=c++11 diff --git a/src/hal/lolin32_lora.h b/src/hal/lolin32_lora.h index c6c44337..2b44d105 100644 --- a/src/hal/lolin32_lora.h +++ b/src/hal/lolin32_lora.h @@ -5,7 +5,7 @@ #define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature #define HAS_DISPLAY U8X8_SSD1306_128X64_NONAME_HW_I2C // OLED-Display on board -#define HAS_LED NOT_A_PIN // Led os on same pin than Lora SS pin, to avoid pb, we don't use it +#define HAS_LED NOT_A_PIN // Led os on same pin as Lora SS pin, to avoid problems, we don't use it #define LED_ACTIVE_LOW 1 // Onboard LED is active when pin is LOW // Anyway shield is on over the LoLin32 board, so we won't be able to see this LED #define HAS_RGB_LED 13 // ESP32 GPIO13 (pin13) On Board Shield WS2812B RGB LED diff --git a/src/hal/lopy.h b/src/hal/lopy.h index 47ba20f9..fffb2294 100644 --- a/src/hal/lopy.h +++ b/src/hal/lopy.h @@ -1,7 +1,7 @@ // Hardware related definitions for Pycom LoPy Board (not: LoPy4) #define CFG_sx1272_radio 1 -#define HAS_LED NOT_A_PIN // we use RGB LED on LoPy +#define HAS_LED NOT_A_PIN // LoPy4 has no on board LED, so we use RGB LED on LoPy4 #define HAS_RGB_LED 0 // WS2812B RGB LED on GPIO0 // Hardware pin definitions for Pycom LoPy board diff --git a/src/hal/lopy4.h b/src/hal/lopy4.h index 0764dd05..4ff9ac72 100644 --- a/src/hal/lopy4.h +++ b/src/hal/lopy4.h @@ -1,7 +1,7 @@ // Hardware related definitions for Pycom LoPy Board (not: LoPy4) #define CFG_sx1276_radio 1 -#define HAS_LED NOT_A_PIN // we use RGB LED on LoPy4 +#define HAS_LED NOT_A_PIN // LoPy4 has no on board LED, so we use RGB LED on LoPy4 #define HAS_RGB_LED 0 // WS2812B RGB LED on GPIO0 // Hardware pin definitions for Pycom LoPy4 board