Skip to content

Commit

Permalink
Merge pull request #113 from matthias-bs/feature-heltec-wifi-lora-32-v3
Browse files Browse the repository at this point in the history
Added support for Heltec WiFi LoRa 32 V3
  • Loading branch information
matthias-bs authored Nov 27, 2023
2 parents e759373 + f8ac86e commit 0d37102
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
- esp32:esp32:ttgo-lora32:Revision=TTGO_LoRa32_v21new
- esp32:esp32:heltec_wireless_stick:PSRAM=disabled
- esp32:esp32:heltec_wifi_lora_32_V2
- esp32:esp32:heltec_wifi_lora_32_V3
- esp32:esp32:adafruit_feather_esp32s2
- esp32:esp32:featheresp32
- esp8266:esp8266:generic:dbg=Disabled
Expand Down
18 changes: 18 additions & 0 deletions src/WeatherSensorCfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
// 20230927 Removed _DEBUG_MODE_ (log_d() is used instead)
// 20231004 Added function names and line numbers to ESP8266/RP2040 debug logging
// 20231101 Added USE_SX1262 for Heltec Wireless Stick V3
// 20231121 Added Heltec WiFi LoRa32 V3
//
// ToDo:
// -
Expand Down Expand Up @@ -175,6 +176,10 @@
#pragma message("ARDUINO_heltec_wifi_lora_32_V2 defined; using on-board transceiver")
#define USE_SX1276

#elif defined(ARDUINO_heltec_wifi_32_lora_V3)
#pragma message("ARDUINO_heltec_wifi_32_lora_V3 defined; using on-board transceiver")
#define USE_SX1262

#elif defined(ARDUINO_ADAFRUIT_FEATHER_ESP32S2)
#pragma message("ARDUINO_ADAFRUIT_FEATHER_ESP32S2 defined; assuming RFM95W FeatherWing will be used")
#define USE_SX1276
Expand Down Expand Up @@ -418,6 +423,19 @@
// RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
#define PIN_RECEIVER_RST RST_LoRa

#elif defined(ARDUINO_heltec_wifi_32_lora_V3)
// Use pinning for Heltec WiFi LoRa32 V3
#define PIN_RECEIVER_CS SS

// CC1101: GDO0 / RFM95W/SX127x: G0 / SX1262: DIO0
#define PIN_RECEIVER_IRQ DIO0

// CC1101: GDO2 / RFM95W/SX127x: G1 / SX1262: BUSY
#define PIN_RECEIVER_GPIO BUSY_LoRa

// RFM95W/SX127x - GPIOxx / CC1101 - RADIOLIB_NC
#define PIN_RECEIVER_RST RST_LoRa

#elif defined(ARDUINO_ADAFRUIT_FEATHER_ESP32S2)
// Use pinning for Adafruit Feather ESP32S2 with RFM95W "FeatherWing" ADA3232
#define PIN_RECEIVER_CS 6
Expand Down

0 comments on commit 0d37102

Please sign in to comment.