Skip to content

Commit

Permalink
Update examples #205
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed Nov 14, 2024
1 parent e12be3b commit 64f70b9
Show file tree
Hide file tree
Showing 49 changed files with 784 additions and 193 deletions.
8 changes: 4 additions & 4 deletions examples/ArduinoLoRa/LoRaReceiver/LoRaBoards.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 )
beginDisplay();
}

beginWiFi();
// beginWiFi();

#ifdef HAS_GPS
#ifdef T_BEAM_S3_BPF
Expand Down
8 changes: 4 additions & 4 deletions examples/ArduinoLoRa/LoRaSender/LoRaBoards.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 )
beginDisplay();
}

beginWiFi();
// beginWiFi();

#ifdef HAS_GPS
#ifdef T_BEAM_S3_BPF
Expand Down
8 changes: 4 additions & 4 deletions examples/BPFFactory/LoRaBoards.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 )
beginDisplay();
}

beginWiFi();
// beginWiFi();

#ifdef HAS_GPS
#ifdef T_BEAM_S3_BPF
Expand Down
8 changes: 4 additions & 4 deletions examples/Display/Free_Font_Demo/LoRaBoards.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 )
beginDisplay();
}

beginWiFi();
// beginWiFi();

#ifdef HAS_GPS
#ifdef T_BEAM_S3_BPF
Expand Down
8 changes: 4 additions & 4 deletions examples/Display/TBeam_TFT_Shield/LoRaBoards.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 )
beginDisplay();
}

beginWiFi();
// beginWiFi();

#ifdef HAS_GPS
#ifdef T_BEAM_S3_BPF
Expand Down
8 changes: 4 additions & 4 deletions examples/Display/TFT_Char_times/LoRaBoards.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 )
beginDisplay();
}

beginWiFi();
// beginWiFi();

#ifdef HAS_GPS
#ifdef T_BEAM_S3_BPF
Expand Down
8 changes: 4 additions & 4 deletions examples/Display/UTFT_demo/LoRaBoards.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 )
beginDisplay();
}

beginWiFi();
// beginWiFi();

#ifdef HAS_GPS
#ifdef T_BEAM_S3_BPF
Expand Down
8 changes: 4 additions & 4 deletions examples/GPS/TinyGPS_Example/LoRaBoards.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 )
beginDisplay();
}

beginWiFi();
// beginWiFi();

#ifdef HAS_GPS
#ifdef T_BEAM_S3_BPF
Expand Down
8 changes: 4 additions & 4 deletions examples/GPS/TinyGPS_FullExample/LoRaBoards.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 )
beginDisplay();
}

beginWiFi();
// beginWiFi();

#ifdef HAS_GPS
#ifdef T_BEAM_S3_BPF
Expand Down
8 changes: 4 additions & 4 deletions examples/GPS/TinyGPS_KitchenSink/LoRaBoards.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 )
beginDisplay();
}

beginWiFi();
// beginWiFi();

#ifdef HAS_GPS
#ifdef T_BEAM_S3_BPF
Expand Down
8 changes: 4 additions & 4 deletions examples/GPS/UBlox_BasicNMEARead/LoRaBoards.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 )
beginDisplay();
}

beginWiFi();
// beginWiFi();

#ifdef HAS_GPS
#ifdef T_BEAM_S3_BPF
Expand Down
8 changes: 4 additions & 4 deletions examples/GPS/UBlox_NMEAParsing/LoRaBoards.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 )
beginDisplay();
}

beginWiFi();
// beginWiFi();

#ifdef HAS_GPS
#ifdef T_BEAM_S3_BPF
Expand Down
8 changes: 4 additions & 4 deletions examples/GPS/UBlox_OutputRate/LoRaBoards.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 )
beginDisplay();
}

beginWiFi();
// beginWiFi();

#ifdef HAS_GPS
#ifdef T_BEAM_S3_BPF
Expand Down
14 changes: 7 additions & 7 deletions examples/GPS/UBlox_Recovery/LoRaBoards.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -642,11 +642,11 @@ void setupBoards(bool disable_u8g2 )

beginPower();

// beginSDCard();
beginSDCard();

// if (!disable_u8g2) {
// beginDisplay();
// }
if (!disable_u8g2) {
beginDisplay();
}

// beginWiFi();

Expand Down
8 changes: 4 additions & 4 deletions examples/LoRaWAN/LMIC_Library_OTTA/LoRaBoards.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -648,7 +648,7 @@ void setupBoards(bool disable_u8g2 )
beginDisplay();
}

beginWiFi();
// beginWiFi();

#ifdef HAS_GPS
#ifdef T_BEAM_S3_BPF
Expand Down
6 changes: 3 additions & 3 deletions examples/LoRaWAN/LoRaWAN_ABP/LoRaBoards.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit 64f70b9

Please sign in to comment.