kopia lustrzana https://github.com/OpenRTX/OpenRTX
UI: Add VFO Demo text
rodzic
39d5912adc
commit
0b8bb486a4
|
@ -66,7 +66,7 @@ static void ui_task(void *arg)
|
|||
yellow_fab413);
|
||||
gfx_render();
|
||||
while(gfx_renderingInProgress());
|
||||
OSTimeDlyHMSM(1u, 0u, 1u, 0u, OS_OPT_TIME_HMSM_STRICT, &os_err);
|
||||
OSTimeDlyHMSM(0u, 0u, 1u, 0u, OS_OPT_TIME_HMSM_STRICT, &os_err);
|
||||
|
||||
// Clear screen
|
||||
gfx_clearScreen();
|
||||
|
|
|
@ -210,12 +210,23 @@ void _ui_drawVFO(state_t state)
|
|||
gfx_print(layout.line1_pos, freq_buf, layout.line1_font, TEXT_ALIGN_CENTER, color_white);
|
||||
snprintf(freq_buf, sizeof(freq_buf), "Tx: %09.5f", state.tx_freq);
|
||||
gfx_print(layout.line2_pos, freq_buf, layout.line2_font, TEXT_ALIGN_CENTER, color_white);
|
||||
// Print VFO Demo on line 3
|
||||
char line3_buf[10] = "VFO Demo";
|
||||
gfx_print(layout.line3_pos, line3_buf, layout.line3_font, TEXT_ALIGN_CENTER, color_white);
|
||||
}
|
||||
|
||||
void _ui_drawBottomBar()
|
||||
{
|
||||
// Print OpenRTX on bottom bar
|
||||
char bottom_buf[8] = "OpenRTX";
|
||||
gfx_print(layout.bottom_pos, bottom_buf, layout.bottom_font, TEXT_ALIGN_CENTER, color_white);
|
||||
}
|
||||
|
||||
void ui_drawMainScreen(state_t state)
|
||||
{
|
||||
_ui_drawTopBar();
|
||||
_ui_drawVFO(state);
|
||||
_ui_drawBottomBar();
|
||||
}
|
||||
|
||||
void ui_init()
|
||||
|
|
Ładowanie…
Reference in New Issue