fix speed info display

This commit is contained in:
Peter Poetzi
2022-06-16 22:57:46 +02:00
committed by CommanderRedYT
parent 647365c5fc
commit 0393ac750b
2 changed files with 10 additions and 4 deletions

View File

@ -18,6 +18,11 @@ void SpeedInfoDisplay::initScreen()
m_dischargingBar.start();
m_chargingBar.start();
m_batteryPercentLabel.start();
m_voltageLabel.start();
m_distanceLabel.start();
m_currentConsumptionLabel.start();
}
void SpeedInfoDisplay::redraw()

View File

@ -24,8 +24,9 @@ private:
espgui::ReverseProgressBar m_dischargingBar{10, 110, espgui::tft.width()/2 - 10, 25, 0, 40, TFT_GREEN};
espgui::ProgressBar m_chargingBar{espgui::tft.width()/2, 110, espgui::tft.width()/2 - 10, 25, 0, 40, TFT_RED};
espgui::Label m_batteryPercentLabel{5, 150};
espgui::Label m_voltageLabel{5, 190};
espgui::Label m_distanceLabel{5, 230};
espgui::Label m_currentConsumptionLabel{5, 270};
#define START_Y 150
espgui::Label m_batteryPercentLabel{5, START_Y};
espgui::Label m_voltageLabel{5, START_Y + 29 * 1};
espgui::Label m_distanceLabel{5, START_Y + 29 * 2};
espgui::Label m_currentConsumptionLabel{5, START_Y + 29 * 3};
};