From f855c535d54fdac6ed3999ce71c9d14871c18b43 Mon Sep 17 00:00:00 2001 From: qitas Date: Fri, 29 Mar 2024 09:37:09 +0800 Subject: [PATCH] fix --- src/main.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/main.c b/src/main.c index 24f33f6..41ff65e 100644 --- a/src/main.c +++ b/src/main.c @@ -3,15 +3,13 @@ * @file main.c * @author Ac6 * @version V1.0 - * @date 01-December-2013 + * @date 01-December-2024 * @brief Default main function. ****************************************************************************** */ - #include "lvgl.h" #include "app_hal.h" - #include "demos/lv_demos.h" int main(void) @@ -19,8 +17,15 @@ int main(void) lv_init(); hal_setup(); - - lv_demo_widgets(); - + #if LV_USE_DEMO_BENCHMARK + lv_demo_benchmark_set_max_speed(true); + lv_demo_benchmark(); + #elif LV_USE_DEMO_WIDGETS + lv_demo_widgets(); + #elif LV_USE_DEMO_STRESS + lv_demo_stress(); + #elif LV_USE_DEMO_MUSIC + lv_demo_music(); + #endif hal_loop(); }