gui_guider.h 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  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_AIQ;
  20. lv_obj_t *screen_main_label_temp;
  21. lv_obj_t *screen_main_label_hum_vul2;
  22. lv_obj_t *screen_main_label_co2;
  23. lv_obj_t *screen_main_label_6;
  24. lv_obj_t *screen_main_label_7;
  25. lv_obj_t *screen_main_label_8;
  26. lv_obj_t *screen_main_label_9;
  27. lv_obj_t *screen_main_label_10;
  28. lv_obj_t *screen_main_label_11;
  29. lv_obj_t *screen_main_label_14;
  30. lv_obj_t *screen_main_label_lvxin;
  31. lv_obj_t *screen_main_label_AIQ_vul;
  32. lv_obj_t *screen_main_label_17;
  33. lv_obj_t *screen_main_label_18;
  34. lv_obj_t *screen_main_label_AIQ_sign;
  35. lv_obj_t *screen_main_cont_mode;
  36. lv_obj_t *screen_main_imgbtn_auto;
  37. lv_obj_t *screen_main_imgbtn_auto_label;
  38. lv_obj_t *screen_main_imgbtn_xf;
  39. lv_obj_t *screen_main_imgbtn_xf_label;
  40. lv_obj_t *screen_main_imgbtn_js;
  41. lv_obj_t *screen_main_imgbtn_js_label;
  42. lv_obj_t *screen_main_imgbtn_nxh;
  43. lv_obj_t *screen_main_imgbtn_nxh_label;
  44. lv_obj_t *screen_main_imgbtn_power;
  45. lv_obj_t *screen_main_imgbtn_power_label;
  46. lv_obj_t *screen_main_cont_speedset;
  47. lv_obj_t *screen_main_slider_speedSet_sign;
  48. lv_obj_t *screen_main_line_2;
  49. lv_obj_t *screen_main_line_1;
  50. lv_obj_t *screen_main_line_3;
  51. lv_obj_t *screen_main_line_5;
  52. lv_obj_t *screen_main_label_spedSet_vul;
  53. lv_obj_t *screen_main_label_1;
  54. lv_obj_t *screen_main_cont_humSet;
  55. lv_obj_t *screen_main_slider_humSet_sign;
  56. lv_obj_t *screen_main_label_2;
  57. lv_obj_t *screen_main_label_humSet_vul;
  58. lv_obj_t *screen_main_lab_err;
  59. lv_obj_t *screen_main_lab_485_err;
  60. lv_obj_t *screen_main_label_wifi;
  61. lv_obj_t *screen_main_label_19;
  62. lv_obj_t *screen_main_lab_cloud1;
  63. lv_obj_t *SettingPage;
  64. bool SettingPage_del;
  65. lv_obj_t *SettingPage_tabview_1;
  66. lv_obj_t *SettingPage_tabview_1_tab_1;
  67. lv_obj_t *SettingPage_tabview_1_tab_2;
  68. lv_obj_t *SettingPage_tabview_1_tab_3;
  69. lv_obj_t *SettingPage_tabview_1_tab_4;
  70. lv_obj_t *SettingPage_list_wifi;
  71. lv_obj_t *SettingPage_label_1;
  72. lv_obj_t *SettingPage_lab_wifi_status;
  73. lv_obj_t *SettingPage_btn_1;
  74. lv_obj_t *SettingPage_btn_1_label;
  75. lv_obj_t *SettingPage_p_wifi_connect;
  76. lv_obj_t *SettingPage_label_2;
  77. lv_obj_t *SettingPage_label_3;
  78. lv_obj_t *SettingPage_lab_wifi_ssid;
  79. lv_obj_t *SettingPage_btn_2;
  80. lv_obj_t *SettingPage_btn_2_label;
  81. lv_obj_t *SettingPage_txt_wifi_password;
  82. lv_obj_t *SettingPage_btn_3;
  83. lv_obj_t *SettingPage_btn_3_label;
  84. lv_obj_t *SettingPage_sp_wifi_scan;
  85. lv_obj_t *SettingPage_btn_5;
  86. lv_obj_t *SettingPage_btn_5_label;
  87. lv_obj_t *SettingPage_sw_sound;
  88. lv_obj_t *SettingPage_label_10;
  89. lv_obj_t *SettingPage_label_9;
  90. lv_obj_t *SettingPage_slider_sound_level;
  91. lv_obj_t *SettingPage_label_11;
  92. lv_obj_t *SettingPage_sw_1;
  93. lv_obj_t *SettingPage_label_12;
  94. lv_obj_t *SettingPage_spinbox_2;
  95. lv_obj_t *SettingPage_spinbox_2_btn_plus;
  96. lv_obj_t *SettingPage_spinbox_2_btn_minus;
  97. lv_obj_t *SettingPage_cont_1;
  98. lv_obj_t *SettingPage_btn_4;
  99. lv_obj_t *SettingPage_btn_4_label;
  100. lv_obj_t *SettingPage_ta_1;
  101. lv_obj_t *SettingPage_label_5;
  102. lv_obj_t *SettingPage_lab_password_incorrect;
  103. lv_obj_t *SettingPage_label_6;
  104. lv_obj_t *SettingPage_qr_device_code;
  105. lv_obj_t *SettingPage_lab_version;
  106. lv_obj_t *SettingPage_label_7;
  107. lv_obj_t *SettingPage_label_8;
  108. lv_obj_t *SettingPage_label_13;
  109. lv_obj_t *SettingPage_lab_serial;
  110. lv_obj_t *FactorySettingPage;
  111. bool FactorySettingPage_del;
  112. lv_obj_t *FactorySettingPage_tabview_1;
  113. lv_obj_t *FactorySettingPage_tabview_1_tab_1;
  114. lv_obj_t *FactorySettingPage_tabview_1_tab_2;
  115. lv_obj_t *FactorySettingPage_tabview_1_tab_3;
  116. lv_obj_t *FactorySettingPage_spinbox_exhaust1_vol;
  117. lv_obj_t *FactorySettingPage_spinbox_exhaust1_vol_btn_plus;
  118. lv_obj_t *FactorySettingPage_spinbox_exhaust1_vol_btn_minus;
  119. lv_obj_t *FactorySettingPage_spinbox_exhaust3_vol;
  120. lv_obj_t *FactorySettingPage_spinbox_exhaust3_vol_btn_plus;
  121. lv_obj_t *FactorySettingPage_spinbox_exhaust3_vol_btn_minus;
  122. lv_obj_t *FactorySettingPage_spinbox_exhaust5_vol;
  123. lv_obj_t *FactorySettingPage_spinbox_exhaust5_vol_btn_plus;
  124. lv_obj_t *FactorySettingPage_spinbox_exhaust5_vol_btn_minus;
  125. lv_obj_t *FactorySettingPage_spinbox_exhaust4_vol;
  126. lv_obj_t *FactorySettingPage_spinbox_exhaust4_vol_btn_plus;
  127. lv_obj_t *FactorySettingPage_spinbox_exhaust4_vol_btn_minus;
  128. lv_obj_t *FactorySettingPage_spinbox_exhaust2_vol;
  129. lv_obj_t *FactorySettingPage_spinbox_exhaust2_vol_btn_plus;
  130. lv_obj_t *FactorySettingPage_spinbox_exhaust2_vol_btn_minus;
  131. lv_obj_t *FactorySettingPage_label_4;
  132. lv_obj_t *FactorySettingPage_label_2;
  133. lv_obj_t *FactorySettingPage_label_3;
  134. lv_obj_t *FactorySettingPage_label_1;
  135. lv_obj_t *FactorySettingPage_label_5;
  136. lv_obj_t *FactorySettingPage_btn_fan_vol_save;
  137. lv_obj_t *FactorySettingPage_btn_fan_vol_save_label;
  138. lv_obj_t *FactorySettingPage_spinbox_supply1_vol;
  139. lv_obj_t *FactorySettingPage_spinbox_supply1_vol_btn_plus;
  140. lv_obj_t *FactorySettingPage_spinbox_supply1_vol_btn_minus;
  141. lv_obj_t *FactorySettingPage_spinbox_supply2_vol;
  142. lv_obj_t *FactorySettingPage_spinbox_supply2_vol_btn_plus;
  143. lv_obj_t *FactorySettingPage_spinbox_supply2_vol_btn_minus;
  144. lv_obj_t *FactorySettingPage_spinbox_supply3_vol;
  145. lv_obj_t *FactorySettingPage_spinbox_supply3_vol_btn_plus;
  146. lv_obj_t *FactorySettingPage_spinbox_supply3_vol_btn_minus;
  147. lv_obj_t *FactorySettingPage_spinbox_supply4_vol;
  148. lv_obj_t *FactorySettingPage_spinbox_supply4_vol_btn_plus;
  149. lv_obj_t *FactorySettingPage_spinbox_supply4_vol_btn_minus;
  150. lv_obj_t *FactorySettingPage_spinbox_supply5_vol;
  151. lv_obj_t *FactorySettingPage_spinbox_supply5_vol_btn_plus;
  152. lv_obj_t *FactorySettingPage_spinbox_supply5_vol_btn_minus;
  153. lv_obj_t *FactorySettingPage_label_10;
  154. lv_obj_t *FactorySettingPage_label_9;
  155. lv_obj_t *FactorySettingPage_label_8;
  156. lv_obj_t *FactorySettingPage_label_7;
  157. lv_obj_t *FactorySettingPage_label_6;
  158. lv_obj_t *FactorySettingPage_label_11;
  159. lv_obj_t *FactorySettingPage_label_12;
  160. lv_obj_t *FactorySettingPage_btn_refresh_vol;
  161. lv_obj_t *FactorySettingPage_btn_refresh_vol_label;
  162. lv_obj_t *FactorySettingPage_label_detail_error;
  163. lv_obj_t *FactorySettingPage_btn_4;
  164. lv_obj_t *FactorySettingPage_btn_4_label;
  165. lv_obj_t *FactorySettingPage_btn_5;
  166. lv_obj_t *FactorySettingPage_btn_5_label;
  167. lv_obj_t *FactorySettingPage_btn_filter_life_clear;
  168. lv_obj_t *FactorySettingPage_btn_filter_life_clear_label;
  169. lv_obj_t *FactorySettingPage_btn_6;
  170. lv_obj_t *FactorySettingPage_btn_6_label;
  171. lv_obj_t *OTAPage;
  172. bool OTAPage_del;
  173. lv_obj_t *OTAPage_label_1;
  174. lv_obj_t *OTAPage_label_2;
  175. lv_obj_t *OTAPage_label_3;
  176. lv_obj_t *OTAPage_lab_ota_current_version;
  177. lv_obj_t *OTAPage_lab_ota_remote_version;
  178. lv_obj_t *OTAPage_btn_exit;
  179. lv_obj_t *OTAPage_btn_exit_label;
  180. lv_obj_t *OTAPage_label_4;
  181. lv_obj_t *OTAPage_bar_ota_progress;
  182. lv_obj_t *g_kb_top_layer;
  183. }lv_ui;
  184. typedef void (*ui_setup_scr_t)(lv_ui * ui);
  185. void ui_init_style(lv_style_t * style);
  186. 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,
  187. lv_screen_load_anim_t anim_type, uint32_t time, uint32_t delay, bool is_clean, bool auto_del);
  188. 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,
  189. uint32_t repeat_cnt, uint32_t repeat_delay, uint32_t playback_time, uint32_t playback_delay,
  190. 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);
  191. void init_scr_del_flag(lv_ui *ui);
  192. void setup_bottom_layer(void);
  193. void setup_ui(lv_ui *ui);
  194. void video_play(lv_ui *ui);
  195. void init_keyboard(lv_ui *ui);
  196. extern lv_ui guider_ui;
  197. void setup_scr_screen_main(lv_ui *ui);
  198. void setup_scr_SettingPage(lv_ui *ui);
  199. void setup_scr_FactorySettingPage(lv_ui *ui);
  200. void setup_scr_OTAPage(lv_ui *ui);
  201. LV_IMAGE_DECLARE(_back_RGB565A8_480x480);
  202. LV_IMAGE_DECLARE(_huise_RGB565A8_74x26);
  203. LV_IMAGE_DECLARE(_you_RGB565A8_30x30);
  204. LV_IMAGE_DECLARE(_auto_off_RGB565A8_80x80);
  205. LV_IMAGE_DECLARE(_auto_on_RGB565A8_80x80);
  206. LV_IMAGE_DECLARE(_xf_off_RGB565A8_80x80);
  207. LV_IMAGE_DECLARE(_xf_on_RGB565A8_80x80);
  208. LV_IMAGE_DECLARE(_js_off_RGB565A8_80x80);
  209. LV_IMAGE_DECLARE(_js_on_RGB565A8_80x80);
  210. LV_IMAGE_DECLARE(_nxh_off_RGB565A8_80x80);
  211. LV_IMAGE_DECLARE(_nxh_on_RGB565A8_80x80);
  212. LV_IMAGE_DECLARE(_power_RGB565A8_40x40);
  213. LV_IMAGE_DECLARE(_power_open_RGB565A8_40x40);
  214. LV_IMAGE_DECLARE(_speed_RGB565A8_20x20);
  215. LV_IMAGE_DECLARE(_hum_RGB565A8_20x20);
  216. LV_IMAGE_DECLARE(_WiFiruo_RGB565A8_30x30);
  217. LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_26)
  218. LV_FONT_DECLARE(lv_font_montserratMedium_16)
  219. LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_16)
  220. LV_FONT_DECLARE(lv_font_iconfont_24)
  221. LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_18)
  222. LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_48)
  223. LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_14)
  224. LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_22)
  225. LV_FONT_DECLARE(lv_font_montserratMedium_12)
  226. LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_12)
  227. LV_FONT_DECLARE(lv_font_iconfont_22)
  228. LV_FONT_DECLARE(lv_font_iconfont_16)
  229. LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_20)
  230. LV_FONT_DECLARE(lv_font_SourceHanSerifSC_Regular_18)
  231. #ifdef __cplusplus
  232. }
  233. #endif
  234. #endif