kopia lustrzana https://github.com/OpenRTX/OpenRTX
UI: Hide random pixels with a 30ms delayed backlight
rodzic
696759c7e7
commit
56dfb38c2a
|
@ -55,7 +55,6 @@ static void ui_task(void *arg)
|
||||||
|
|
||||||
// Initialise graphics driver
|
// Initialise graphics driver
|
||||||
gfx_init();
|
gfx_init();
|
||||||
platform_setBacklightLevel(255);
|
|
||||||
|
|
||||||
// Display splash screen
|
// Display splash screen
|
||||||
point_t splash_origin = {0, SCREEN_HEIGHT / 2 + 6};
|
point_t splash_origin = {0, SCREEN_HEIGHT / 2 + 6};
|
||||||
|
@ -66,6 +65,10 @@ static void ui_task(void *arg)
|
||||||
yellow_fab413);
|
yellow_fab413);
|
||||||
gfx_render();
|
gfx_render();
|
||||||
while(gfx_renderingInProgress());
|
while(gfx_renderingInProgress());
|
||||||
|
// Wait 30ms to hide random pixels on screen
|
||||||
|
OSTimeDlyHMSM(0u, 0u, 0u, 30u, OS_OPT_TIME_HMSM_STRICT, &os_err);
|
||||||
|
platform_setBacklightLevel(255);
|
||||||
|
// Keep the splash screen for 1 second
|
||||||
OSTimeDlyHMSM(0u, 0u, 1u, 0u, OS_OPT_TIME_HMSM_STRICT, &os_err);
|
OSTimeDlyHMSM(0u, 0u, 1u, 0u, OS_OPT_TIME_HMSM_STRICT, &os_err);
|
||||||
|
|
||||||
// Clear screen
|
// Clear screen
|
||||||
|
|
Ładowanie…
Reference in New Issue