using new poller class to simplify the battery interface and downstream usages of battery. tweaked poller destructor and remove the default constructor in preference of using a unique pointer convert simulator to use a std::thread for lvgl Tick api because the SDL thread sleep was not true to time. (and is simplified the code...)
9 lines
No EOL
183 B
C++
9 lines
No EOL
183 B
C++
#pragma once
|
|
#include "Notification.hpp"
|
|
|
|
class BatteryInterface {
|
|
public:
|
|
BatteryInterface() = default;
|
|
virtual int getPercentage() = 0;
|
|
virtual bool isCharging() = 0;
|
|
}; |