From 3e796be4310110cd8dc90e2cfce20453d7900e0f Mon Sep 17 00:00:00 2001 From: lewisxhe Date: Fri, 27 Dec 2024 10:49:13 +0800 Subject: [PATCH] Update setupBoards func --- examples/ArduinoLoRa/LoRaReceiver/LoRaBoards.cpp | 10 +++++++--- examples/ArduinoLoRa/LoRaSender/LoRaBoards.cpp | 10 +++++++--- examples/BPFFactory/LoRaBoards.cpp | 10 +++++++--- examples/Display/Free_Font_Demo/LoRaBoards.cpp | 10 +++++++--- examples/Display/TBeam_TFT_Shield/LoRaBoards.cpp | 10 +++++++--- examples/Display/TFT_Char_times/LoRaBoards.cpp | 10 +++++++--- examples/Display/UTFT_demo/LoRaBoards.cpp | 10 +++++++--- examples/Factory/LoRaBoards.cpp | 10 +++++++--- examples/GPS/TinyGPS_Example/LoRaBoards.cpp | 10 +++++++--- examples/GPS/TinyGPS_FullExample/LoRaBoards.cpp | 10 +++++++--- examples/GPS/TinyGPS_KitchenSink/LoRaBoards.cpp | 10 +++++++--- examples/GPS/UBlox_BasicNMEARead/LoRaBoards.cpp | 10 +++++++--- examples/GPS/UBlox_NMEAParsing/LoRaBoards.cpp | 10 +++++++--- examples/GPS/UBlox_OutputRate/LoRaBoards.cpp | 10 +++++++--- examples/GPS/UBlox_Recovery/LoRaBoards.cpp | 10 +++++++--- examples/LoRaWAN/LMIC_Library_OTTA/LoRaBoards.cpp | 10 +++++++--- examples/LoRaWAN/LoRaWAN_ABP/LoRaBoards.cpp | 10 +++++++--- examples/LoRaWAN/RadioLib_OTAA/LoRaBoards.cpp | 10 +++++++--- examples/OLED/SH1106FontUsage/LoRaBoards.cpp | 10 +++++++--- examples/OLED/SH1106GraphicsTest/LoRaBoards.cpp | 10 +++++++--- examples/OLED/SH1106IconMenu/LoRaBoards.cpp | 10 +++++++--- examples/OLED/SH1106PrintUTF8/LoRaBoards.cpp | 10 +++++++--- examples/OLED/SSD1306SimpleDemo/LoRaBoards.cpp | 10 +++++++--- examples/OLED/SSD1306UiDemo/LoRaBoards.cpp | 10 +++++++--- examples/PMU/LoRaBoards.cpp | 10 +++++++--- .../RadioLibExamples/Receive_Interrupt/LoRaBoards.cpp | 10 +++++++--- .../RadioLibExamples/Transmit_Interrupt/LoRaBoards.cpp | 10 +++++++--- .../BME280_AdvancedsettingsExample/LoRaBoards.cpp | 10 +++++++--- examples/Sensor/BME280_TestExample/LoRaBoards.cpp | 10 +++++++--- examples/Sensor/BME280_UnifiedExample/LoRaBoards.cpp | 10 +++++++--- examples/Sensor/PCF8563_AlarmByUnits/LoRaBoards.cpp | 10 +++++++--- examples/Sensor/PCF8563_SimpleTime/LoRaBoards.cpp | 10 +++++++--- examples/Sensor/PCF8563_TimeLib/LoRaBoards.cpp | 10 +++++++--- .../Sensor/PCF8563_TimeSynchronization/LoRaBoards.cpp | 10 +++++++--- .../Sensor/QMC6310_CalibrateExample/LoRaBoards.cpp | 10 +++++++--- examples/Sensor/QMC6310_CompassExample/LoRaBoards.cpp | 10 +++++++--- examples/Sensor/QMC6310_GetDataExample/LoRaBoards.cpp | 10 +++++++--- examples/Sensor/QMC6310_GetPolarExample/LoRaBoards.cpp | 10 +++++++--- examples/Sensor/QMI8658_BlockExample/LoRaBoards.cpp | 10 +++++++--- examples/Sensor/QMI8658_GetDataExample/LoRaBoards.cpp | 10 +++++++--- .../QMI8658_InterruptBlockExample/LoRaBoards.cpp | 10 +++++++--- .../Sensor/QMI8658_InterruptExample/LoRaBoards.cpp | 10 +++++++--- .../QMI8658_LockingMechanismExample/LoRaBoards.cpp | 10 +++++++--- examples/Sensor/QMI8658_MadgwickAHRS/LoRaBoards.cpp | 10 +++++++--- .../Sensor/QMI8658_PedometerExample/LoRaBoards.cpp | 10 +++++++--- .../Sensor/QMI8658_ReadFromFifoExample/LoRaBoards.cpp | 10 +++++++--- examples/Sensor/QMI8658_WakeOnMotion/LoRaBoards.cpp | 10 +++++++--- examples/T3S3Factory/LoRaBoards.cpp | 10 +++++++--- examples/TBeamFactory/LoRaBoards.cpp | 10 +++++++--- 49 files changed, 343 insertions(+), 147 deletions(-) diff --git a/examples/ArduinoLoRa/LoRaReceiver/LoRaBoards.cpp b/examples/ArduinoLoRa/LoRaReceiver/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/ArduinoLoRa/LoRaReceiver/LoRaBoards.cpp +++ b/examples/ArduinoLoRa/LoRaReceiver/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/ArduinoLoRa/LoRaSender/LoRaBoards.cpp b/examples/ArduinoLoRa/LoRaSender/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/ArduinoLoRa/LoRaSender/LoRaBoards.cpp +++ b/examples/ArduinoLoRa/LoRaSender/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/BPFFactory/LoRaBoards.cpp b/examples/BPFFactory/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/BPFFactory/LoRaBoards.cpp +++ b/examples/BPFFactory/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/Display/Free_Font_Demo/LoRaBoards.cpp b/examples/Display/Free_Font_Demo/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/Display/Free_Font_Demo/LoRaBoards.cpp +++ b/examples/Display/Free_Font_Demo/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/Display/TBeam_TFT_Shield/LoRaBoards.cpp b/examples/Display/TBeam_TFT_Shield/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/Display/TBeam_TFT_Shield/LoRaBoards.cpp +++ b/examples/Display/TBeam_TFT_Shield/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/Display/TFT_Char_times/LoRaBoards.cpp b/examples/Display/TFT_Char_times/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/Display/TFT_Char_times/LoRaBoards.cpp +++ b/examples/Display/TFT_Char_times/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/Display/UTFT_demo/LoRaBoards.cpp b/examples/Display/UTFT_demo/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/Display/UTFT_demo/LoRaBoards.cpp +++ b/examples/Display/UTFT_demo/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/Factory/LoRaBoards.cpp b/examples/Factory/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/Factory/LoRaBoards.cpp +++ b/examples/Factory/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/GPS/TinyGPS_Example/LoRaBoards.cpp b/examples/GPS/TinyGPS_Example/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/GPS/TinyGPS_Example/LoRaBoards.cpp +++ b/examples/GPS/TinyGPS_Example/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/GPS/TinyGPS_FullExample/LoRaBoards.cpp b/examples/GPS/TinyGPS_FullExample/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/GPS/TinyGPS_FullExample/LoRaBoards.cpp +++ b/examples/GPS/TinyGPS_FullExample/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/GPS/TinyGPS_KitchenSink/LoRaBoards.cpp b/examples/GPS/TinyGPS_KitchenSink/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/GPS/TinyGPS_KitchenSink/LoRaBoards.cpp +++ b/examples/GPS/TinyGPS_KitchenSink/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/GPS/UBlox_BasicNMEARead/LoRaBoards.cpp b/examples/GPS/UBlox_BasicNMEARead/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/GPS/UBlox_BasicNMEARead/LoRaBoards.cpp +++ b/examples/GPS/UBlox_BasicNMEARead/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/GPS/UBlox_NMEAParsing/LoRaBoards.cpp b/examples/GPS/UBlox_NMEAParsing/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/GPS/UBlox_NMEAParsing/LoRaBoards.cpp +++ b/examples/GPS/UBlox_NMEAParsing/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/GPS/UBlox_OutputRate/LoRaBoards.cpp b/examples/GPS/UBlox_OutputRate/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/GPS/UBlox_OutputRate/LoRaBoards.cpp +++ b/examples/GPS/UBlox_OutputRate/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/GPS/UBlox_Recovery/LoRaBoards.cpp b/examples/GPS/UBlox_Recovery/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/GPS/UBlox_Recovery/LoRaBoards.cpp +++ b/examples/GPS/UBlox_Recovery/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/LoRaWAN/LMIC_Library_OTTA/LoRaBoards.cpp b/examples/LoRaWAN/LMIC_Library_OTTA/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/LoRaWAN/LMIC_Library_OTTA/LoRaBoards.cpp +++ b/examples/LoRaWAN/LMIC_Library_OTTA/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/LoRaWAN/LoRaWAN_ABP/LoRaBoards.cpp b/examples/LoRaWAN/LoRaWAN_ABP/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/LoRaWAN/LoRaWAN_ABP/LoRaBoards.cpp +++ b/examples/LoRaWAN/LoRaWAN_ABP/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/LoRaWAN/RadioLib_OTAA/LoRaBoards.cpp b/examples/LoRaWAN/RadioLib_OTAA/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/LoRaWAN/RadioLib_OTAA/LoRaBoards.cpp +++ b/examples/LoRaWAN/RadioLib_OTAA/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/OLED/SH1106FontUsage/LoRaBoards.cpp b/examples/OLED/SH1106FontUsage/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/OLED/SH1106FontUsage/LoRaBoards.cpp +++ b/examples/OLED/SH1106FontUsage/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/OLED/SH1106GraphicsTest/LoRaBoards.cpp b/examples/OLED/SH1106GraphicsTest/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/OLED/SH1106GraphicsTest/LoRaBoards.cpp +++ b/examples/OLED/SH1106GraphicsTest/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/OLED/SH1106IconMenu/LoRaBoards.cpp b/examples/OLED/SH1106IconMenu/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/OLED/SH1106IconMenu/LoRaBoards.cpp +++ b/examples/OLED/SH1106IconMenu/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/OLED/SH1106PrintUTF8/LoRaBoards.cpp b/examples/OLED/SH1106PrintUTF8/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/OLED/SH1106PrintUTF8/LoRaBoards.cpp +++ b/examples/OLED/SH1106PrintUTF8/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/OLED/SSD1306SimpleDemo/LoRaBoards.cpp b/examples/OLED/SSD1306SimpleDemo/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/OLED/SSD1306SimpleDemo/LoRaBoards.cpp +++ b/examples/OLED/SSD1306SimpleDemo/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/OLED/SSD1306UiDemo/LoRaBoards.cpp b/examples/OLED/SSD1306UiDemo/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/OLED/SSD1306UiDemo/LoRaBoards.cpp +++ b/examples/OLED/SSD1306UiDemo/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/PMU/LoRaBoards.cpp b/examples/PMU/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/PMU/LoRaBoards.cpp +++ b/examples/PMU/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/RadioLibExamples/Receive_Interrupt/LoRaBoards.cpp b/examples/RadioLibExamples/Receive_Interrupt/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/RadioLibExamples/Receive_Interrupt/LoRaBoards.cpp +++ b/examples/RadioLibExamples/Receive_Interrupt/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/RadioLibExamples/Transmit_Interrupt/LoRaBoards.cpp b/examples/RadioLibExamples/Transmit_Interrupt/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/RadioLibExamples/Transmit_Interrupt/LoRaBoards.cpp +++ b/examples/RadioLibExamples/Transmit_Interrupt/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/Sensor/BME280_AdvancedsettingsExample/LoRaBoards.cpp b/examples/Sensor/BME280_AdvancedsettingsExample/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/Sensor/BME280_AdvancedsettingsExample/LoRaBoards.cpp +++ b/examples/Sensor/BME280_AdvancedsettingsExample/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/Sensor/BME280_TestExample/LoRaBoards.cpp b/examples/Sensor/BME280_TestExample/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/Sensor/BME280_TestExample/LoRaBoards.cpp +++ b/examples/Sensor/BME280_TestExample/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/Sensor/BME280_UnifiedExample/LoRaBoards.cpp b/examples/Sensor/BME280_UnifiedExample/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/Sensor/BME280_UnifiedExample/LoRaBoards.cpp +++ b/examples/Sensor/BME280_UnifiedExample/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/Sensor/PCF8563_AlarmByUnits/LoRaBoards.cpp b/examples/Sensor/PCF8563_AlarmByUnits/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/Sensor/PCF8563_AlarmByUnits/LoRaBoards.cpp +++ b/examples/Sensor/PCF8563_AlarmByUnits/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/Sensor/PCF8563_SimpleTime/LoRaBoards.cpp b/examples/Sensor/PCF8563_SimpleTime/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/Sensor/PCF8563_SimpleTime/LoRaBoards.cpp +++ b/examples/Sensor/PCF8563_SimpleTime/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/Sensor/PCF8563_TimeLib/LoRaBoards.cpp b/examples/Sensor/PCF8563_TimeLib/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/Sensor/PCF8563_TimeLib/LoRaBoards.cpp +++ b/examples/Sensor/PCF8563_TimeLib/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/Sensor/PCF8563_TimeSynchronization/LoRaBoards.cpp b/examples/Sensor/PCF8563_TimeSynchronization/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/Sensor/PCF8563_TimeSynchronization/LoRaBoards.cpp +++ b/examples/Sensor/PCF8563_TimeSynchronization/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/Sensor/QMC6310_CalibrateExample/LoRaBoards.cpp b/examples/Sensor/QMC6310_CalibrateExample/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/Sensor/QMC6310_CalibrateExample/LoRaBoards.cpp +++ b/examples/Sensor/QMC6310_CalibrateExample/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/Sensor/QMC6310_CompassExample/LoRaBoards.cpp b/examples/Sensor/QMC6310_CompassExample/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/Sensor/QMC6310_CompassExample/LoRaBoards.cpp +++ b/examples/Sensor/QMC6310_CompassExample/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/Sensor/QMC6310_GetDataExample/LoRaBoards.cpp b/examples/Sensor/QMC6310_GetDataExample/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/Sensor/QMC6310_GetDataExample/LoRaBoards.cpp +++ b/examples/Sensor/QMC6310_GetDataExample/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/Sensor/QMC6310_GetPolarExample/LoRaBoards.cpp b/examples/Sensor/QMC6310_GetPolarExample/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/Sensor/QMC6310_GetPolarExample/LoRaBoards.cpp +++ b/examples/Sensor/QMC6310_GetPolarExample/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/Sensor/QMI8658_BlockExample/LoRaBoards.cpp b/examples/Sensor/QMI8658_BlockExample/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/Sensor/QMI8658_BlockExample/LoRaBoards.cpp +++ b/examples/Sensor/QMI8658_BlockExample/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/Sensor/QMI8658_GetDataExample/LoRaBoards.cpp b/examples/Sensor/QMI8658_GetDataExample/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/Sensor/QMI8658_GetDataExample/LoRaBoards.cpp +++ b/examples/Sensor/QMI8658_GetDataExample/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/Sensor/QMI8658_InterruptBlockExample/LoRaBoards.cpp b/examples/Sensor/QMI8658_InterruptBlockExample/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/Sensor/QMI8658_InterruptBlockExample/LoRaBoards.cpp +++ b/examples/Sensor/QMI8658_InterruptBlockExample/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/Sensor/QMI8658_InterruptExample/LoRaBoards.cpp b/examples/Sensor/QMI8658_InterruptExample/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/Sensor/QMI8658_InterruptExample/LoRaBoards.cpp +++ b/examples/Sensor/QMI8658_InterruptExample/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/Sensor/QMI8658_LockingMechanismExample/LoRaBoards.cpp b/examples/Sensor/QMI8658_LockingMechanismExample/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/Sensor/QMI8658_LockingMechanismExample/LoRaBoards.cpp +++ b/examples/Sensor/QMI8658_LockingMechanismExample/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/Sensor/QMI8658_MadgwickAHRS/LoRaBoards.cpp b/examples/Sensor/QMI8658_MadgwickAHRS/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/Sensor/QMI8658_MadgwickAHRS/LoRaBoards.cpp +++ b/examples/Sensor/QMI8658_MadgwickAHRS/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/Sensor/QMI8658_PedometerExample/LoRaBoards.cpp b/examples/Sensor/QMI8658_PedometerExample/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/Sensor/QMI8658_PedometerExample/LoRaBoards.cpp +++ b/examples/Sensor/QMI8658_PedometerExample/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/Sensor/QMI8658_ReadFromFifoExample/LoRaBoards.cpp b/examples/Sensor/QMI8658_ReadFromFifoExample/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/Sensor/QMI8658_ReadFromFifoExample/LoRaBoards.cpp +++ b/examples/Sensor/QMI8658_ReadFromFifoExample/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/Sensor/QMI8658_WakeOnMotion/LoRaBoards.cpp b/examples/Sensor/QMI8658_WakeOnMotion/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/Sensor/QMI8658_WakeOnMotion/LoRaBoards.cpp +++ b/examples/Sensor/QMI8658_WakeOnMotion/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/T3S3Factory/LoRaBoards.cpp b/examples/T3S3Factory/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/T3S3Factory/LoRaBoards.cpp +++ b/examples/T3S3Factory/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif diff --git a/examples/TBeamFactory/LoRaBoards.cpp b/examples/TBeamFactory/LoRaBoards.cpp index a9fa841..8c90174 100644 --- a/examples/TBeamFactory/LoRaBoards.cpp +++ b/examples/TBeamFactory/LoRaBoards.cpp @@ -700,15 +700,19 @@ void setupBoards(bool disable_u8g2 ) #ifdef RADIO_LDO_EN /* - * 2W LoRa LDO enable + * 2W LoRa LDO enable , Control SX1262 , LNA + * 2W Radio version must set LDO_EN to HIGH to initialize the Radio * */ pinMode(RADIO_LDO_EN, OUTPUT); - digitalWrite(RADIO_LDO_EN, LOW); + digitalWrite(RADIO_LDO_EN, HIGH); #endif #ifdef RADIO_CTRL /* * 2W LoRa RX TX Control + * CTRL controls the LNA, not the PA. + * Only when RX DATA is on, set to 1 to turn on LNA + * When TX DATA is on, CTL is set to 0 and LNA is turned off. * */ pinMode(RADIO_CTRL, OUTPUT); digitalWrite(RADIO_CTRL, LOW); @@ -730,7 +734,7 @@ void setupBoards(bool disable_u8g2 ) #ifdef HAS_GPS -#ifdef T_BEAM_S3_SUPREME +#if defined(T_BEAM_S3_SUPREME) || defined(T_BEAM_2W) // T-Beam v1.2 skips L76K find_gps = beginGPS(); #endif