mirror of
https://github.com/lora-aprs/LoRa_APRS_iGate.git
synced 2025-12-06 07:42:00 +01:00
27 lines
359 B
C
27 lines
359 B
C
|
|
#ifndef POWER_MANAGEMENT_H_
|
||
|
|
#define POWER_MANAGEMENT_H_
|
||
|
|
|
||
|
|
#include <Arduino.h>
|
||
|
|
#include <axp20x.h>
|
||
|
|
|
||
|
|
class PowerManagement
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
PowerManagement();
|
||
|
|
bool begin(TwoWire & port);
|
||
|
|
|
||
|
|
void activateLoRa();
|
||
|
|
void deactivateLoRa();
|
||
|
|
|
||
|
|
void activateGPS();
|
||
|
|
void deactivateGPS();
|
||
|
|
|
||
|
|
void activateOLED();
|
||
|
|
void decativateOLED();
|
||
|
|
|
||
|
|
private:
|
||
|
|
AXP20X_Class axp;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif
|