19 lines
406 B
C++
19 lines
406 B
C++
#pragma once
|
|
|
|
// local includes
|
|
#include "bobbydisplay.h"
|
|
|
|
class BatteryInfoDisplay : public BobbyDisplay
|
|
{
|
|
using Base = BobbyDisplay;
|
|
|
|
public:
|
|
void initScreen(espgui::TftInterface &tft) override;
|
|
void redraw(espgui::TftInterface &tft) override;
|
|
|
|
void buttonPressed(espgui::Button button) override;
|
|
private:
|
|
static constexpr const auto m_offset = 40;
|
|
uint16_t m_lastBarCount{0};
|
|
};
|