From 64f70b9844f9189a1138171507476a9f2f87d23d Mon Sep 17 00:00:00 2001 From: lewisxhe Date: Thu, 14 Nov 2024 09:02:00 +0800 Subject: [PATCH] Update examples https://github.com/Xinyuan-LilyGO/LilyGo-LoRa-Series/issues/205 --- .../ArduinoLoRa/LoRaReceiver/LoRaBoards.cpp | 8 +- .../ArduinoLoRa/LoRaSender/LoRaBoards.cpp | 8 +- examples/BPFFactory/LoRaBoards.cpp | 8 +- .../Display/Free_Font_Demo/LoRaBoards.cpp | 8 +- .../Display/TBeam_TFT_Shield/LoRaBoards.cpp | 8 +- .../Display/TFT_Char_times/LoRaBoards.cpp | 8 +- examples/Display/UTFT_demo/LoRaBoards.cpp | 8 +- examples/GPS/TinyGPS_Example/LoRaBoards.cpp | 8 +- .../GPS/TinyGPS_FullExample/LoRaBoards.cpp | 8 +- .../GPS/TinyGPS_KitchenSink/LoRaBoards.cpp | 8 +- .../GPS/UBlox_BasicNMEARead/LoRaBoards.cpp | 8 +- examples/GPS/UBlox_NMEAParsing/LoRaBoards.cpp | 8 +- examples/GPS/UBlox_OutputRate/LoRaBoards.cpp | 8 +- examples/GPS/UBlox_Recovery/LoRaBoards.cpp | 14 +- .../LoRaWAN/LMIC_Library_OTTA/LoRaBoards.cpp | 8 +- examples/LoRaWAN/LoRaWAN_ABP/LoRaBoards.cpp | 6 +- examples/LoRaWAN/LoRaWAN_ABP/utilities.h | 591 ++++++++++++++++++ examples/LoRaWAN/RadioLib_OTAA/LoRaBoards.cpp | 6 +- examples/OLED/SH1106FontUsage/LoRaBoards.cpp | 8 +- .../OLED/SH1106GraphicsTest/LoRaBoards.cpp | 8 +- examples/OLED/SH1106IconMenu/LoRaBoards.cpp | 8 +- examples/OLED/SH1106PrintUTF8/LoRaBoards.cpp | 8 +- .../OLED/SSD1306SimpleDemo/LoRaBoards.cpp | 8 +- examples/OLED/SSD1306UiDemo/LoRaBoards.cpp | 8 +- examples/PMU/LoRaBoards.cpp | 8 +- examples/PMU/PMU.ino | 8 +- .../Receive_Interrupt/LoRaBoards.cpp | 8 +- .../Transmit_Interrupt/LoRaBoards.cpp | 8 +- .../LoRaBoards.cpp | 8 +- .../Sensor/BME280_TestExample/LoRaBoards.cpp | 8 +- .../BME280_UnifiedExample/LoRaBoards.cpp | 8 +- .../PCF8563_AlarmByUnits/LoRaBoards.cpp | 8 +- .../Sensor/PCF8563_SimpleTime/LoRaBoards.cpp | 8 +- .../Sensor/PCF8563_TimeLib/LoRaBoards.cpp | 8 +- .../LoRaBoards.cpp | 8 +- .../QMC6310_CalibrateExample/LoRaBoards.cpp | 8 +- .../QMC6310_CompassExample/LoRaBoards.cpp | 8 +- .../QMC6310_GetDataExample/LoRaBoards.cpp | 8 +- .../QMC6310_GetPolarExample/LoRaBoards.cpp | 8 +- .../QMI8658_BlockExample/LoRaBoards.cpp | 8 +- .../QMI8658_GetDataExample/LoRaBoards.cpp | 8 +- .../LoRaBoards.cpp | 8 +- .../QMI8658_InterruptExample/LoRaBoards.cpp | 8 +- .../LoRaBoards.cpp | 8 +- .../QMI8658_MadgwickAHRS/LoRaBoards.cpp | 8 +- .../QMI8658_PedometerExample/LoRaBoards.cpp | 8 +- .../LoRaBoards.cpp | 8 +- .../QMI8658_WakeOnMotion/LoRaBoards.cpp | 8 +- examples/T3S3Factory/LoRaBoards.cpp | 8 +- 49 files changed, 784 insertions(+), 193 deletions(-) create mode 100644 examples/LoRaWAN/LoRaWAN_ABP/utilities.h diff --git a/examples/ArduinoLoRa/LoRaReceiver/LoRaBoards.cpp b/examples/ArduinoLoRa/LoRaReceiver/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/ArduinoLoRa/LoRaReceiver/LoRaBoards.cpp +++ b/examples/ArduinoLoRa/LoRaReceiver/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/ArduinoLoRa/LoRaSender/LoRaBoards.cpp b/examples/ArduinoLoRa/LoRaSender/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/ArduinoLoRa/LoRaSender/LoRaBoards.cpp +++ b/examples/ArduinoLoRa/LoRaSender/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/BPFFactory/LoRaBoards.cpp b/examples/BPFFactory/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/BPFFactory/LoRaBoards.cpp +++ b/examples/BPFFactory/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/Display/Free_Font_Demo/LoRaBoards.cpp b/examples/Display/Free_Font_Demo/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/Display/Free_Font_Demo/LoRaBoards.cpp +++ b/examples/Display/Free_Font_Demo/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/Display/TBeam_TFT_Shield/LoRaBoards.cpp b/examples/Display/TBeam_TFT_Shield/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/Display/TBeam_TFT_Shield/LoRaBoards.cpp +++ b/examples/Display/TBeam_TFT_Shield/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/Display/TFT_Char_times/LoRaBoards.cpp b/examples/Display/TFT_Char_times/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/Display/TFT_Char_times/LoRaBoards.cpp +++ b/examples/Display/TFT_Char_times/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/Display/UTFT_demo/LoRaBoards.cpp b/examples/Display/UTFT_demo/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/Display/UTFT_demo/LoRaBoards.cpp +++ b/examples/Display/UTFT_demo/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/GPS/TinyGPS_Example/LoRaBoards.cpp b/examples/GPS/TinyGPS_Example/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/GPS/TinyGPS_Example/LoRaBoards.cpp +++ b/examples/GPS/TinyGPS_Example/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/GPS/TinyGPS_FullExample/LoRaBoards.cpp b/examples/GPS/TinyGPS_FullExample/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/GPS/TinyGPS_FullExample/LoRaBoards.cpp +++ b/examples/GPS/TinyGPS_FullExample/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/GPS/TinyGPS_KitchenSink/LoRaBoards.cpp b/examples/GPS/TinyGPS_KitchenSink/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/GPS/TinyGPS_KitchenSink/LoRaBoards.cpp +++ b/examples/GPS/TinyGPS_KitchenSink/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/GPS/UBlox_BasicNMEARead/LoRaBoards.cpp b/examples/GPS/UBlox_BasicNMEARead/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/GPS/UBlox_BasicNMEARead/LoRaBoards.cpp +++ b/examples/GPS/UBlox_BasicNMEARead/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/GPS/UBlox_NMEAParsing/LoRaBoards.cpp b/examples/GPS/UBlox_NMEAParsing/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/GPS/UBlox_NMEAParsing/LoRaBoards.cpp +++ b/examples/GPS/UBlox_NMEAParsing/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/GPS/UBlox_OutputRate/LoRaBoards.cpp b/examples/GPS/UBlox_OutputRate/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/GPS/UBlox_OutputRate/LoRaBoards.cpp +++ b/examples/GPS/UBlox_OutputRate/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/GPS/UBlox_Recovery/LoRaBoards.cpp b/examples/GPS/UBlox_Recovery/LoRaBoards.cpp index 8b742194..38a804d6 100644 --- a/examples/GPS/UBlox_Recovery/LoRaBoards.cpp +++ b/examples/GPS/UBlox_Recovery/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -642,11 +642,11 @@ void setupBoards(bool disable_u8g2 ) beginPower(); - // beginSDCard(); + beginSDCard(); - // if (!disable_u8g2) { - // beginDisplay(); - // } + if (!disable_u8g2) { + beginDisplay(); + } // beginWiFi(); diff --git a/examples/LoRaWAN/LMIC_Library_OTTA/LoRaBoards.cpp b/examples/LoRaWAN/LMIC_Library_OTTA/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/LoRaWAN/LMIC_Library_OTTA/LoRaBoards.cpp +++ b/examples/LoRaWAN/LMIC_Library_OTTA/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/LoRaWAN/LoRaWAN_ABP/LoRaBoards.cpp b/examples/LoRaWAN/LoRaWAN_ABP/LoRaBoards.cpp index aaf1e777..38a804d6 100644 --- a/examples/LoRaWAN/LoRaWAN_ABP/LoRaBoards.cpp +++ b/examples/LoRaWAN/LoRaWAN_ABP/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register diff --git a/examples/LoRaWAN/LoRaWAN_ABP/utilities.h b/examples/LoRaWAN/LoRaWAN_ABP/utilities.h new file mode 100644 index 00000000..574d3285 --- /dev/null +++ b/examples/LoRaWAN/LoRaWAN_ABP/utilities.h @@ -0,0 +1,591 @@ +/** + * @file utilities.h + * @author Lewis He (lewishe@outlook.com) + * @license MIT + * @copyright Copyright (c) 2024 ShenZhen XinYuan Electronic Technology Co., Ltd + * @date 2024-05-12 + * @last-update 2024-08-07 + */ +#pragma once + + +// Support board list , Macro definition below, select the board definition to be used + +// #define T3_V1_3_SX1276 +// #define T3_V1_3_SX1278 + +// #define T3_V1_6_SX1276 +// #define T3_V1_6_SX1278 + +// #define T3_V1_6_SX1276_TCXO +// #define T3_V3_0_SX1276_TCXO + +// #define T_BEAM_SX1262 +// #define T_BEAM_SX1276 +// #define T_BEAM_SX1278 + +// #define T_BEAM_S3_SUPREME + +// #define T3_S3_V1_2_SX1262 +// #define T3_S3_V1_2_SX1276 +// #define T3_S3_V1_2_SX1278 +// #define T3_S3_V1_2_SX1280 +// #define T3_S3_V1_2_SX1280_PA +// #define T3_S3_V1_2_LR1121 + +// #define T_MOTION + +// #define T3_C6 + +// #define T_BEAM_S3_BPF + + +#define UNUSED_PIN (0) + +#if defined(T_BEAM_SX1262) || defined(T_BEAM_SX1276) || defined(T_BEAM_SX1278) + + +#if defined(T_BEAM_SX1262) +#ifndef USING_SX1262 +#define USING_SX1262 +#endif +#elif defined(T_BEAM_SX1276) +#ifndef USING_SX1276 +#define USING_SX1276 +#endif +#elif defined(T_BEAM_SX1278) +#ifndef USING_SX1278 +#define USING_SX1278 +#endif +#endif // T_BEAM_SX1262 + + +#define GPS_RX_PIN 34 +#define GPS_TX_PIN 12 +#define BUTTON_PIN 38 +#define BUTTON_PIN_MASK GPIO_SEL_38 +#define I2C_SDA 21 +#define I2C_SCL 22 +#define PMU_IRQ 35 + +#define RADIO_SCLK_PIN 5 +#define RADIO_MISO_PIN 19 +#define RADIO_MOSI_PIN 27 +#define RADIO_CS_PIN 18 +#define RADIO_DIO0_PIN 26 +#define RADIO_RST_PIN 23 +#define RADIO_DIO1_PIN 33 +// SX1276/78 +#define RADIO_DIO2_PIN 32 +// SX1262 +#define RADIO_BUSY_PIN 32 + + +#define BOARD_LED 4 +#define LED_ON LOW +#define LED_OFF HIGH + +#define GPS_BAUD_RATE 9600 +#define HAS_GPS +#define HAS_DISPLAY //Optional, bring your own board, no OLED !! +#define HAS_PMU + +#define BOARD_VARIANT_NAME "T-Beam" + +#elif defined(T3_V1_3_SX1276) || defined(T3_V1_3_SX1278) + + +#if defined(T3_V1_3_SX1276) + +#ifndef USING_SX1276 +#define USING_SX1276 +#endif + +#elif defined(T3_V1_3_SX1278) + +#ifndef USING_SX1278 +#define USING_SX1278 +#endif + +#endif // T3_V1_3_SX1276 + + + +#define I2C_SDA 21 +#define I2C_SCL 22 +#define OLED_RST UNUSED_PIN + +#define RADIO_SCLK_PIN 5 +#define RADIO_MISO_PIN 19 +#define RADIO_MOSI_PIN 27 +#define RADIO_CS_PIN 18 +#define RADIO_DIO0_PIN 26 +#define RADIO_RST_PIN 14 +#define RADIO_DIO1_PIN 33 + +// SX1276/78 +#define RADIO_DIO2_PIN 32 +// SX1262 +#define RADIO_BUSY_PIN 32 + + +#define ADC_PIN 35 +#define HAS_DISPLAY +#define BOARD_VARIANT_NAME "T3 V1.3" + +#elif defined(T3_V1_6_SX1276) || defined(T3_V1_6_SX1278) + + +#if defined(T3_V1_6_SX1276) +#ifndef USING_SX1276 +#define USING_SX1276 +#endif +#elif defined(T3_V1_6_SX1278) +#ifndef USING_SX1278 +#define USING_SX1278 +#endif +#endif // T3_V1_6_SX1276 + +#define I2C_SDA 21 +#define I2C_SCL 22 +#define OLED_RST UNUSED_PIN + +#define RADIO_SCLK_PIN 5 +#define RADIO_MISO_PIN 19 +#define RADIO_MOSI_PIN 27 +#define RADIO_CS_PIN 18 +#define RADIO_DIO0_PIN 26 +#define RADIO_RST_PIN 23 +#define RADIO_DIO1_PIN 33 +// SX1276/78 +#define RADIO_DIO2_PIN 32 +// SX1262 +#define RADIO_BUSY_PIN 32 + +#define SDCARD_MOSI 15 +#define SDCARD_MISO 2 +#define SDCARD_SCLK 14 +#define SDCARD_CS 13 + +#define BOARD_LED 25 +#define LED_ON HIGH + +#define ADC_PIN 35 + +#define HAS_SDCARD +#define HAS_DISPLAY + +#define BOARD_VARIANT_NAME "T3 V1.6" + + +#elif defined(T3_V1_6_SX1276_TCXO) + +#ifndef USING_SX1276 +#define USING_SX1276 +#endif + +#define I2C_SDA 21 +#define I2C_SCL 22 +#define OLED_RST UNUSED_PIN + +#define RADIO_SCLK_PIN 5 +#define RADIO_MISO_PIN 19 +#define RADIO_MOSI_PIN 27 +#define RADIO_CS_PIN 18 +#define RADIO_DIO0_PIN 26 +#define RADIO_RST_PIN 23 +#define RADIO_DIO1_PIN -1//33 +/* +* In the T3 V1.6.1 TCXO version, Radio DIO1 is connected to Radio’s +* internal temperature-compensated crystal oscillator enable +* */ +// TCXO pin must be set to HIGH before enabling Radio +#define RADIO_TCXO_ENABLE 33 +#define RADIO_BUSY_PIN 32 + +#define SDCARD_MOSI 15 +#define SDCARD_MISO 2 +#define SDCARD_SCLK 14 +#define SDCARD_CS 13 + +#define BOARD_LED 25 +#define LED_ON HIGH + +#define ADC_PIN 35 + +#define HAS_SDCARD +#define HAS_DISPLAY + +#define BOARD_VARIANT_NAME "T3 V1.6 TCXO" + + + +#elif defined(T3_V3_0) + + +#define I2C_SDA 21 +#define I2C_SCL 22 +#define OLED_RST 4 + +#define RADIO_SCLK_PIN 5 +#define RADIO_MISO_PIN 19 +#define RADIO_MOSI_PIN 27 +#define RADIO_CS_PIN 18 +#define RADIO_RST_PIN 23 + +// TCXO pin must be set to HIGH before enabling Radio +#define RADIO_TCXO_ENABLE 12 //only sx1276 tcxo version +#define RADIO_BUSY_PIN 32 + + +#if defined(USING_SX1262) + +#define RADIO_DIO1_PIN 26 +#define RADIO_BUSY_PIN 32 + +#elif defined(USING_SX1276) || defined(USING_SX1278) +//!SX1276/78 module only + +#define RADIO_DIO0_PIN 26 +#define RADIO_DIO1_PIN 32 + +#elif defined(USING_LR1121) + +#define RADIO_DIO9_PIN 26 //LR1121 DIO9 +#define RADIO_BUSY_PIN 32 //LR1121 BUSY + +#endif + +#define SDCARD_MOSI 15 +#define SDCARD_MISO 2 +#define SDCARD_SCLK 14 +#define SDCARD_CS 13 + +#define BOARD_LED 25 +#define LED_ON HIGH + +#define ADC_PIN 35 + +#define HAS_SDCARD +#define HAS_DISPLAY + +#define BOARD_VARIANT_NAME "T3 V3.0" + +#define BUTTON_PIN 0 +#define BAT_ADC_PIN 35 + + +#elif defined(T3_S3_V1_2_SX1262) || defined(ARDUINO_LILYGO_T3S3_SX1262) || \ + defined(T3_S3_V1_2_SX1276) || defined(ARDUINO_LILYGO_T3S3_SX1276) || \ + defined(T3_S3_V1_2_SX1278) || defined(ARDUINO_LILYGO_T3S3_SX1278) || \ + defined(T3_S3_V1_2_SX1280) || defined(ARDUINO_LILYGO_T3S3_SX1280) || \ + defined(T3_S3_V1_2_SX1280_PA) || defined(ARDUINO_LILYGO_T3S3_SX1280PA) || \ + defined(T3_S3_V1_2_LR1121) || defined(ARDUINO_LILYGO_T3S3_LR1121) + + +#if defined(T3_S3_V1_2_SX1262) || defined(ARDUINO_LILYGO_T3S3_SX1262) +#ifndef USING_SX1262 +#define USING_SX1262 +#endif +#elif defined(T3_S3_V1_2_SX1276) || defined(ARDUINO_LILYGO_T3S3_SX1276) +#ifndef USING_SX1276 +#define USING_SX1276 +#endif +#elif defined(T3_S3_V1_2_SX1278) || defined(ARDUINO_LILYGO_T3S3_SX1278) +#ifndef USING_SX1278 +#define USING_SX1278 +#endif +#elif defined(T3_S3_V1_2_SX1280) || defined(ARDUINO_LILYGO_T3S3_SX1280) +#ifndef USING_SX1280 +#define USING_SX1280 +#endif +#elif defined(T3_S3_V1_2_SX1280_PA) || defined(ARDUINO_LILYGO_T3S3_SX1280PA) +#ifndef USING_SX1280PA +#define USING_SX1280PA +#endif +#elif defined(T3_S3_V1_2_LR1121) || defined(ARDUINO_LILYGO_T3S3_LR1121) +#ifndef USING_LR1121 +#define USING_LR1121 +#endif + +#endif // T3_S3_V1_2_SX1262 + + +#define I2C_SDA 18 +#define I2C_SCL 17 +#define OLED_RST UNUSED_PIN + +#define RADIO_SCLK_PIN 5 +#define RADIO_MISO_PIN 3 +#define RADIO_MOSI_PIN 6 +#define RADIO_CS_PIN 7 + +#define SDCARD_MOSI 11 +#define SDCARD_MISO 2 +#define SDCARD_SCLK 14 +#define SDCARD_CS 13 + +#define BOARD_LED 37 +#define LED_ON HIGH + +#define BUTTON_PIN 0 +#define ADC_PIN 1 + +#define RADIO_RST_PIN 8 + +#if defined(USING_SX1262) + +#define RADIO_DIO1_PIN 33 +#define RADIO_BUSY_PIN 34 + +#elif defined(USING_SX1276) || defined(USING_SX1278) +//!SX1276/78 module only +#define RADIO_BUSY_PIN 33 //DIO1 + +#define RADIO_DIO0_PIN 9 +#define RADIO_DIO1_PIN 33 +#define RADIO_DIO2_PIN 34 +#define RADIO_DIO3_PIN 21 +#define RADIO_DIO4_PIN 10 +#define RADIO_DIO5_PIN 36 + +#elif defined(USING_SX1280) + +#define RADIO_DIO1_PIN 9 //SX1280 DIO1 = IO9 +#define RADIO_BUSY_PIN 36 //SX1280 BUSY = IO36 + +#elif defined(USING_SX1280PA) + +#define RADIO_DIO1_PIN 9 //SX1280 DIO1 = IO9 +#define RADIO_BUSY_PIN 36 //SX1280 BUSY = IO36 +#define RADIO_RX_PIN 21 +#define RADIO_TX_PIN 10 + + +#elif defined(USING_LR1121) + +#define RADIO_DIO9_PIN 36 //LR1121 DIO9 = IO36 +#define RADIO_BUSY_PIN 34 //LR1121 BUSY = IO34 + +#endif + +#define HAS_SDCARD +#define HAS_DISPLAY + +#define BOARD_VARIANT_NAME "T3 S3 V1.X" + + +#elif defined(T_BEAM_S3_SUPREME) + + +#ifndef USING_SX1262 +#define USING_SX1262 +#endif + + +#define I2C_SDA 17 +#define I2C_SCL 18 + +#define I2C1_SDA 42 +#define I2C1_SCL 41 +#define PMU_IRQ 40 + +#define GPS_RX_PIN 9 +#define GPS_TX_PIN 8 +#define GPS_WAKEUP_PIN 7 +#define GPS_PPS_PIN 6 + +#define BUTTON_PIN 0 +#define BUTTON_PIN_MASK GPIO_SEL_0 +#define BUTTON_CONUT (1) +#define BUTTON_ARRAY {BUTTON_PIN} + +#define RADIO_SCLK_PIN (12) +#define RADIO_MISO_PIN (13) +#define RADIO_MOSI_PIN (11) +#define RADIO_CS_PIN (10) +#define RADIO_DIO0_PIN (-1) +#define RADIO_RST_PIN (5) +#define RADIO_DIO1_PIN (1) +#define RADIO_BUSY_PIN (4) + +#define SPI_MOSI (35) +#define SPI_SCK (36) +#define SPI_MISO (37) +#define SPI_CS (47) +#define IMU_CS (34) +#define IMU_INT (33) + +#define SDCARD_MOSI SPI_MOSI +#define SDCARD_MISO SPI_MISO +#define SDCARD_SCLK SPI_SCK +#define SDCARD_CS SPI_CS + +#define PIN_NONE (-1) +#define RTC_INT (14) + +#define GPS_BAUD_RATE 9600 + +#define HAS_SDCARD +#define HAS_GPS +#define HAS_DISPLAY +#define HAS_PMU + +#define __HAS_SPI1__ +#define __HAS_SENSOR__ + +#define PMU_WIRE_PORT Wire1 +#define DISPLAY_MODEL U8G2_SH1106_128X64_NONAME_F_HW_I2C +#define BOARD_VARIANT_NAME "T-Beam S3" + +#elif defined(T_MOTION_S76G) + +#ifndef USING_SX1276 +#define USING_SX1276 +#endif + + +#define RADIO_SCLK_PIN PB13 +#define RADIO_MISO_PIN PB14 +#define RADIO_MOSI_PIN PB15 +#define RADIO_CS_PIN PB12 +#define RADIO_RST_PIN PB10 + +#define RADIO_DIO0_PIN PB11 +#define RADIO_DIO1_PIN PC13 +#define RADIO_DIO2_PIN PB9 +#define RADIO_DIO3_PIN PB4 +#define RADIO_DIO4_PIN PB3 +#define RADIO_DIO5_PIN PA15 + +#undef RADIO_BUSY_PIN +#undef RADIO_DIO1_PIN +#define RADIO_BUSY_PIN PC13 //DIO1 +#define RADIO_DIO1_PIN PB11 //DIO0 + +#define RADIO_SWITCH_PIN PA1 //1:Rx, 0:Tx + +#define GPS_EN_PIN PC6 +#define GPS_RST_PIN PB2 +#define GPS_RX_PIN PC11 +#define GPS_TX_PIN PC10 +#define GPS_ENABLE_PIN PC6 +#define GPS_BAUD_RATE 115200 +#define GPS_PPS_PIN PB5 + +#define UART_RX_PIN PA10 +#define UART_TX_PIN PA9 + +#define I2C_SCL PB6 +#define I2C_SDA PB7 + +#define BOARD_VARIANT_NAME "T-Motion S76G" + +#define HAS_GPS + +#elif defined(T3_C6) + + +#ifndef USING_SX1262 +#define USING_SX1262 +#endif + + +#define RADIO_SCLK_PIN 6 +#define RADIO_MISO_PIN 1 +#define RADIO_MOSI_PIN 0 +#define RADIO_CS_PIN 18 +#define RADIO_DIO1_PIN 23 +#define RADIO_BUSY_PIN 22 +#define RADIO_RST_PIN 21 + +#define I2C_SDA 8 +#define I2C_SCL 9 + +#define BOARD_LED 7 +#define LED_ON HIGH +#define RADIO_RX_PIN 15 +#define RADIO_TX_PIN 14 + + +#define BOARD_VARIANT_NAME "T3-C6" + +#define USING_DIO2_AS_RF_SWITCH + + +#elif defined(T_BEAM_S3_BPF) + + +#ifndef USING_SX1278 +#define USING_SX1278 +#endif + +#define I2C_SDA 8 +#define I2C_SCL 9 + +#define PMU_IRQ 4 + +#define GPS_RX_PIN 5 +#define GPS_TX_PIN 6 +#define GPS_PPS_PIN 7 + +#define BUTTON_PIN 0 +#define BUTTON_PIN_MASK GPIO_SEL_0 +#define BUTTON_CONUT (2) +#define BUTTON_ARRAY {BUTTON_PIN,3} + +#define RADIO_SCLK_PIN (41) +#define RADIO_MISO_PIN (42) +#define RADIO_MOSI_PIN (2) +#define RADIO_CS_PIN (1) +#define RADIO_RST_PIN (18) + +#define RADIO_DIO0_PIN (14) +#define RADIO_DIO1_PIN (21) +#define RADIO_DIO2_PIN (15) + +#define RADIO_TCXO_ENABLE (17) +#define RADIO_LDO_EN (16) +#define RADIO_BUSY_PIN (RADIO_DIO1_PIN) + +#define SPI_MOSI (11) +#define SPI_SCK (12) +#define SPI_MISO (13) +#define SPI_CS (10) + +#define SDCARD_MOSI SPI_MOSI +#define SDCARD_MISO SPI_MISO +#define SDCARD_SCLK SPI_SCK +#define SDCARD_CS SPI_CS + +#define PIN_NONE (-1) + +#define GPS_BAUD_RATE 9600 + +#define HAS_SDCARD +#define HAS_GPS +#define HAS_DISPLAY +#define HAS_PMU + +#define __HAS_SPI1__ +#define __HAS_SENSOR__ + +#define PMU_WIRE_PORT Wire +#define DISPLAY_MODEL U8G2_SH1106_128X64_NONAME_F_HW_I2C +#define BOARD_VARIANT_NAME "T-Beam BPF" + + + + +#else +#error "When using it for the first time, please define the board model in " +#endif + + + + + + + + + diff --git a/examples/LoRaWAN/RadioLib_OTAA/LoRaBoards.cpp b/examples/LoRaWAN/RadioLib_OTAA/LoRaBoards.cpp index aaf1e777..38a804d6 100644 --- a/examples/LoRaWAN/RadioLib_OTAA/LoRaBoards.cpp +++ b/examples/LoRaWAN/RadioLib_OTAA/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register diff --git a/examples/OLED/SH1106FontUsage/LoRaBoards.cpp b/examples/OLED/SH1106FontUsage/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/OLED/SH1106FontUsage/LoRaBoards.cpp +++ b/examples/OLED/SH1106FontUsage/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/OLED/SH1106GraphicsTest/LoRaBoards.cpp b/examples/OLED/SH1106GraphicsTest/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/OLED/SH1106GraphicsTest/LoRaBoards.cpp +++ b/examples/OLED/SH1106GraphicsTest/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/OLED/SH1106IconMenu/LoRaBoards.cpp b/examples/OLED/SH1106IconMenu/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/OLED/SH1106IconMenu/LoRaBoards.cpp +++ b/examples/OLED/SH1106IconMenu/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/OLED/SH1106PrintUTF8/LoRaBoards.cpp b/examples/OLED/SH1106PrintUTF8/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/OLED/SH1106PrintUTF8/LoRaBoards.cpp +++ b/examples/OLED/SH1106PrintUTF8/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/OLED/SSD1306SimpleDemo/LoRaBoards.cpp b/examples/OLED/SSD1306SimpleDemo/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/OLED/SSD1306SimpleDemo/LoRaBoards.cpp +++ b/examples/OLED/SSD1306SimpleDemo/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/OLED/SSD1306UiDemo/LoRaBoards.cpp b/examples/OLED/SSD1306UiDemo/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/OLED/SSD1306UiDemo/LoRaBoards.cpp +++ b/examples/OLED/SSD1306UiDemo/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/PMU/LoRaBoards.cpp b/examples/PMU/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/PMU/LoRaBoards.cpp +++ b/examples/PMU/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/PMU/PMU.ino b/examples/PMU/PMU.ino index 94f65f64..7f365ba9 100644 --- a/examples/PMU/PMU.ino +++ b/examples/PMU/PMU.ino @@ -75,11 +75,11 @@ void loop() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { - Serial.println("isBatChagerStart"); + if (PMU->isBatChargeStartIrq()) { + Serial.println("isBatChargeStart"); } // Clear PMU Interrupt Status Register PMU->clearIrqStatus(); diff --git a/examples/RadioLibExamples/Receive_Interrupt/LoRaBoards.cpp b/examples/RadioLibExamples/Receive_Interrupt/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/RadioLibExamples/Receive_Interrupt/LoRaBoards.cpp +++ b/examples/RadioLibExamples/Receive_Interrupt/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/RadioLibExamples/Transmit_Interrupt/LoRaBoards.cpp b/examples/RadioLibExamples/Transmit_Interrupt/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/RadioLibExamples/Transmit_Interrupt/LoRaBoards.cpp +++ b/examples/RadioLibExamples/Transmit_Interrupt/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/Sensor/BME280_AdvancedsettingsExample/LoRaBoards.cpp b/examples/Sensor/BME280_AdvancedsettingsExample/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/Sensor/BME280_AdvancedsettingsExample/LoRaBoards.cpp +++ b/examples/Sensor/BME280_AdvancedsettingsExample/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/Sensor/BME280_TestExample/LoRaBoards.cpp b/examples/Sensor/BME280_TestExample/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/Sensor/BME280_TestExample/LoRaBoards.cpp +++ b/examples/Sensor/BME280_TestExample/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/Sensor/BME280_UnifiedExample/LoRaBoards.cpp b/examples/Sensor/BME280_UnifiedExample/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/Sensor/BME280_UnifiedExample/LoRaBoards.cpp +++ b/examples/Sensor/BME280_UnifiedExample/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/Sensor/PCF8563_AlarmByUnits/LoRaBoards.cpp b/examples/Sensor/PCF8563_AlarmByUnits/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/Sensor/PCF8563_AlarmByUnits/LoRaBoards.cpp +++ b/examples/Sensor/PCF8563_AlarmByUnits/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/Sensor/PCF8563_SimpleTime/LoRaBoards.cpp b/examples/Sensor/PCF8563_SimpleTime/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/Sensor/PCF8563_SimpleTime/LoRaBoards.cpp +++ b/examples/Sensor/PCF8563_SimpleTime/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/Sensor/PCF8563_TimeLib/LoRaBoards.cpp b/examples/Sensor/PCF8563_TimeLib/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/Sensor/PCF8563_TimeLib/LoRaBoards.cpp +++ b/examples/Sensor/PCF8563_TimeLib/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/Sensor/PCF8563_TimeSynchronization/LoRaBoards.cpp b/examples/Sensor/PCF8563_TimeSynchronization/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/Sensor/PCF8563_TimeSynchronization/LoRaBoards.cpp +++ b/examples/Sensor/PCF8563_TimeSynchronization/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/Sensor/QMC6310_CalibrateExample/LoRaBoards.cpp b/examples/Sensor/QMC6310_CalibrateExample/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/Sensor/QMC6310_CalibrateExample/LoRaBoards.cpp +++ b/examples/Sensor/QMC6310_CalibrateExample/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/Sensor/QMC6310_CompassExample/LoRaBoards.cpp b/examples/Sensor/QMC6310_CompassExample/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/Sensor/QMC6310_CompassExample/LoRaBoards.cpp +++ b/examples/Sensor/QMC6310_CompassExample/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/Sensor/QMC6310_GetDataExample/LoRaBoards.cpp b/examples/Sensor/QMC6310_GetDataExample/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/Sensor/QMC6310_GetDataExample/LoRaBoards.cpp +++ b/examples/Sensor/QMC6310_GetDataExample/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/Sensor/QMC6310_GetPolarExample/LoRaBoards.cpp b/examples/Sensor/QMC6310_GetPolarExample/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/Sensor/QMC6310_GetPolarExample/LoRaBoards.cpp +++ b/examples/Sensor/QMC6310_GetPolarExample/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/Sensor/QMI8658_BlockExample/LoRaBoards.cpp b/examples/Sensor/QMI8658_BlockExample/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/Sensor/QMI8658_BlockExample/LoRaBoards.cpp +++ b/examples/Sensor/QMI8658_BlockExample/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/Sensor/QMI8658_GetDataExample/LoRaBoards.cpp b/examples/Sensor/QMI8658_GetDataExample/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/Sensor/QMI8658_GetDataExample/LoRaBoards.cpp +++ b/examples/Sensor/QMI8658_GetDataExample/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/Sensor/QMI8658_InterruptBlockExample/LoRaBoards.cpp b/examples/Sensor/QMI8658_InterruptBlockExample/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/Sensor/QMI8658_InterruptBlockExample/LoRaBoards.cpp +++ b/examples/Sensor/QMI8658_InterruptBlockExample/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/Sensor/QMI8658_InterruptExample/LoRaBoards.cpp b/examples/Sensor/QMI8658_InterruptExample/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/Sensor/QMI8658_InterruptExample/LoRaBoards.cpp +++ b/examples/Sensor/QMI8658_InterruptExample/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/Sensor/QMI8658_LockingMechanismExample/LoRaBoards.cpp b/examples/Sensor/QMI8658_LockingMechanismExample/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/Sensor/QMI8658_LockingMechanismExample/LoRaBoards.cpp +++ b/examples/Sensor/QMI8658_LockingMechanismExample/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/Sensor/QMI8658_MadgwickAHRS/LoRaBoards.cpp b/examples/Sensor/QMI8658_MadgwickAHRS/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/Sensor/QMI8658_MadgwickAHRS/LoRaBoards.cpp +++ b/examples/Sensor/QMI8658_MadgwickAHRS/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/Sensor/QMI8658_PedometerExample/LoRaBoards.cpp b/examples/Sensor/QMI8658_PedometerExample/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/Sensor/QMI8658_PedometerExample/LoRaBoards.cpp +++ b/examples/Sensor/QMI8658_PedometerExample/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/Sensor/QMI8658_ReadFromFifoExample/LoRaBoards.cpp b/examples/Sensor/QMI8658_ReadFromFifoExample/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/Sensor/QMI8658_ReadFromFifoExample/LoRaBoards.cpp +++ b/examples/Sensor/QMI8658_ReadFromFifoExample/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/Sensor/QMI8658_WakeOnMotion/LoRaBoards.cpp b/examples/Sensor/QMI8658_WakeOnMotion/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/Sensor/QMI8658_WakeOnMotion/LoRaBoards.cpp +++ b/examples/Sensor/QMI8658_WakeOnMotion/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF diff --git a/examples/T3S3Factory/LoRaBoards.cpp b/examples/T3S3Factory/LoRaBoards.cpp index 98846a3a..38a804d6 100644 --- a/examples/T3S3Factory/LoRaBoards.cpp +++ b/examples/T3S3Factory/LoRaBoards.cpp @@ -381,10 +381,10 @@ void loopPMU() if (PMU->isPekeyLongPressIrq()) { Serial.println("isPekeyLongPress"); } - if (PMU->isBatChagerDoneIrq()) { - Serial.println("isBatChagerDone"); + if (PMU->isBatChargeDoneIrq()) { + Serial.println("isBatChargeDone"); } - if (PMU->isBatChagerStartIrq()) { + if (PMU->isBatChargeStartIrq()) { Serial.println("isBatChagerStart"); } // Clear PMU Interrupt Status Register @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 ) beginDisplay(); } - beginWiFi(); + // beginWiFi(); #ifdef HAS_GPS #ifdef T_BEAM_S3_BPF