gui_guider.h 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. /*
  2. * Copyright 2025 NXP
  3. * NXP Proprietary. This software is owned or controlled by NXP and may only be used strictly in
  4. * accordance with the applicable license terms. By expressly accepting such terms or by downloading, installing,
  5. * activating and/or otherwise using the software, you are agreeing that you have read, and that you agree to
  6. * comply with and are bound by, such license terms. If you do not agree to be bound by the applicable license
  7. * terms, then you may not retain, install, activate or otherwise use the software.
  8. */
  9. #ifndef GUI_GUIDER_H
  10. #define GUI_GUIDER_H
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. #include "lvgl.h"
  15. typedef struct
  16. {
  17. lv_obj_t *screen_main;
  18. bool screen_main_del;
  19. lv_obj_t *screen_main_arc_hum;
  20. lv_obj_t *screen_main_label_temp;
  21. lv_obj_t *screen_main_label_hum_vul2;
  22. lv_obj_t *screen_main_label_7;
  23. lv_obj_t *screen_main_label_8;
  24. lv_obj_t *screen_main_label_9;
  25. lv_obj_t *screen_main_label_10;
  26. lv_obj_t *screen_main_label_14;
  27. lv_obj_t *screen_main_cont_mode;
  28. lv_obj_t *screen_main_imgbtn_sf;
  29. lv_obj_t *screen_main_imgbtn_sf_label;
  30. lv_obj_t *screen_main_imgbtn_js;
  31. lv_obj_t *screen_main_imgbtn_js_label;
  32. lv_obj_t *screen_main_imgbtn_cs;
  33. lv_obj_t *screen_main_imgbtn_cs_label;
  34. lv_obj_t *screen_main_imgbtn_power;
  35. lv_obj_t *screen_main_imgbtn_power_label;
  36. lv_obj_t *screen_main_cont_speedset;
  37. lv_obj_t *screen_main_slider_speedSet_sign;
  38. lv_obj_t *screen_main_line_1;
  39. lv_obj_t *screen_main_line_5;
  40. lv_obj_t *screen_main_label_spedSet_vul;
  41. lv_obj_t *screen_main_label_1;
  42. lv_obj_t *screen_main_cont_humSet;
  43. lv_obj_t *screen_main_slider_humSet_sign;
  44. lv_obj_t *screen_main_label_2;
  45. lv_obj_t *screen_main_label_humSet_vul;
  46. lv_obj_t *screen_main_lab_err;
  47. lv_obj_t *screen_main_lab_485_err;
  48. lv_obj_t *screen_main_label_wifi;
  49. lv_obj_t *screen_main_label_19;
  50. lv_obj_t *screen_main_lab_cloud1;
  51. lv_obj_t *screen_main_label_filter_error;
  52. lv_obj_t *screen_main_imgbtn_new_fan;
  53. lv_obj_t *screen_main_imgbtn_new_fan_label;
  54. lv_obj_t *screen_main_img_proof;
  55. lv_obj_t *screen_main_lab_485_err_js;
  56. lv_obj_t *SettingPage;
  57. bool SettingPage_del;
  58. lv_obj_t *SettingPage_tabview_1;
  59. lv_obj_t *SettingPage_tabview_1_tab_1;
  60. lv_obj_t *SettingPage_tabview_1_tab_2;
  61. lv_obj_t *SettingPage_tabview_1_tab_3;
  62. lv_obj_t *SettingPage_tabview_1_tab_4;
  63. lv_obj_t *SettingPage_list_wifi;
  64. lv_obj_t *SettingPage_label_1;
  65. lv_obj_t *SettingPage_lab_wifi_status;
  66. lv_obj_t *SettingPage_btn_1;
  67. lv_obj_t *SettingPage_btn_1_label;
  68. lv_obj_t *SettingPage_p_wifi_connect;
  69. lv_obj_t *SettingPage_label_2;
  70. lv_obj_t *SettingPage_label_3;
  71. lv_obj_t *SettingPage_lab_wifi_ssid;
  72. lv_obj_t *SettingPage_btn_2;
  73. lv_obj_t *SettingPage_btn_2_label;
  74. lv_obj_t *SettingPage_txt_wifi_password;
  75. lv_obj_t *SettingPage_btn_3;
  76. lv_obj_t *SettingPage_btn_3_label;
  77. lv_obj_t *SettingPage_sp_wifi_scan;
  78. lv_obj_t *SettingPage_btn_5;
  79. lv_obj_t *SettingPage_btn_5_label;
  80. lv_obj_t *SettingPage_sw_sound;
  81. lv_obj_t *SettingPage_label_10;
  82. lv_obj_t *SettingPage_label_9;
  83. lv_obj_t *SettingPage_slider_sound_level;
  84. lv_obj_t *SettingPage_label_11;
  85. lv_obj_t *SettingPage_sw_1;
  86. lv_obj_t *SettingPage_label_12;
  87. lv_obj_t *SettingPage_spinbox_2;
  88. lv_obj_t *SettingPage_spinbox_2_btn_plus;
  89. lv_obj_t *SettingPage_spinbox_2_btn_minus;
  90. lv_obj_t *SettingPage_cont_1;
  91. lv_obj_t *SettingPage_btn_4;
  92. lv_obj_t *SettingPage_btn_4_label;
  93. lv_obj_t *SettingPage_ta_1;
  94. lv_obj_t *SettingPage_label_5;
  95. lv_obj_t *SettingPage_lab_password_incorrect;
  96. lv_obj_t *SettingPage_label_6;
  97. lv_obj_t *SettingPage_qr_device_code;
  98. lv_obj_t *SettingPage_lab_version;
  99. lv_obj_t *SettingPage_label_7;
  100. lv_obj_t *SettingPage_label_8;
  101. lv_obj_t *SettingPage_label_13;
  102. lv_obj_t *SettingPage_lab_serial;
  103. lv_obj_t *FactorySettingPage;
  104. bool FactorySettingPage_del;
  105. lv_obj_t *FactorySettingPage_tabview_1;
  106. lv_obj_t *FactorySettingPage_tabview_1_tab_1;
  107. lv_obj_t *FactorySettingPage_tabview_1_tab_2;
  108. lv_obj_t *FactorySettingPage_tabview_1_tab_3;
  109. lv_obj_t *FactorySettingPage_label_1;
  110. lv_obj_t *FactorySettingPage_ddlist_proof_set;
  111. lv_obj_t *FactorySettingPage_btn_refresh;
  112. lv_obj_t *FactorySettingPage_btn_refresh_label;
  113. lv_obj_t *FactorySettingPage_btn_save;
  114. lv_obj_t *FactorySettingPage_btn_save_label;
  115. lv_obj_t *FactorySettingPage_label_detail_error;
  116. lv_obj_t *FactorySettingPage_btn_error;
  117. lv_obj_t *FactorySettingPage_btn_error_label;
  118. lv_obj_t *FactorySettingPage_btn_4;
  119. lv_obj_t *FactorySettingPage_btn_4_label;
  120. lv_obj_t *FactorySettingPage_btn_5;
  121. lv_obj_t *FactorySettingPage_btn_5_label;
  122. lv_obj_t *FactorySettingPage_btn_filter_life_clear;
  123. lv_obj_t *FactorySettingPage_btn_filter_life_clear_label;
  124. lv_obj_t *FactorySettingPage_btn_6;
  125. lv_obj_t *FactorySettingPage_btn_6_label;
  126. lv_obj_t *OTAPage;
  127. bool OTAPage_del;
  128. lv_obj_t *OTAPage_label_1;
  129. lv_obj_t *OTAPage_label_2;
  130. lv_obj_t *OTAPage_label_3;
  131. lv_obj_t *OTAPage_lab_ota_current_version;
  132. lv_obj_t *OTAPage_lab_ota_remote_version;
  133. lv_obj_t *OTAPage_btn_exit;
  134. lv_obj_t *OTAPage_btn_exit_label;
  135. lv_obj_t *OTAPage_label_4;
  136. lv_obj_t *OTAPage_bar_ota_progress;
  137. lv_obj_t *g_kb_top_layer;
  138. }lv_ui;
  139. typedef void (*ui_setup_scr_t)(lv_ui * ui);
  140. void ui_init_style(lv_style_t * style);
  141. void ui_load_scr_animation(lv_ui *ui, lv_obj_t ** new_scr, bool new_scr_del, bool * old_scr_del, ui_setup_scr_t setup_scr,
  142. lv_screen_load_anim_t anim_type, uint32_t time, uint32_t delay, bool is_clean, bool auto_del);
  143. void ui_animation(void * var, uint32_t duration, int32_t delay, int32_t start_value, int32_t end_value, lv_anim_path_cb_t path_cb,
  144. uint32_t repeat_cnt, uint32_t repeat_delay, uint32_t playback_time, uint32_t playback_delay,
  145. lv_anim_exec_xcb_t exec_cb, lv_anim_start_cb_t start_cb, lv_anim_completed_cb_t ready_cb, lv_anim_deleted_cb_t deleted_cb);
  146. void init_scr_del_flag(lv_ui *ui);
  147. void setup_bottom_layer(void);
  148. void setup_ui(lv_ui *ui);
  149. void video_play(lv_ui *ui);
  150. void init_keyboard(lv_ui *ui);
  151. extern lv_ui guider_ui;
  152. void setup_scr_screen_main(lv_ui *ui);
  153. void setup_scr_SettingPage(lv_ui *ui);
  154. void setup_scr_FactorySettingPage(lv_ui *ui);
  155. void setup_scr_OTAPage(lv_ui *ui);
  156. LV_IMAGE_DECLARE(_back_RGB565A8_480x480);
  157. LV_IMAGE_DECLARE(_songfeng_RGB565A8_60x60);
  158. LV_IMAGE_DECLARE(_songfengkai_RGB565A8_60x60);
  159. LV_IMAGE_DECLARE(_jiashi_RGB565A8_60x60);
  160. LV_IMAGE_DECLARE(_jiashikai_RGB565A8_60x60);
  161. LV_IMAGE_DECLARE(_chushi_RGB565A8_60x60);
  162. LV_IMAGE_DECLARE(_chushikai_RGB565A8_60x60);
  163. LV_IMAGE_DECLARE(_power_RGB565A8_50x50);
  164. LV_IMAGE_DECLARE(_power_open_RGB565A8_50x50);
  165. LV_IMAGE_DECLARE(_speed_RGB565A8_20x20);
  166. LV_IMAGE_DECLARE(_hum_RGB565A8_20x20);
  167. LV_IMAGE_DECLARE(_WiFiruo_RGB565A8_30x30);
  168. LV_IMAGE_DECLARE(_xinfeng_RGB565A8_60x60);
  169. LV_IMAGE_DECLARE(_xinfengkai_RGB565A8_60x60);
  170. LV_IMAGE_DECLARE(_proof_RGB565A8_22x22);
  171. LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_26)
  172. LV_FONT_DECLARE(lv_font_montserratMedium_16)
  173. LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_48)
  174. LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_32)
  175. LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_16)
  176. LV_FONT_DECLARE(lv_font_iconfont_24)
  177. LV_FONT_DECLARE(lv_font_iconfont_32)
  178. LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_18)
  179. LV_FONT_DECLARE(lv_font_montserratMedium_12)
  180. LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_12)
  181. LV_FONT_DECLARE(lv_font_iconfont_22)
  182. LV_FONT_DECLARE(lv_font_iconfont_16)
  183. LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_20)
  184. LV_FONT_DECLARE(lv_font_SourceHanSerifSC_Regular_18)
  185. #ifdef __cplusplus
  186. }
  187. #endif
  188. #endif