From 0524d99c66aee87dbbb5e45a6e746837c9ed26b6 Mon Sep 17 00:00:00 2001 From: lewishe Date: Thu, 23 Mar 2023 10:12:21 +0800 Subject: [PATCH] Adapt to Arduino IDE --- examples/GPS/TinyGPS_Example/boards.h | 4 ++-- examples/GPS/TinyGPS_FullExample/boards.h | 4 ++-- examples/GPS/TinyGPS_KitchenSink/boards.h | 4 ++-- examples/GPS/UBlox_BasicNMEARead/boards.h | 4 ++-- examples/GPS/UBlox_NMEAParsing/boards.h | 4 ++-- examples/GPS/UBlox_OutputRate/boards.h | 4 ++-- examples/GPS/UBlox_Recovery/boards.h | 4 ++-- examples/OLED/SH1106FontUsage/boards.h | 4 ++-- examples/OLED/SH1106GraphicsTest/boards.h | 4 ++-- examples/OLED/SH1106IconMenu/boards.h | 4 ++-- examples/OLED/SH1106PrintUTF8/boards.h | 4 ++-- .../RadioLibExamples/SX1262/SX1262_Receive_Interrupt/boards.h | 4 ++-- .../SX1262/SX1262_Transmit_Interrupt/boards.h | 4 ++-- examples/Sensor/BME280_AdvancedsettingsExample/boards.h | 4 ++-- examples/Sensor/BME280_TestExample/boards.h | 4 ++-- examples/Sensor/BME280_UnifiedExample/boards.h | 4 ++-- examples/Sensor/PCF8563_AlarmByUnits/boards.h | 4 ++-- examples/Sensor/PCF8563_SimpleTime/boards.h | 4 ++-- examples/Sensor/PCF8563_TimeLib/boards.h | 4 ++-- examples/Sensor/PCF8563_TimeSynchronization/boards.h | 4 ++-- examples/Sensor/QMC6310_CalibrateExample/boards.h | 4 ++-- examples/Sensor/QMC6310_CompassExample/boards.h | 4 ++-- examples/Sensor/QMC6310_GetDataExample/boards.h | 4 ++-- examples/Sensor/QMC6310_GetPolarExample/boards.h | 4 ++-- examples/Sensor/QMI8658_BlockExample/boards.h | 4 ++-- examples/Sensor/QMI8658_GetDataExample/boards.h | 4 ++-- examples/Sensor/QMI8658_InterruptBlockExample/boards.h | 4 ++-- examples/Sensor/QMI8658_InterruptExample/boards.h | 4 ++-- examples/Sensor/QMI8658_LockingMechanismExample/boards.h | 4 ++-- examples/Sensor/QMI8658_MadgwickAHRS/boards.h | 4 ++-- examples/Sensor/QMI8658_PedometerExample/boards.h | 4 ++-- examples/Sensor/QMI8658_ReadFromFifoExample/boards.h | 4 ++-- examples/Sensor/QMI8658_WakeOnMotion/boards.h | 4 ++-- lib/SensorsLib/examples/PCF8563_AlarmByUnits/power.cpp | 4 ++-- lib/SensorsLib/examples/PCF8563_SimpleTime/power.cpp | 4 ++-- lib/SensorsLib/examples/PCF8563_TimeLib/power.cpp | 4 ++-- lib/SensorsLib/examples/PCF8563_TimeSynchronization/power.cpp | 4 ++-- lib/SensorsLib/examples/QMC6310_CalibrateExample/power.cpp | 4 ++-- lib/SensorsLib/examples/QMC6310_CompassExample/power.cpp | 4 ++-- lib/SensorsLib/examples/QMC6310_GetDataExample/power.cpp | 4 ++-- lib/SensorsLib/examples/QMC6310_GetPolarExample/power.cpp | 4 ++-- lib/SensorsLib/examples/QMI8658_BlockExample/power.cpp | 4 ++-- lib/SensorsLib/examples/QMI8658_GetDataExample/power.cpp | 4 ++-- .../examples/QMI8658_InterruptBlockExample/power.cpp | 4 ++-- lib/SensorsLib/examples/QMI8658_InterruptExample/power.cpp | 4 ++-- .../examples/QMI8658_LockingMechanismExample/power.cpp | 4 ++-- lib/SensorsLib/examples/QMI8658_MadgwickAHRS/power.cpp | 4 ++-- lib/SensorsLib/examples/QMI8658_PedometerExample/power.cpp | 4 ++-- lib/SensorsLib/examples/QMI8658_ReadFromFifoExample/power.cpp | 4 ++-- lib/SensorsLib/examples/QMI8658_WakeOnMotion/power.cpp | 4 ++-- .../examples/QMI8658_WakeOnMotionCallBackExample/power.cpp | 4 ++-- .../XPowersLibInterface_Example.ino | 4 ++-- 52 files changed, 104 insertions(+), 104 deletions(-) diff --git a/examples/GPS/TinyGPS_Example/boards.h b/examples/GPS/TinyGPS_Example/boards.h index 1b60376..fb50ec5 100644 --- a/examples/GPS/TinyGPS_Example/boards.h +++ b/examples/GPS/TinyGPS_Example/boards.h @@ -23,8 +23,8 @@ DISPLAY_MODEL *u8g2 = nullptr; #endif #if defined(HAS_PMU) -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + XPowersLibInterface *PMU = NULL; diff --git a/examples/GPS/TinyGPS_FullExample/boards.h b/examples/GPS/TinyGPS_FullExample/boards.h index 1b60376..fb50ec5 100644 --- a/examples/GPS/TinyGPS_FullExample/boards.h +++ b/examples/GPS/TinyGPS_FullExample/boards.h @@ -23,8 +23,8 @@ DISPLAY_MODEL *u8g2 = nullptr; #endif #if defined(HAS_PMU) -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + XPowersLibInterface *PMU = NULL; diff --git a/examples/GPS/TinyGPS_KitchenSink/boards.h b/examples/GPS/TinyGPS_KitchenSink/boards.h index 1b60376..fb50ec5 100644 --- a/examples/GPS/TinyGPS_KitchenSink/boards.h +++ b/examples/GPS/TinyGPS_KitchenSink/boards.h @@ -23,8 +23,8 @@ DISPLAY_MODEL *u8g2 = nullptr; #endif #if defined(HAS_PMU) -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + XPowersLibInterface *PMU = NULL; diff --git a/examples/GPS/UBlox_BasicNMEARead/boards.h b/examples/GPS/UBlox_BasicNMEARead/boards.h index 1b60376..fb50ec5 100644 --- a/examples/GPS/UBlox_BasicNMEARead/boards.h +++ b/examples/GPS/UBlox_BasicNMEARead/boards.h @@ -23,8 +23,8 @@ DISPLAY_MODEL *u8g2 = nullptr; #endif #if defined(HAS_PMU) -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + XPowersLibInterface *PMU = NULL; diff --git a/examples/GPS/UBlox_NMEAParsing/boards.h b/examples/GPS/UBlox_NMEAParsing/boards.h index 9c6bc1d..9d92095 100644 --- a/examples/GPS/UBlox_NMEAParsing/boards.h +++ b/examples/GPS/UBlox_NMEAParsing/boards.h @@ -23,8 +23,8 @@ DISPLAY_MODEL *u8g2 = nullptr; #endif #if defined(HAS_PMU) -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + XPowersLibInterface *PMU = NULL; diff --git a/examples/GPS/UBlox_OutputRate/boards.h b/examples/GPS/UBlox_OutputRate/boards.h index 9c6bc1d..9d92095 100644 --- a/examples/GPS/UBlox_OutputRate/boards.h +++ b/examples/GPS/UBlox_OutputRate/boards.h @@ -23,8 +23,8 @@ DISPLAY_MODEL *u8g2 = nullptr; #endif #if defined(HAS_PMU) -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + XPowersLibInterface *PMU = NULL; diff --git a/examples/GPS/UBlox_Recovery/boards.h b/examples/GPS/UBlox_Recovery/boards.h index 1b60376..fb50ec5 100644 --- a/examples/GPS/UBlox_Recovery/boards.h +++ b/examples/GPS/UBlox_Recovery/boards.h @@ -23,8 +23,8 @@ DISPLAY_MODEL *u8g2 = nullptr; #endif #if defined(HAS_PMU) -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + XPowersLibInterface *PMU = NULL; diff --git a/examples/OLED/SH1106FontUsage/boards.h b/examples/OLED/SH1106FontUsage/boards.h index 1b60376..fb50ec5 100644 --- a/examples/OLED/SH1106FontUsage/boards.h +++ b/examples/OLED/SH1106FontUsage/boards.h @@ -23,8 +23,8 @@ DISPLAY_MODEL *u8g2 = nullptr; #endif #if defined(HAS_PMU) -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + XPowersLibInterface *PMU = NULL; diff --git a/examples/OLED/SH1106GraphicsTest/boards.h b/examples/OLED/SH1106GraphicsTest/boards.h index 9c6bc1d..9d92095 100644 --- a/examples/OLED/SH1106GraphicsTest/boards.h +++ b/examples/OLED/SH1106GraphicsTest/boards.h @@ -23,8 +23,8 @@ DISPLAY_MODEL *u8g2 = nullptr; #endif #if defined(HAS_PMU) -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + XPowersLibInterface *PMU = NULL; diff --git a/examples/OLED/SH1106IconMenu/boards.h b/examples/OLED/SH1106IconMenu/boards.h index fe11f5c..86f9e59 100644 --- a/examples/OLED/SH1106IconMenu/boards.h +++ b/examples/OLED/SH1106IconMenu/boards.h @@ -23,8 +23,8 @@ DISPLAY_MODEL *u8g2 = nullptr; #endif #if defined(HAS_PMU) -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + XPowersLibInterface *PMU = NULL; diff --git a/examples/OLED/SH1106PrintUTF8/boards.h b/examples/OLED/SH1106PrintUTF8/boards.h index 1b60376..fb50ec5 100644 --- a/examples/OLED/SH1106PrintUTF8/boards.h +++ b/examples/OLED/SH1106PrintUTF8/boards.h @@ -23,8 +23,8 @@ DISPLAY_MODEL *u8g2 = nullptr; #endif #if defined(HAS_PMU) -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + XPowersLibInterface *PMU = NULL; diff --git a/examples/RadioLibExamples/SX1262/SX1262_Receive_Interrupt/boards.h b/examples/RadioLibExamples/SX1262/SX1262_Receive_Interrupt/boards.h index 5f4a8a5..ea95bbf 100644 --- a/examples/RadioLibExamples/SX1262/SX1262_Receive_Interrupt/boards.h +++ b/examples/RadioLibExamples/SX1262/SX1262_Receive_Interrupt/boards.h @@ -23,8 +23,8 @@ DISPLAY_MODEL *u8g2 = nullptr; #endif #if defined(HAS_PMU) -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + XPowersLibInterface *PMU = NULL; diff --git a/examples/RadioLibExamples/SX1262/SX1262_Transmit_Interrupt/boards.h b/examples/RadioLibExamples/SX1262/SX1262_Transmit_Interrupt/boards.h index 5f4a8a5..ea95bbf 100644 --- a/examples/RadioLibExamples/SX1262/SX1262_Transmit_Interrupt/boards.h +++ b/examples/RadioLibExamples/SX1262/SX1262_Transmit_Interrupt/boards.h @@ -23,8 +23,8 @@ DISPLAY_MODEL *u8g2 = nullptr; #endif #if defined(HAS_PMU) -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + XPowersLibInterface *PMU = NULL; diff --git a/examples/Sensor/BME280_AdvancedsettingsExample/boards.h b/examples/Sensor/BME280_AdvancedsettingsExample/boards.h index 6eb245d..1719398 100644 --- a/examples/Sensor/BME280_AdvancedsettingsExample/boards.h +++ b/examples/Sensor/BME280_AdvancedsettingsExample/boards.h @@ -23,8 +23,8 @@ DISPLAY_MODEL *u8g2 = nullptr; #endif #if defined(HAS_PMU) -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + XPowersLibInterface *PMU = NULL; diff --git a/examples/Sensor/BME280_TestExample/boards.h b/examples/Sensor/BME280_TestExample/boards.h index 6eb245d..1719398 100644 --- a/examples/Sensor/BME280_TestExample/boards.h +++ b/examples/Sensor/BME280_TestExample/boards.h @@ -23,8 +23,8 @@ DISPLAY_MODEL *u8g2 = nullptr; #endif #if defined(HAS_PMU) -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + XPowersLibInterface *PMU = NULL; diff --git a/examples/Sensor/BME280_UnifiedExample/boards.h b/examples/Sensor/BME280_UnifiedExample/boards.h index 6eb245d..1719398 100644 --- a/examples/Sensor/BME280_UnifiedExample/boards.h +++ b/examples/Sensor/BME280_UnifiedExample/boards.h @@ -23,8 +23,8 @@ DISPLAY_MODEL *u8g2 = nullptr; #endif #if defined(HAS_PMU) -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + XPowersLibInterface *PMU = NULL; diff --git a/examples/Sensor/PCF8563_AlarmByUnits/boards.h b/examples/Sensor/PCF8563_AlarmByUnits/boards.h index 1b60376..fb50ec5 100644 --- a/examples/Sensor/PCF8563_AlarmByUnits/boards.h +++ b/examples/Sensor/PCF8563_AlarmByUnits/boards.h @@ -23,8 +23,8 @@ DISPLAY_MODEL *u8g2 = nullptr; #endif #if defined(HAS_PMU) -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + XPowersLibInterface *PMU = NULL; diff --git a/examples/Sensor/PCF8563_SimpleTime/boards.h b/examples/Sensor/PCF8563_SimpleTime/boards.h index 1b60376..fb50ec5 100644 --- a/examples/Sensor/PCF8563_SimpleTime/boards.h +++ b/examples/Sensor/PCF8563_SimpleTime/boards.h @@ -23,8 +23,8 @@ DISPLAY_MODEL *u8g2 = nullptr; #endif #if defined(HAS_PMU) -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + XPowersLibInterface *PMU = NULL; diff --git a/examples/Sensor/PCF8563_TimeLib/boards.h b/examples/Sensor/PCF8563_TimeLib/boards.h index 1b60376..fb50ec5 100644 --- a/examples/Sensor/PCF8563_TimeLib/boards.h +++ b/examples/Sensor/PCF8563_TimeLib/boards.h @@ -23,8 +23,8 @@ DISPLAY_MODEL *u8g2 = nullptr; #endif #if defined(HAS_PMU) -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + XPowersLibInterface *PMU = NULL; diff --git a/examples/Sensor/PCF8563_TimeSynchronization/boards.h b/examples/Sensor/PCF8563_TimeSynchronization/boards.h index 1b60376..fb50ec5 100644 --- a/examples/Sensor/PCF8563_TimeSynchronization/boards.h +++ b/examples/Sensor/PCF8563_TimeSynchronization/boards.h @@ -23,8 +23,8 @@ DISPLAY_MODEL *u8g2 = nullptr; #endif #if defined(HAS_PMU) -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + XPowersLibInterface *PMU = NULL; diff --git a/examples/Sensor/QMC6310_CalibrateExample/boards.h b/examples/Sensor/QMC6310_CalibrateExample/boards.h index 1b60376..fb50ec5 100644 --- a/examples/Sensor/QMC6310_CalibrateExample/boards.h +++ b/examples/Sensor/QMC6310_CalibrateExample/boards.h @@ -23,8 +23,8 @@ DISPLAY_MODEL *u8g2 = nullptr; #endif #if defined(HAS_PMU) -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + XPowersLibInterface *PMU = NULL; diff --git a/examples/Sensor/QMC6310_CompassExample/boards.h b/examples/Sensor/QMC6310_CompassExample/boards.h index dee78ed..e421e86 100644 --- a/examples/Sensor/QMC6310_CompassExample/boards.h +++ b/examples/Sensor/QMC6310_CompassExample/boards.h @@ -23,8 +23,8 @@ DISPLAY_MODEL *u8g2 = nullptr; #endif #if defined(HAS_PMU) -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + XPowersLibInterface *PMU = NULL; diff --git a/examples/Sensor/QMC6310_GetDataExample/boards.h b/examples/Sensor/QMC6310_GetDataExample/boards.h index 1b60376..fb50ec5 100644 --- a/examples/Sensor/QMC6310_GetDataExample/boards.h +++ b/examples/Sensor/QMC6310_GetDataExample/boards.h @@ -23,8 +23,8 @@ DISPLAY_MODEL *u8g2 = nullptr; #endif #if defined(HAS_PMU) -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + XPowersLibInterface *PMU = NULL; diff --git a/examples/Sensor/QMC6310_GetPolarExample/boards.h b/examples/Sensor/QMC6310_GetPolarExample/boards.h index 1b60376..fb50ec5 100644 --- a/examples/Sensor/QMC6310_GetPolarExample/boards.h +++ b/examples/Sensor/QMC6310_GetPolarExample/boards.h @@ -23,8 +23,8 @@ DISPLAY_MODEL *u8g2 = nullptr; #endif #if defined(HAS_PMU) -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + XPowersLibInterface *PMU = NULL; diff --git a/examples/Sensor/QMI8658_BlockExample/boards.h b/examples/Sensor/QMI8658_BlockExample/boards.h index 8f2f9c9..93a89e1 100644 --- a/examples/Sensor/QMI8658_BlockExample/boards.h +++ b/examples/Sensor/QMI8658_BlockExample/boards.h @@ -23,8 +23,8 @@ DISPLAY_MODEL *u8g2 = nullptr; #endif #if defined(HAS_PMU) -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + XPowersLibInterface *PMU = NULL; diff --git a/examples/Sensor/QMI8658_GetDataExample/boards.h b/examples/Sensor/QMI8658_GetDataExample/boards.h index 1b60376..fb50ec5 100644 --- a/examples/Sensor/QMI8658_GetDataExample/boards.h +++ b/examples/Sensor/QMI8658_GetDataExample/boards.h @@ -23,8 +23,8 @@ DISPLAY_MODEL *u8g2 = nullptr; #endif #if defined(HAS_PMU) -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + XPowersLibInterface *PMU = NULL; diff --git a/examples/Sensor/QMI8658_InterruptBlockExample/boards.h b/examples/Sensor/QMI8658_InterruptBlockExample/boards.h index 1b60376..fb50ec5 100644 --- a/examples/Sensor/QMI8658_InterruptBlockExample/boards.h +++ b/examples/Sensor/QMI8658_InterruptBlockExample/boards.h @@ -23,8 +23,8 @@ DISPLAY_MODEL *u8g2 = nullptr; #endif #if defined(HAS_PMU) -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + XPowersLibInterface *PMU = NULL; diff --git a/examples/Sensor/QMI8658_InterruptExample/boards.h b/examples/Sensor/QMI8658_InterruptExample/boards.h index 1b60376..fb50ec5 100644 --- a/examples/Sensor/QMI8658_InterruptExample/boards.h +++ b/examples/Sensor/QMI8658_InterruptExample/boards.h @@ -23,8 +23,8 @@ DISPLAY_MODEL *u8g2 = nullptr; #endif #if defined(HAS_PMU) -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + XPowersLibInterface *PMU = NULL; diff --git a/examples/Sensor/QMI8658_LockingMechanismExample/boards.h b/examples/Sensor/QMI8658_LockingMechanismExample/boards.h index 1b60376..fb50ec5 100644 --- a/examples/Sensor/QMI8658_LockingMechanismExample/boards.h +++ b/examples/Sensor/QMI8658_LockingMechanismExample/boards.h @@ -23,8 +23,8 @@ DISPLAY_MODEL *u8g2 = nullptr; #endif #if defined(HAS_PMU) -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + XPowersLibInterface *PMU = NULL; diff --git a/examples/Sensor/QMI8658_MadgwickAHRS/boards.h b/examples/Sensor/QMI8658_MadgwickAHRS/boards.h index 1b60376..fb50ec5 100644 --- a/examples/Sensor/QMI8658_MadgwickAHRS/boards.h +++ b/examples/Sensor/QMI8658_MadgwickAHRS/boards.h @@ -23,8 +23,8 @@ DISPLAY_MODEL *u8g2 = nullptr; #endif #if defined(HAS_PMU) -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + XPowersLibInterface *PMU = NULL; diff --git a/examples/Sensor/QMI8658_PedometerExample/boards.h b/examples/Sensor/QMI8658_PedometerExample/boards.h index 1b60376..fb50ec5 100644 --- a/examples/Sensor/QMI8658_PedometerExample/boards.h +++ b/examples/Sensor/QMI8658_PedometerExample/boards.h @@ -23,8 +23,8 @@ DISPLAY_MODEL *u8g2 = nullptr; #endif #if defined(HAS_PMU) -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + XPowersLibInterface *PMU = NULL; diff --git a/examples/Sensor/QMI8658_ReadFromFifoExample/boards.h b/examples/Sensor/QMI8658_ReadFromFifoExample/boards.h index 1b60376..fb50ec5 100644 --- a/examples/Sensor/QMI8658_ReadFromFifoExample/boards.h +++ b/examples/Sensor/QMI8658_ReadFromFifoExample/boards.h @@ -23,8 +23,8 @@ DISPLAY_MODEL *u8g2 = nullptr; #endif #if defined(HAS_PMU) -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + XPowersLibInterface *PMU = NULL; diff --git a/examples/Sensor/QMI8658_WakeOnMotion/boards.h b/examples/Sensor/QMI8658_WakeOnMotion/boards.h index 1b60376..fb50ec5 100644 --- a/examples/Sensor/QMI8658_WakeOnMotion/boards.h +++ b/examples/Sensor/QMI8658_WakeOnMotion/boards.h @@ -23,8 +23,8 @@ DISPLAY_MODEL *u8g2 = nullptr; #endif #if defined(HAS_PMU) -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + XPowersLibInterface *PMU = NULL; diff --git a/lib/SensorsLib/examples/PCF8563_AlarmByUnits/power.cpp b/lib/SensorsLib/examples/PCF8563_AlarmByUnits/power.cpp index 96d5804..e0af87a 100644 --- a/lib/SensorsLib/examples/PCF8563_AlarmByUnits/power.cpp +++ b/lib/SensorsLib/examples/PCF8563_AlarmByUnits/power.cpp @@ -10,8 +10,8 @@ #ifdef LILYGO_TBEAM_SUPREME_V3_0 #include -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + diff --git a/lib/SensorsLib/examples/PCF8563_SimpleTime/power.cpp b/lib/SensorsLib/examples/PCF8563_SimpleTime/power.cpp index 96d5804..e0af87a 100644 --- a/lib/SensorsLib/examples/PCF8563_SimpleTime/power.cpp +++ b/lib/SensorsLib/examples/PCF8563_SimpleTime/power.cpp @@ -10,8 +10,8 @@ #ifdef LILYGO_TBEAM_SUPREME_V3_0 #include -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + diff --git a/lib/SensorsLib/examples/PCF8563_TimeLib/power.cpp b/lib/SensorsLib/examples/PCF8563_TimeLib/power.cpp index 96d5804..e0af87a 100644 --- a/lib/SensorsLib/examples/PCF8563_TimeLib/power.cpp +++ b/lib/SensorsLib/examples/PCF8563_TimeLib/power.cpp @@ -10,8 +10,8 @@ #ifdef LILYGO_TBEAM_SUPREME_V3_0 #include -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + diff --git a/lib/SensorsLib/examples/PCF8563_TimeSynchronization/power.cpp b/lib/SensorsLib/examples/PCF8563_TimeSynchronization/power.cpp index 96d5804..e0af87a 100644 --- a/lib/SensorsLib/examples/PCF8563_TimeSynchronization/power.cpp +++ b/lib/SensorsLib/examples/PCF8563_TimeSynchronization/power.cpp @@ -10,8 +10,8 @@ #ifdef LILYGO_TBEAM_SUPREME_V3_0 #include -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + diff --git a/lib/SensorsLib/examples/QMC6310_CalibrateExample/power.cpp b/lib/SensorsLib/examples/QMC6310_CalibrateExample/power.cpp index a18e0ba..1945448 100644 --- a/lib/SensorsLib/examples/QMC6310_CalibrateExample/power.cpp +++ b/lib/SensorsLib/examples/QMC6310_CalibrateExample/power.cpp @@ -10,8 +10,8 @@ #ifdef LILYGO_TBEAM_SUPREME_V3_0 #include -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + diff --git a/lib/SensorsLib/examples/QMC6310_CompassExample/power.cpp b/lib/SensorsLib/examples/QMC6310_CompassExample/power.cpp index a18e0ba..1945448 100644 --- a/lib/SensorsLib/examples/QMC6310_CompassExample/power.cpp +++ b/lib/SensorsLib/examples/QMC6310_CompassExample/power.cpp @@ -10,8 +10,8 @@ #ifdef LILYGO_TBEAM_SUPREME_V3_0 #include -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + diff --git a/lib/SensorsLib/examples/QMC6310_GetDataExample/power.cpp b/lib/SensorsLib/examples/QMC6310_GetDataExample/power.cpp index a18e0ba..1945448 100644 --- a/lib/SensorsLib/examples/QMC6310_GetDataExample/power.cpp +++ b/lib/SensorsLib/examples/QMC6310_GetDataExample/power.cpp @@ -10,8 +10,8 @@ #ifdef LILYGO_TBEAM_SUPREME_V3_0 #include -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + diff --git a/lib/SensorsLib/examples/QMC6310_GetPolarExample/power.cpp b/lib/SensorsLib/examples/QMC6310_GetPolarExample/power.cpp index a18e0ba..1945448 100644 --- a/lib/SensorsLib/examples/QMC6310_GetPolarExample/power.cpp +++ b/lib/SensorsLib/examples/QMC6310_GetPolarExample/power.cpp @@ -10,8 +10,8 @@ #ifdef LILYGO_TBEAM_SUPREME_V3_0 #include -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + diff --git a/lib/SensorsLib/examples/QMI8658_BlockExample/power.cpp b/lib/SensorsLib/examples/QMI8658_BlockExample/power.cpp index a18e0ba..1945448 100644 --- a/lib/SensorsLib/examples/QMI8658_BlockExample/power.cpp +++ b/lib/SensorsLib/examples/QMI8658_BlockExample/power.cpp @@ -10,8 +10,8 @@ #ifdef LILYGO_TBEAM_SUPREME_V3_0 #include -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + diff --git a/lib/SensorsLib/examples/QMI8658_GetDataExample/power.cpp b/lib/SensorsLib/examples/QMI8658_GetDataExample/power.cpp index a18e0ba..1945448 100644 --- a/lib/SensorsLib/examples/QMI8658_GetDataExample/power.cpp +++ b/lib/SensorsLib/examples/QMI8658_GetDataExample/power.cpp @@ -10,8 +10,8 @@ #ifdef LILYGO_TBEAM_SUPREME_V3_0 #include -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + diff --git a/lib/SensorsLib/examples/QMI8658_InterruptBlockExample/power.cpp b/lib/SensorsLib/examples/QMI8658_InterruptBlockExample/power.cpp index a18e0ba..1945448 100644 --- a/lib/SensorsLib/examples/QMI8658_InterruptBlockExample/power.cpp +++ b/lib/SensorsLib/examples/QMI8658_InterruptBlockExample/power.cpp @@ -10,8 +10,8 @@ #ifdef LILYGO_TBEAM_SUPREME_V3_0 #include -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + diff --git a/lib/SensorsLib/examples/QMI8658_InterruptExample/power.cpp b/lib/SensorsLib/examples/QMI8658_InterruptExample/power.cpp index a18e0ba..1945448 100644 --- a/lib/SensorsLib/examples/QMI8658_InterruptExample/power.cpp +++ b/lib/SensorsLib/examples/QMI8658_InterruptExample/power.cpp @@ -10,8 +10,8 @@ #ifdef LILYGO_TBEAM_SUPREME_V3_0 #include -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + diff --git a/lib/SensorsLib/examples/QMI8658_LockingMechanismExample/power.cpp b/lib/SensorsLib/examples/QMI8658_LockingMechanismExample/power.cpp index a18e0ba..1945448 100644 --- a/lib/SensorsLib/examples/QMI8658_LockingMechanismExample/power.cpp +++ b/lib/SensorsLib/examples/QMI8658_LockingMechanismExample/power.cpp @@ -10,8 +10,8 @@ #ifdef LILYGO_TBEAM_SUPREME_V3_0 #include -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + diff --git a/lib/SensorsLib/examples/QMI8658_MadgwickAHRS/power.cpp b/lib/SensorsLib/examples/QMI8658_MadgwickAHRS/power.cpp index a18e0ba..1945448 100644 --- a/lib/SensorsLib/examples/QMI8658_MadgwickAHRS/power.cpp +++ b/lib/SensorsLib/examples/QMI8658_MadgwickAHRS/power.cpp @@ -10,8 +10,8 @@ #ifdef LILYGO_TBEAM_SUPREME_V3_0 #include -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + diff --git a/lib/SensorsLib/examples/QMI8658_PedometerExample/power.cpp b/lib/SensorsLib/examples/QMI8658_PedometerExample/power.cpp index a18e0ba..1945448 100644 --- a/lib/SensorsLib/examples/QMI8658_PedometerExample/power.cpp +++ b/lib/SensorsLib/examples/QMI8658_PedometerExample/power.cpp @@ -10,8 +10,8 @@ #ifdef LILYGO_TBEAM_SUPREME_V3_0 #include -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + diff --git a/lib/SensorsLib/examples/QMI8658_ReadFromFifoExample/power.cpp b/lib/SensorsLib/examples/QMI8658_ReadFromFifoExample/power.cpp index a18e0ba..1945448 100644 --- a/lib/SensorsLib/examples/QMI8658_ReadFromFifoExample/power.cpp +++ b/lib/SensorsLib/examples/QMI8658_ReadFromFifoExample/power.cpp @@ -10,8 +10,8 @@ #ifdef LILYGO_TBEAM_SUPREME_V3_0 #include -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + diff --git a/lib/SensorsLib/examples/QMI8658_WakeOnMotion/power.cpp b/lib/SensorsLib/examples/QMI8658_WakeOnMotion/power.cpp index a18e0ba..1945448 100644 --- a/lib/SensorsLib/examples/QMI8658_WakeOnMotion/power.cpp +++ b/lib/SensorsLib/examples/QMI8658_WakeOnMotion/power.cpp @@ -10,8 +10,8 @@ #ifdef LILYGO_TBEAM_SUPREME_V3_0 #include -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + diff --git a/lib/SensorsLib/examples/QMI8658_WakeOnMotionCallBackExample/power.cpp b/lib/SensorsLib/examples/QMI8658_WakeOnMotionCallBackExample/power.cpp index a18e0ba..1945448 100644 --- a/lib/SensorsLib/examples/QMI8658_WakeOnMotionCallBackExample/power.cpp +++ b/lib/SensorsLib/examples/QMI8658_WakeOnMotionCallBackExample/power.cpp @@ -10,8 +10,8 @@ #ifdef LILYGO_TBEAM_SUPREME_V3_0 #include -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + diff --git a/lib/XPowersLib/examples/XPowersLibInterface_Example/XPowersLibInterface_Example.ino b/lib/XPowersLib/examples/XPowersLibInterface_Example/XPowersLibInterface_Example.ino index 7ef6d7a..60b051f 100644 --- a/lib/XPowersLib/examples/XPowersLibInterface_Example/XPowersLibInterface_Example.ino +++ b/lib/XPowersLib/examples/XPowersLibInterface_Example/XPowersLibInterface_Example.ino @@ -35,8 +35,8 @@ if there is any loss, please bear it by yourself #include #include #include "XPowersLibInterface.hpp" -#include "XPowersAXP2101.tpp" -#include "XPowersAXP192.tpp" +#include "XPowersLib.h" + #ifndef CONFIG_PMU_SDA #define CONFIG_PMU_SDA 21