From 0b8bb486a45c968846bd4277bb3d39402b74d180 Mon Sep 17 00:00:00 2001 From: Federico Amedeo Izzo Date: Wed, 18 Nov 2020 10:12:14 +0100 Subject: [PATCH] UI: Add VFO Demo text --- openrtx/src/threads.c | 2 +- openrtx/src/ui.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/openrtx/src/threads.c b/openrtx/src/threads.c index cdae49c6..fe213e8f 100644 --- a/openrtx/src/threads.c +++ b/openrtx/src/threads.c @@ -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(); diff --git a/openrtx/src/ui.c b/openrtx/src/ui.c index 627d3e9d..268cdbcc 100644 --- a/openrtx/src/ui.c +++ b/openrtx/src/ui.c @@ -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()