OMOTE/Platformio/HAL/Interface/BatteryInterface.h
Matthew Colvin cd603a2a83 Update Battery Interface by adding it to hardwareInterface
Remove Display out of some classes and leave comments to replace for callbacks
I dont know about the function of this code but it compiles :)
2023-09-09 21:44:47 -04:00

22 lines
No EOL
764 B
C++

#pragma once
#include "DisplayInterface.h"
class BatteryInterface {
public:
struct batteryStatus {
/// @brief Percent of battery remaining (0-100]
int percentage;
/// @brief Voltage of battery in millivolts
int voltage;
/// @brief True - Battery is Charging
/// False - Battery discharging
bool isCharging;
};
virtual BatteryInterface::batteryStatus getBatteryPercentage() = 0;
//virtual void setup(DisplayInterface& display, int adc_pin, int charging_pin) = 0;
//virtual int getPercentage() = 0;
//virtual bool isCharging() = 0;
//virtual bool isConnected() = 0;
//virtual void update() = 0;
};