diff --git a/BresserWeatherSensorTTN.ino b/BresserWeatherSensorTTN.ino index a3c39d1..c270e9a 100644 --- a/BresserWeatherSensorTTN.ino +++ b/BresserWeatherSensorTTN.ino @@ -117,6 +117,7 @@ // (instead of ESP32's RTC RAM) // 20231006 [RP2040] Added sleep mode and wake-up by RTC // 20231008 [RP2040] Added configuration for distance sensor +// 20231009 Renamed FIREBEETLE_COVER_LORA in FIREBEETLE_ESP32_COVER_LORA // // ToDo: // - Implement RTC setting/time-keeping after reset @@ -286,7 +287,7 @@ #pragma message("ARDUINO_ADAFRUIT_FEATHER_RP2040 defined; assuming RFM95W FeatherWing will be used") #pragma message("Required wiring: A to RST, B to DIO1, D to DIO0, E to CS") -#elif defined(FIREBEETLE_COVER_LORA) +#elif defined(FIREBEETLE_ESP32_COVER_LORA) // https://wiki.dfrobot.com/FireBeetle_ESP32_IOT_Microcontroller(V3.0)__Supports_Wi-Fi_&_Bluetooth__SKU__DFR0478 // https://wiki.dfrobot.com/FireBeetle_Covers_LoRa_Radio_868MHz_SKU_TEL0125 #define PIN_LMIC_NSS 27 // D4 @@ -294,7 +295,7 @@ #define PIN_LMIC_DIO0 26 // D3 #define PIN_LMIC_DIO1 9 // D5 #define PIN_LMIC_DIO2 cMyLoRaWAN::lmic_pinmap::LMIC_UNUSED_PIN - #pragma message("FIREBEETLE_COVER_LORA defined; assuming FireBeetle ESP32 with FireBeetle Cover LoRa will be used") + #pragma message("FIREBEETLE_ESP32_COVER_LORA defined; assuming FireBeetle ESP32 with FireBeetle Cover LoRa will be used") #pragma message("Required wiring: D2 to RESET, D3 to DIO0, D4 to CS, D5 to DIO1") #else diff --git a/BresserWeatherSensorTTNCfg.h b/BresserWeatherSensorTTNCfg.h index c72b288..69f8c4e 100644 --- a/BresserWeatherSensorTTNCfg.h +++ b/BresserWeatherSensorTTNCfg.h @@ -64,6 +64,7 @@ // 20231009 Added configuration for FIREBEETLE_COVER_LORA // Improved config for Firebeetle Cover LoRa and // Adafruit Feather ESP32-S2 (default battery voltage thresholds) +// Renamed FIREBEETLE_COVER_LORA in FIREBEETLE_ESP32_COVER_LORA // // ToDo: // - @@ -88,7 +89,7 @@ //#define LORAWAN_NODE // Use pinning for Firebeetle Cover LoRa - #define FIREBEETLE_COVER_LORA + #define FIREBEETLE_ESP32_COVER_LORA #endif //--- Select LoRaWAN Network --- @@ -116,7 +117,7 @@ #pragma message("External voltage divider required for battery voltage measurement.") #pragma message("Setting BATTERY_WEAK 0 (no power-saving).") #define BATTERY_WEAK 0 -#elif defined(FIREBEETLE_COVER_LORA) +#elif defined(FIREBEETLE_ESP32_COVER_LORA) #pragma message("On-board voltage divider must be enabled for battery voltage measurement (see schematic).") #pragma message("Setting BATTERY_WEAK 0 (no power-saving).") #define BATTERY_WEAK 0 @@ -130,7 +131,7 @@ // External voltage divider required #pragma message("Setting BATTERY_LOW 0 (no deep-discharge prevention).") #define BATTERY_LOW 0 -#elif defined(FIREBEETLE_COVER_LORA) +#elif defined(FIREBEETLE_ESP32_COVER_LORA) #pragma message("Setting BATTERY_LOW 0 (no deep-discharge prevention).") #define BATTERY_LOW 0 #else @@ -218,7 +219,7 @@ const char* TZ_INFO = "CET-1CEST-2,M3.5.0/02:00:00,M10.5.0/03:00:00"; #define PIN_ADC_IN 35 #elif defined(ARDUINO_FEATHER_ESP32) #define PIN_ADC_IN A13 - #elif defined(LORAWAN_NODE) || defined(FIREBEETLE_COVER_LORA) + #elif defined(LORAWAN_NODE) || defined(FIREBEETLE_ESP32_COVER_LORA) #define PIN_ADC_IN A0 #elif defined(ARDUINO_ADAFRUIT_FEATHER_RP2040) #define PIN_ADC_IN A0 @@ -265,7 +266,7 @@ const char* TZ_INFO = "CET-1CEST-2,M3.5.0/02:00:00,M10.5.0/03:00:00"; #define PIN_ONEWIRE_BUS 21 #elif defined(ARDUINO_FEATHER_ESP32) || defined(ARDUINO_ADAFRUIT_FEATHER_ESP32S2) #define PIN_ONEWIRE_BUS 15 - #elif defined(LORAWAN_NODE) || defined(FIREBEETLE_COVER_LORA) + #elif defined(LORAWAN_NODE) || defined(FIREBEETLE_ESP32_COVER_LORA) #define PIN_ONEWIRE_BUS 5 #elif defined(ARDUINO_ADAFRUIT_FEATHER_RP2040) #define PIN_ONEWIRE_BUS 6