Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
qitas committed Mar 29, 2024
1 parent e6cbd33 commit f855c53
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,29 @@
* @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)
{
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();
}

0 comments on commit f855c53

Please sign in to comment.