fix speed info display
This commit is contained in:
committed by
CommanderRedYT
parent
647365c5fc
commit
0393ac750b
@@ -18,6 +18,11 @@ void SpeedInfoDisplay::initScreen()
|
|||||||
|
|
||||||
m_dischargingBar.start();
|
m_dischargingBar.start();
|
||||||
m_chargingBar.start();
|
m_chargingBar.start();
|
||||||
|
|
||||||
|
m_batteryPercentLabel.start();
|
||||||
|
m_voltageLabel.start();
|
||||||
|
m_distanceLabel.start();
|
||||||
|
m_currentConsumptionLabel.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SpeedInfoDisplay::redraw()
|
void SpeedInfoDisplay::redraw()
|
||||||
|
@@ -24,8 +24,9 @@ private:
|
|||||||
espgui::ReverseProgressBar m_dischargingBar{10, 110, espgui::tft.width()/2 - 10, 25, 0, 40, TFT_GREEN};
|
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::ProgressBar m_chargingBar{espgui::tft.width()/2, 110, espgui::tft.width()/2 - 10, 25, 0, 40, TFT_RED};
|
||||||
|
|
||||||
espgui::Label m_batteryPercentLabel{5, 150};
|
#define START_Y 150
|
||||||
espgui::Label m_voltageLabel{5, 190};
|
espgui::Label m_batteryPercentLabel{5, START_Y};
|
||||||
espgui::Label m_distanceLabel{5, 230};
|
espgui::Label m_voltageLabel{5, START_Y + 29 * 1};
|
||||||
espgui::Label m_currentConsumptionLabel{5, 270};
|
espgui::Label m_distanceLabel{5, START_Y + 29 * 2};
|
||||||
|
espgui::Label m_currentConsumptionLabel{5, START_Y + 29 * 3};
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user