gui_guider.h 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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;
  18. bool screen_del;
  19. lv_obj_t *screen_cont_power_on;
  20. lv_obj_t *screen_arc_temp;
  21. lv_obj_t *screen_label_6;
  22. lv_obj_t *screen_label_1;
  23. lv_obj_t *screen_label_2;
  24. lv_obj_t *screen_lab_temp_low;
  25. lv_obj_t *screen_lab_temp_high;
  26. lv_obj_t *screen_lab_env_temp;
  27. lv_obj_t *screen_lab_env_hum;
  28. lv_obj_t *screen_lab_ac_temp;
  29. lv_obj_t *screen_ib_power;
  30. lv_obj_t *screen_ib_power_label;
  31. lv_obj_t *screen_ib_heat;
  32. lv_obj_t *screen_ib_heat_label;
  33. lv_obj_t *screen_ib_cool;
  34. lv_obj_t *screen_ib_cool_label;
  35. lv_obj_t *screen_cont_power_off;
  36. lv_obj_t *screen_lab_env_hum_2;
  37. lv_obj_t *screen_label_9;
  38. lv_obj_t *screen_label_10;
  39. lv_obj_t *screen_label_11;
  40. lv_obj_t *screen_imgbtn_1;
  41. lv_obj_t *screen_imgbtn_1_label;
  42. lv_obj_t *screen_lab_icon_err;
  43. lv_obj_t *screen_img_wifi;
  44. lv_obj_t *screen_lab_icon_cloud;
  45. lv_obj_t *screen_lab_mode;
  46. lv_obj_t *WaterValvePage;
  47. bool WaterValvePage_del;
  48. lv_obj_t *WaterValvePage_cont_1;
  49. lv_obj_t *WaterValvePage_imgbtn_1;
  50. lv_obj_t *WaterValvePage_imgbtn_1_label;
  51. lv_obj_t *WaterValvePage_spangroup_1;
  52. lv_span_t *WaterValvePage_spangroup_1_span;
  53. lv_obj_t *WaterValvePage_spangroup_2;
  54. lv_span_t *WaterValvePage_spangroup_2_span;
  55. lv_obj_t *WaterValvePage_sw_1;
  56. lv_obj_t *WaterValvePage_cont_2;
  57. lv_obj_t *WaterValvePage_cb_4;
  58. lv_obj_t *WaterValvePage_cb_3;
  59. lv_obj_t *WaterValvePage_cb_2;
  60. lv_obj_t *WaterValvePage_cb_1;
  61. lv_obj_t *SettingPage;
  62. bool SettingPage_del;
  63. lv_obj_t *SettingPage_tabview_1;
  64. lv_obj_t *SettingPage_tabview_1_tab_1;
  65. lv_obj_t *SettingPage_tabview_1_tab_2;
  66. lv_obj_t *SettingPage_tabview_1_tab_3;
  67. lv_obj_t *SettingPage_tabview_1_tab_4;
  68. lv_obj_t *SettingPage_list_wifi;
  69. lv_obj_t *SettingPage_label_1;
  70. lv_obj_t *SettingPage_lab_wifi_status;
  71. lv_obj_t *SettingPage_btn_1;
  72. lv_obj_t *SettingPage_btn_1_label;
  73. lv_obj_t *SettingPage_p_wifi_connect;
  74. lv_obj_t *SettingPage_label_2;
  75. lv_obj_t *SettingPage_label_3;
  76. lv_obj_t *SettingPage_lab_wifi_ssid;
  77. lv_obj_t *SettingPage_btn_2;
  78. lv_obj_t *SettingPage_btn_2_label;
  79. lv_obj_t *SettingPage_txt_wifi_password;
  80. lv_obj_t *SettingPage_btn_3;
  81. lv_obj_t *SettingPage_btn_3_label;
  82. lv_obj_t *SettingPage_sp_wifi_scan;
  83. lv_obj_t *SettingPage_btn_5;
  84. lv_obj_t *SettingPage_btn_5_label;
  85. lv_obj_t *SettingPage_sw_sound;
  86. lv_obj_t *SettingPage_label_10;
  87. lv_obj_t *SettingPage_label_9;
  88. lv_obj_t *SettingPage_slider_sound_level;
  89. lv_obj_t *SettingPage_label_11;
  90. lv_obj_t *SettingPage_sw_1;
  91. lv_obj_t *SettingPage_label_12;
  92. lv_obj_t *SettingPage_spinbox_2;
  93. lv_obj_t *SettingPage_spinbox_2_btn_plus;
  94. lv_obj_t *SettingPage_spinbox_2_btn_minus;
  95. lv_obj_t *SettingPage_cont_1;
  96. lv_obj_t *SettingPage_btn_4;
  97. lv_obj_t *SettingPage_btn_4_label;
  98. lv_obj_t *SettingPage_ta_1;
  99. lv_obj_t *SettingPage_label_5;
  100. lv_obj_t *SettingPage_lab_password_incorrect;
  101. lv_obj_t *SettingPage_label_6;
  102. lv_obj_t *SettingPage_qr_device_code;
  103. lv_obj_t *SettingPage_lab_version;
  104. lv_obj_t *SettingPage_label_7;
  105. lv_obj_t *SettingPage_label_8;
  106. lv_obj_t *SettingPage_label_13;
  107. lv_obj_t *SettingPage_lab_serial;
  108. lv_obj_t *FactorySettingPage;
  109. bool FactorySettingPage_del;
  110. lv_obj_t *FactorySettingPage_tabview_1;
  111. lv_obj_t *FactorySettingPage_tabview_1_tab_1;
  112. lv_obj_t *FactorySettingPage_tabview_1_tab_2;
  113. lv_obj_t *FactorySettingPage_tabview_1_tab_3;
  114. lv_obj_t *FactorySettingPage_tabview_1_tab_4;
  115. lv_obj_t *FactorySettingPage_btn_3;
  116. lv_obj_t *FactorySettingPage_btn_3_label;
  117. lv_obj_t *FactorySettingPage_btn_2;
  118. lv_obj_t *FactorySettingPage_btn_2_label;
  119. lv_obj_t *FactorySettingPage_btn_1;
  120. lv_obj_t *FactorySettingPage_btn_1_label;
  121. lv_obj_t *FactorySettingPage_sw_valve_onoff;
  122. lv_obj_t *FactorySettingPage_lab_inner_addr;
  123. lv_obj_t *FactorySettingPage_sp_temp_recoup;
  124. lv_obj_t *FactorySettingPage_sp_temp_recoup_btn_plus;
  125. lv_obj_t *FactorySettingPage_sp_temp_recoup_btn_minus;
  126. lv_obj_t *FactorySettingPage_label_6;
  127. lv_obj_t *FactorySettingPage_sp_hum_recoup;
  128. lv_obj_t *FactorySettingPage_sp_hum_recoup_btn_plus;
  129. lv_obj_t *FactorySettingPage_sp_hum_recoup_btn_minus;
  130. lv_obj_t *FactorySettingPage_label_7;
  131. lv_obj_t *FactorySettingPage_label_8;
  132. lv_obj_t *FactorySettingPage_cont_wh_module;
  133. lv_obj_t *FactorySettingPage_cb_28;
  134. lv_obj_t *FactorySettingPage_cb_27;
  135. lv_obj_t *FactorySettingPage_cb_26;
  136. lv_obj_t *FactorySettingPage_btn_4;
  137. lv_obj_t *FactorySettingPage_btn_4_label;
  138. lv_obj_t *FactorySettingPage_btn_5;
  139. lv_obj_t *FactorySettingPage_btn_5_label;
  140. lv_obj_t *FactorySettingPage_btn_6;
  141. lv_obj_t *FactorySettingPage_btn_6_label;
  142. lv_obj_t *OTAPage;
  143. bool OTAPage_del;
  144. lv_obj_t *OTAPage_label_1;
  145. lv_obj_t *OTAPage_label_2;
  146. lv_obj_t *OTAPage_label_3;
  147. lv_obj_t *OTAPage_lab_ota_current_version;
  148. lv_obj_t *OTAPage_lab_ota_remote_version;
  149. lv_obj_t *OTAPage_bar_ota_progress;
  150. lv_obj_t *OTAPage_label_6;
  151. lv_obj_t *OTAPage_btn_exit;
  152. lv_obj_t *OTAPage_btn_exit_label;
  153. lv_obj_t *g_kb_top_layer;
  154. }lv_ui;
  155. typedef void (*ui_setup_scr_t)(lv_ui * ui);
  156. void ui_init_style(lv_style_t * style);
  157. 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,
  158. lv_screen_load_anim_t anim_type, uint32_t time, uint32_t delay, bool is_clean, bool auto_del);
  159. 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,
  160. uint32_t repeat_cnt, uint32_t repeat_delay, uint32_t playback_time, uint32_t playback_delay,
  161. 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);
  162. void init_scr_del_flag(lv_ui *ui);
  163. void setup_bottom_layer(void);
  164. void setup_ui(lv_ui *ui);
  165. void video_play(lv_ui *ui);
  166. void init_keyboard(lv_ui *ui);
  167. extern lv_ui guider_ui;
  168. void setup_scr_screen(lv_ui *ui);
  169. void setup_scr_WaterValvePage(lv_ui *ui);
  170. void setup_scr_SettingPage(lv_ui *ui);
  171. void setup_scr_FactorySettingPage(lv_ui *ui);
  172. void setup_scr_OTAPage(lv_ui *ui);
  173. LV_IMAGE_DECLARE(_main_bg_RGB565A8_480x480);
  174. LV_IMAGE_DECLARE(_swtich_RGB565A8_84x84);
  175. LV_IMAGE_DECLARE(_ac_mode_heat_RGB565A8_48x48);
  176. LV_IMAGE_DECLARE(_ac_mode_heat_sel_RGB565A8_48x48);
  177. LV_IMAGE_DECLARE(_ac_mode_cool_RGB565A8_48x48);
  178. LV_IMAGE_DECLARE(_ac_mode_cool_sel_RGB565A8_48x48);
  179. LV_IMAGE_DECLARE(_wifi_stron_RGB565A8_32x32);
  180. LV_IMAGE_DECLARE(_12_RGB565A8_480x480);
  181. LV_IMAGE_DECLARE(_back2_RGB565A8_45x45);
  182. LV_FONT_DECLARE(lv_font_montserratMedium_25)
  183. LV_FONT_DECLARE(lv_font_montserratMedium_16)
  184. LV_FONT_DECLARE(lv_font_iconfont_25)
  185. LV_FONT_DECLARE(lv_font_PuHui_ExtraBold_60)
  186. LV_FONT_DECLARE(lv_font_montserratMedium_12)
  187. LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_16)
  188. LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_24)
  189. LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_18)
  190. LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_26)
  191. LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_20)
  192. LV_FONT_DECLARE(lv_font_PuHui_ExtraBold_20)
  193. LV_FONT_DECLARE(lv_font_SourceHanSerifSC_Regular_20)
  194. #ifdef __cplusplus
  195. }
  196. #endif
  197. #endif