LoRa_APRS_iGate/lib/PowerManagement/power_management.h

26 lines
367 B
C
Raw Normal View History

2021-01-01 23:23:27 +01:00
#ifndef POWER_MANAGEMENT_H_
#define POWER_MANAGEMENT_H_
#include <Arduino.h>
#include <axp20x.h>
class PowerManagement {
2021-01-01 23:23:27 +01:00
public:
PowerManagement();
bool begin(TwoWire &port);
2021-01-01 23:23:27 +01:00
void activateLoRa();
void deactivateLoRa();
2021-01-01 23:23:27 +01:00
void activateGPS();
void deactivateGPS();
2021-01-01 23:23:27 +01:00
void activateOLED();
2023-02-18 11:47:24 +01:00
void deactivateOLED();
2021-01-01 23:23:27 +01:00
private:
AXP20X_Class axp;
2021-01-01 23:23:27 +01:00
};
#endif