gui_guider.h 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  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_lab_mode;
  36. lv_obj_t *screen_label_12;
  37. lv_obj_t *screen_lab_in_temp;
  38. lv_obj_t *screen_label_13;
  39. lv_obj_t *screen_lab_out_temp;
  40. lv_obj_t *screen_label_15;
  41. lv_obj_t *screen_label_16;
  42. lv_obj_t *screen_cont_power_off;
  43. lv_obj_t *screen_lab_env_hum_2;
  44. lv_obj_t *screen_lab_env_temp_2;
  45. lv_obj_t *screen_label_10;
  46. lv_obj_t *screen_label_11;
  47. lv_obj_t *screen_imgbtn_1;
  48. lv_obj_t *screen_imgbtn_1_label;
  49. lv_obj_t *screen_img_wifi;
  50. lv_obj_t *screen_cont_icons;
  51. lv_obj_t *screen_lab_icon_cloud;
  52. lv_obj_t *screen_lab_icon_err;
  53. lv_obj_t *screen_lab_icon_485;
  54. lv_obj_t *screen_lab_icon_linkage;
  55. lv_obj_t *screen_cont_1;
  56. lv_obj_t *WaterValvePage;
  57. bool WaterValvePage_del;
  58. lv_obj_t *WaterValvePage_imgbtn_1;
  59. lv_obj_t *WaterValvePage_imgbtn_1_label;
  60. lv_obj_t *WaterValvePage_sw_1;
  61. lv_obj_t *WaterValvePage_sw_2;
  62. lv_obj_t *WaterValvePage_sw_3;
  63. lv_obj_t *WaterValvePage_sw_4;
  64. lv_obj_t *WaterValvePage_sw_8;
  65. lv_obj_t *WaterValvePage_sw_7;
  66. lv_obj_t *WaterValvePage_sw_6;
  67. lv_obj_t *WaterValvePage_sw_5;
  68. lv_obj_t *WaterValvePage_label_1;
  69. lv_obj_t *WaterValvePage_label_2;
  70. lv_obj_t *WaterValvePage_label_3;
  71. lv_obj_t *WaterValvePage_label_4;
  72. lv_obj_t *WaterValvePage_label_5;
  73. lv_obj_t *WaterValvePage_label_6;
  74. lv_obj_t *WaterValvePage_label_7;
  75. lv_obj_t *WaterValvePage_label_8;
  76. lv_obj_t *WaterValvePage_label_9;
  77. lv_obj_t *SettingPage;
  78. bool SettingPage_del;
  79. lv_obj_t *SettingPage_tabview_1;
  80. lv_obj_t *SettingPage_tabview_1_tab_1;
  81. lv_obj_t *SettingPage_tabview_1_tab_2;
  82. lv_obj_t *SettingPage_tabview_1_tab_3;
  83. lv_obj_t *SettingPage_tabview_1_tab_4;
  84. lv_obj_t *SettingPage_list_wifi;
  85. lv_obj_t *SettingPage_label_1;
  86. lv_obj_t *SettingPage_lab_wifi_status;
  87. lv_obj_t *SettingPage_btn_1;
  88. lv_obj_t *SettingPage_btn_1_label;
  89. lv_obj_t *SettingPage_p_wifi_connect;
  90. lv_obj_t *SettingPage_label_2;
  91. lv_obj_t *SettingPage_label_3;
  92. lv_obj_t *SettingPage_lab_wifi_ssid;
  93. lv_obj_t *SettingPage_btn_2;
  94. lv_obj_t *SettingPage_btn_2_label;
  95. lv_obj_t *SettingPage_txt_wifi_password;
  96. lv_obj_t *SettingPage_btn_3;
  97. lv_obj_t *SettingPage_btn_3_label;
  98. lv_obj_t *SettingPage_sp_wifi_scan;
  99. lv_obj_t *SettingPage_btn_5;
  100. lv_obj_t *SettingPage_btn_5_label;
  101. lv_obj_t *SettingPage_sw_sound;
  102. lv_obj_t *SettingPage_label_10;
  103. lv_obj_t *SettingPage_label_9;
  104. lv_obj_t *SettingPage_slider_sound_level;
  105. lv_obj_t *SettingPage_label_11;
  106. lv_obj_t *SettingPage_sw_1;
  107. lv_obj_t *SettingPage_label_12;
  108. lv_obj_t *SettingPage_spinbox_2;
  109. lv_obj_t *SettingPage_spinbox_2_btn_plus;
  110. lv_obj_t *SettingPage_spinbox_2_btn_minus;
  111. lv_obj_t *SettingPage_cont_1;
  112. lv_obj_t *SettingPage_btn_4;
  113. lv_obj_t *SettingPage_btn_4_label;
  114. lv_obj_t *SettingPage_ta_1;
  115. lv_obj_t *SettingPage_label_5;
  116. lv_obj_t *SettingPage_lab_password_incorrect;
  117. lv_obj_t *SettingPage_label_6;
  118. lv_obj_t *SettingPage_qr_device_code;
  119. lv_obj_t *SettingPage_lab_version;
  120. lv_obj_t *SettingPage_label_7;
  121. lv_obj_t *SettingPage_label_8;
  122. lv_obj_t *SettingPage_label_13;
  123. lv_obj_t *SettingPage_lab_serial;
  124. lv_obj_t *FactorySettingPage;
  125. bool FactorySettingPage_del;
  126. lv_obj_t *FactorySettingPage_tabview_1;
  127. lv_obj_t *FactorySettingPage_tabview_1_tab_1;
  128. lv_obj_t *FactorySettingPage_tabview_1_tab_2;
  129. lv_obj_t *FactorySettingPage_tabview_1_tab_3;
  130. lv_obj_t *FactorySettingPage_tabview_1_tab_4;
  131. lv_obj_t *FactorySettingPage_btn_3;
  132. lv_obj_t *FactorySettingPage_btn_3_label;
  133. lv_obj_t *FactorySettingPage_btn_2;
  134. lv_obj_t *FactorySettingPage_btn_2_label;
  135. lv_obj_t *FactorySettingPage_btn_1;
  136. lv_obj_t *FactorySettingPage_btn_1_label;
  137. lv_obj_t *FactorySettingPage_sw_valve_onoff;
  138. lv_obj_t *FactorySettingPage_lab_inner_addr;
  139. lv_obj_t *FactorySettingPage_sp_temp_recoup;
  140. lv_obj_t *FactorySettingPage_sp_temp_recoup_btn_plus;
  141. lv_obj_t *FactorySettingPage_sp_temp_recoup_btn_minus;
  142. lv_obj_t *FactorySettingPage_label_6;
  143. lv_obj_t *FactorySettingPage_sp_hum_recoup;
  144. lv_obj_t *FactorySettingPage_sp_hum_recoup_btn_plus;
  145. lv_obj_t *FactorySettingPage_sp_hum_recoup_btn_minus;
  146. lv_obj_t *FactorySettingPage_label_7;
  147. lv_obj_t *FactorySettingPage_label_8;
  148. lv_obj_t *FactorySettingPage_sw_linkage;
  149. lv_obj_t *FactorySettingPage_label_9;
  150. lv_obj_t *FactorySettingPage_cont_wh_module;
  151. lv_obj_t *FactorySettingPage_cb_28;
  152. lv_obj_t *FactorySettingPage_cb_27;
  153. lv_obj_t *FactorySettingPage_cb_26;
  154. lv_obj_t *FactorySettingPage_btn_4;
  155. lv_obj_t *FactorySettingPage_btn_4_label;
  156. lv_obj_t *FactorySettingPage_btn_5;
  157. lv_obj_t *FactorySettingPage_btn_5_label;
  158. lv_obj_t *FactorySettingPage_btn_6;
  159. lv_obj_t *FactorySettingPage_btn_6_label;
  160. lv_obj_t *OTAPage;
  161. bool OTAPage_del;
  162. lv_obj_t *OTAPage_label_1;
  163. lv_obj_t *OTAPage_label_2;
  164. lv_obj_t *OTAPage_label_3;
  165. lv_obj_t *OTAPage_lab_ota_current_version;
  166. lv_obj_t *OTAPage_lab_ota_remote_version;
  167. lv_obj_t *OTAPage_bar_ota_progress;
  168. lv_obj_t *OTAPage_label_6;
  169. lv_obj_t *OTAPage_btn_exit;
  170. lv_obj_t *OTAPage_btn_exit_label;
  171. lv_obj_t *g_kb_top_layer;
  172. }lv_ui;
  173. typedef void (*ui_setup_scr_t)(lv_ui * ui);
  174. void ui_init_style(lv_style_t * style);
  175. 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,
  176. lv_screen_load_anim_t anim_type, uint32_t time, uint32_t delay, bool is_clean, bool auto_del);
  177. 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,
  178. uint32_t repeat_cnt, uint32_t repeat_delay, uint32_t playback_time, uint32_t playback_delay,
  179. 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);
  180. void init_scr_del_flag(lv_ui *ui);
  181. void setup_bottom_layer(void);
  182. void setup_ui(lv_ui *ui);
  183. void video_play(lv_ui *ui);
  184. void init_keyboard(lv_ui *ui);
  185. extern lv_ui guider_ui;
  186. void setup_scr_screen(lv_ui *ui);
  187. void setup_scr_WaterValvePage(lv_ui *ui);
  188. void setup_scr_SettingPage(lv_ui *ui);
  189. void setup_scr_FactorySettingPage(lv_ui *ui);
  190. void setup_scr_OTAPage(lv_ui *ui);
  191. LV_IMAGE_DECLARE(_187_RGB565A8_480x480_tresh);
  192. LV_IMAGE_DECLARE(_swtich_RGB565A8_84x84);
  193. LV_IMAGE_DECLARE(_ac_mode_heat_RGB565A8_48x48);
  194. LV_IMAGE_DECLARE(_ac_mode_heat_sel_RGB565A8_48x48);
  195. LV_IMAGE_DECLARE(_ac_mode_cool_RGB565A8_48x48);
  196. LV_IMAGE_DECLARE(_ac_mode_cool_sel_RGB565A8_48x48);
  197. LV_IMAGE_DECLARE(_wifi_stron_RGB565A8_32x32);
  198. LV_IMAGE_DECLARE(_12_RGB565A8_480x480);
  199. LV_IMAGE_DECLARE(_back2_RGB565A8_45x45);
  200. LV_FONT_DECLARE(lv_font_montserratMedium_25)
  201. LV_FONT_DECLARE(lv_font_montserratMedium_16)
  202. LV_FONT_DECLARE(lv_font_iconfont_25)
  203. LV_FONT_DECLARE(lv_font_PuHui_ExtraBold_60)
  204. LV_FONT_DECLARE(lv_font_montserratMedium_12)
  205. LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_16)
  206. LV_FONT_DECLARE(lv_font_iconfont_36)
  207. LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_21)
  208. LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_20)
  209. LV_FONT_DECLARE(lv_font_PuHui_ExtraBold_20)
  210. LV_FONT_DECLARE(lv_font_SourceHanSerifSC_Regular_20)
  211. #ifdef __cplusplus
  212. }
  213. #endif
  214. #endif