diff --git a/examples/LoRaWAN/LoRaWAN_ABP/configABP.h b/examples/LoRaWAN/LoRaWAN_ABP/configABP.h index dd3e70b5..4a2f6be4 100644 --- a/examples/LoRaWAN/LoRaWAN_ABP/configABP.h +++ b/examples/LoRaWAN/LoRaWAN_ABP/configABP.h @@ -73,17 +73,24 @@ const uint8_t subBand = 0; // For US915, change this to 2, otherwise leave on 0 #pragma message ("Using Heltec WiFi LoRa32") SX1276 radio = new Module(18, 26, 14, 33); -#elif defined(ARDUINO_HELTEC_WIFI_LORA_32_V2) - #pragma message ("Using Heltec WiFi LoRa32 v2") - SX1276 radio = new Module(18, 26, 14, 35); +#elif defined (ARDUINO_heltec_wireless_stick) + #pragma message ("Using Heltec Wireless Stick") + SX1278 radio = new Module(14, 4, 12, 16); + +#elif defined(ARDUINO_heltec_wifi_lora_32_V2) + #pragma message ("Using Heltec WiFi LoRa32 v2") + SX1278 radio = new Module(14, 4, 12, 16); + +// #elif defined(ARDUINO_heltec_wifi_lora_32_V2) +// #pragma message ("ARDUINO_heltec_wifi_kit_32_V2 awaiting pin map") +// SX1276 radio = new Module(18, 26, 14, 35); -#elif defined(ARDUINO_HELTEC_WIFI_LORA_32_V3) - #pragma message ("Using Heltec WiFi LoRa32 v3") - SX1262 radio = new Module(8, 14, 12, 13); #elif defined(ARDUINO_heltec_wifi_lora_32_V3) #pragma message ("Using Heltec WiFi LoRa32 v3 - Display + USB-C") SX1262 radio = new Module(8, 14, 12, 13); - + + +// Following not verified #elif defined (ARDUINO_HELTEC_WIRELESS_STICK) #pragma message ("Using Heltec Wireless Stick") SX1276 radio = new Module(18, 26, 14, 35); @@ -100,6 +107,8 @@ const uint8_t subBand = 0; // For US915, change this to 2, otherwise leave on 0 #pragma message ("Using Heltec Wireless Stick Lite v3") SX1262 radio = new Module(34, 14, 12, 13); + +// Following may experience timing issues #elif defined(ARDUINO_CUBECELL_BOARD) #pragma message ("Using CubeCell") SX1262 radio = new Module(RADIOLIB_BUILTIN_MODULE); @@ -108,6 +117,7 @@ const uint8_t subBand = 0; // For US915, change this to 2, otherwise leave on 0 #pragma error ("ARDUINO_CUBECELL_BOARD_V2 awaiting pin map") +// If we don't recognise the board #else #pragma message ("Unknown board - no automagic pinmap available") @@ -116,6 +126,9 @@ const uint8_t subBand = 0; // For US915, change this to 2, otherwise leave on 0 // SX1278 pin order: Module(NSS/CS, DIO0, RESET, DIO1); // SX1278 radio = new Module(10, 2, 9, 3); + + // For Pi Pico + Waveshare HAT - work in progress + // SX1262 radio = new Module(3, 20, 15, 2, SPI1, RADIOLIB_DEFAULT_SPI_SETTINGS); #endif