Files
bobbycar-boardcomputer-firm…/main/displays/batterygraphdisplay.h
2023-08-14 15:34:31 +02:00

21 lines
489 B
C++

#pragma once
// local includes
#include "bobbydisplaywithtitle.h"
class BatteryGraphDisplay : public BobbyDisplayWithTitle {
using Base = BobbyDisplayWithTitle;
public:
std::string title() const override;
void initScreen(espgui::TftInterface &tft) override;
void redraw(espgui::TftInterface &tft) override;
void buttonPressed(espgui::Button button) override;
static void drawBatteryCurve(espgui::TftInterface &tft);
private:
float m_lastBatVoltage{0};
};