UI: Add VFO Demo text

This commit is contained in:
Federico Amedeo Izzo 2020-11-18 10:12:14 +01:00
parent 39d5912adc
commit 0b8bb486a4
2 changed files with 12 additions and 1 deletions

View File

@ -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();

View File

@ -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()