feat(b&w): Show time on main and telemetry 128x64 screens (#3306)

* Display time on main screen and telemetry for B&W radios.
Fix position for timer0 display on telemetry screen (was off screen).

* Put the time between the trim bars.
Center the stick boxes and the pot/slider bars.

* Remove code for unsupported radios.
This commit is contained in:
philmoz
2023-03-10 11:26:25 +10:00
committed by GitHub
parent a416548ecc
commit b88b4b66c1
2 changed files with 27 additions and 168 deletions
+5 -2
View File
@@ -626,11 +626,14 @@ void drawTelemetryTopBar()
{
drawModelName(0, 0, g_model.header.name, g_eeGeneral.currModel, 0);
uint8_t att = (IS_TXBATT_WARNING() ? BLINK : 0);
putsVBat(14*FW,0,att);
putsVBat(10*FW-1,0,att);
if (g_model.timers[0].mode) {
att = (timersStates[0].val<0 ? BLINK : 0);
drawTimer(17*FW+5*FWNUM+1, 0, timersStates[0].val, att, att);
drawTimer(13*FW+2, 0, timersStates[0].val, att, att);
}
#if defined(RTCLOCK)
drawRtcTime(17*FW+3, 0, LEFT|TIMEBLINK);
#endif
lcdInvertLine(0);
}