Skip to content

Commit

Permalink
Improved board detection
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-bs committed Apr 10, 2024
1 parent 44aab52 commit 01ea7c8
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions config.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,18 @@ const uint8_t subBand = 0; // For US915, change this to 2, otherwise leave on 0
#pragma error ("ARDUINO_CUBECELL_BOARD_V2 awaiting pin map")


#elif defined(ARDUINO_M5STACK_CORE2) || defined(ARDUINO_M5STACK_Core2)
// Note: Depending on board package file date, either variant is used -
// see https://github.com/espressif/arduino-esp32/issues/9423!
#define PIN_LORA_NSS 33
#define PIN_LORA_RST 26
#define PIN_LORA_IRQ 36
#define PIN_LORA_GPIO RADIOLIB_NC
//#define PIN_LORA_GPIO 35 // manual connection - only required for LMIC
#pragma message("ARDUINO_M5STACK_CORE2 defined; assuming M5Stack Module LoRa868 will be used")
#define LORA_CHIP SX1276


#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
Expand All @@ -208,17 +220,6 @@ const uint8_t subBand = 0; // For US915, change this to 2, otherwise leave on 0
#define LORA_CHIP SX1276


#elif defined(ARDUINO_M5STACK_CORE2) || defined(ARDUINO_M5STACK_Core2)
// Note: Depending on board package file date, either variant is used -
// see https://github.com/espressif/arduino-esp32/issues/9423!
#define PIN_LORA_NSS 33
#define PIN_LORA_RST 26
#define PIN_LORA_IRQ 36
#define PIN_LORA_GPIO RADIOLIB_NC
//#define PIN_LORA_GPIO 35 // manual connection - only required for LMIC
#pragma message("ARDUINO_M5STACK_CORE2 defined; assuming M5Stack Module LoRa868 will be used")
#define LORA_CHIP SX1276

#else
#pragma message ("Unknown board - no automagic pinmap available")

Expand Down

0 comments on commit 01ea7c8

Please sign in to comment.