#ifndef POWER_MANAGEMENT_H_ #define POWER_MANAGEMENT_H_ #include #include class PowerManagement { public: PowerManagement(); bool begin(TwoWire &port); void activateLoRa(); void deactivateLoRa(); void activateGPS(); void deactivateGPS(); void activateOLED(); void decativateOLED(); void activateMeasurement(); void deactivateMeasurement(); double getBatteryVoltage(); double getBatteryChargeDischargeCurrent(); bool isBatteryConnect(); private: AXP20X_Class axp; }; #endif