lv_demo.c 668 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (c) 2006-2022, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2022-6-1 Wayne First version
  9. */
  10. #include <lvgl.h>
  11. void lv_user_gui_init(void)
  12. {
  13. /* display demo; you may replace with your LVGL application at here and disable related definitions. */
  14. #if LV_USE_DEMO_BENCHMARK
  15. extern void lv_demo_benchmark(void);
  16. lv_demo_benchmark();
  17. #elif LV_USE_DEMO_WIDGETS
  18. extern void lv_demo_widgets(void);
  19. lv_demo_widgets();
  20. #elif (LV_USE_DEMO_MUSIC || LV_USE_DEMO_RTT_MUSIC)
  21. extern void lv_demo_music(void);
  22. lv_demo_music();
  23. #endif
  24. }