From 50f6799ab92fdf9ab43103d05b9f589cfe9f9faa Mon Sep 17 00:00:00 2001 From: Silvano Seva Date: Sun, 25 Oct 2020 17:26:38 +0100 Subject: [PATCH] Little improvements in platform test: reduced delay and blinking green led to signal effective code execution --- openrtx/src/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openrtx/src/main.c b/openrtx/src/main.c index 65619f54..e83ef74d 100644 --- a/openrtx/src/main.c +++ b/openrtx/src/main.c @@ -27,6 +27,7 @@ void platform_test() { + gpio_togglePin(GREEN_LED); OS_ERR os_err; point_t pos_line1 = {0, 0}; point_t pos_line2 = {0, 9}; @@ -47,11 +48,13 @@ void platform_test() gfx_print(pos_line3, buf3, FONT_SIZE_1, TEXT_ALIGN_LEFT, color_white); gfx_render(); while(gfx_renderingInProgress()); - OSTimeDlyHMSM(0u, 0u, 1u, 0u, OS_OPT_TIME_HMSM_STRICT, &os_err); + OSTimeDlyHMSM(0u, 0u, 0u, 250u, OS_OPT_TIME_HMSM_STRICT, &os_err); } int main(void) { + gpio_setMode(GREEN_LED, OUTPUT); + // Init the graphic stack gfx_init(); platform_setBacklightLevel(255);