Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

Commit

Permalink
Renamed FIREBEETLE_COVER_LORA in FIREBEETLE_ESP32_COVER_LORA
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-bs committed Oct 9, 2023
1 parent 7a037e9 commit d2a3450
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
5 changes: 3 additions & 2 deletions BresserWeatherSensorTTN.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -286,15 +287,15 @@
#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
#define PIN_LMIC_RST 25 // D2
#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
Expand Down
11 changes: 6 additions & 5 deletions BresserWeatherSensorTTNCfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
// -
Expand All @@ -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 ---
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d2a3450

Please sign in to comment.