From 60409a7413eca0b35adfd9d9c34cb3600f9f49a9 Mon Sep 17 00:00:00 2001 From: Swade Cirata Date: Sat, 5 Sep 2026 12:48:34 -0500 Subject: [PATCH] Added support for the second RF slot on the Station G3 --- variants/station_g3_esp32_rf2/platformio.ini | 41 ++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 variants/station_g3_esp32_rf2/platformio.ini diff --git a/variants/station_g3_esp32_rf2/platformio.ini b/variants/station_g3_esp32_rf2/platformio.ini new file mode 100644 index 0000000000..2703a1972b --- /dev/null +++ b/variants/station_g3_esp32_rf2/platformio.ini @@ -0,0 +1,41 @@ +; Station G3 ESP32 second RF slot (RF2) +; +; Reuses the existing Station G3 environments and source code while +; overriding only the GPIOs that differ between RF1 and RF2. + +[station_g3_esp32_rf2_pins] +build_unflags = + ; Remove RF1 pin definitions inherited from Station_G3_ESP32 + -D P_LORA_DIO_1 + -D P_LORA_NSS + -D P_LORA_RESET + -D P_LORA_BUSY + -D P_LORA_SCLK + -D P_LORA_MISO + -D P_LORA_MOSI + -D P_PRIMARY_LNA_EN + +build_flags = + ; Station G3 RF2 pin definitions + -D P_LORA_DIO_1=2 + -D P_LORA_NSS=43 + -D P_LORA_RESET=44 + -D P_LORA_BUSY=1 + -D P_LORA_SCLK=39 + -D P_LORA_MISO=41 + -D P_LORA_MOSI=40 + -D P_PRIMARY_LNA_EN=42 + + +[env:Station_G3_ESP32_RF2_repeater] +extends = env:Station_G3_ESP32_repeater +build_flags = + ${env:Station_G3_ESP32_repeater.build_flags} + ${station_g3_esp32_rf2_pins.build_flags} + + +[env:Station_G3_ESP32_RF2_repeater_observer_mqtt] +extends = env:Station_G3_ESP32_repeater_observer_mqtt +build_flags = + ${env:Station_G3_ESP32_repeater_observer_mqtt.build_flags} + ${station_g3_esp32_rf2_pins.build_flags} \ No newline at end of file