ui.c 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // This file was generated by SquareLine Studio
  2. // SquareLine Studio version: SquareLine Studio 1.4.2
  3. // LVGL version: 8.3.11
  4. // Project name: SquareLine_Project
  5. #include "ui.h"
  6. #include "ui_helpers.h"
  7. ///////////////////// VARIABLES ////////////////////
  8. // SCREEN: ui_Screen1
  9. void ui_Screen1_screen_init(void);
  10. lv_obj_t * ui_Screen1;
  11. lv_obj_t * ui_Arc1;
  12. lv_obj_t * ui____initial_actions0;
  13. ///////////////////// TEST LVGL SETTINGS ////////////////////
  14. #if LV_COLOR_DEPTH != 16
  15. #error "LV_COLOR_DEPTH should be 16bit to match SquareLine Studio's settings"
  16. #endif
  17. #if LV_COLOR_16_SWAP !=1
  18. #error "LV_COLOR_16_SWAP should be 1 to match SquareLine Studio's settings"
  19. #endif
  20. ///////////////////// ANIMATIONS ////////////////////
  21. ///////////////////// FUNCTIONS ////////////////////
  22. ///////////////////// SCREENS ////////////////////
  23. void ui_init(void)
  24. {
  25. lv_disp_t * dispp = lv_disp_get_default();
  26. lv_theme_t * theme = lv_theme_basic_init(dispp);
  27. lv_disp_set_theme(dispp, theme);
  28. ui_Screen1_screen_init();
  29. ui____initial_actions0 = lv_obj_create(NULL);
  30. lv_disp_load_scr(ui_Screen1);
  31. }