/* * Copyright 2025 NXP * NXP Proprietary. This software is owned or controlled by NXP and may only be used strictly in * accordance with the applicable license terms. By expressly accepting such terms or by downloading, installing, * activating and/or otherwise using the software, you are agreeing that you have read, and that you agree to * comply with and are bound by, such license terms. If you do not agree to be bound by the applicable license * terms, then you may not retain, install, activate or otherwise use the software. */ #ifndef GUI_GUIDER_H #define GUI_GUIDER_H #ifdef __cplusplus extern "C" { #endif #include "lvgl.h" typedef struct { lv_obj_t *screen; bool screen_del; lv_obj_t *screen_cont_power_on; lv_obj_t *screen_label_6; lv_obj_t *screen_arc_temp; lv_obj_t *screen_cont_1; lv_obj_t *screen_ib_cool; lv_obj_t *screen_ib_cool_label; lv_obj_t *screen_ib_heat; lv_obj_t *screen_ib_heat_label; lv_obj_t *screen_label_1; lv_obj_t *screen_label_2; lv_obj_t *screen_label_7; lv_obj_t *screen_label_8; lv_obj_t *screen_imgbtn_5; lv_obj_t *screen_imgbtn_5_label; lv_obj_t *screen_lab_mode; lv_obj_t *screen_lab_env_temp; lv_obj_t *screen_lab_env_hum; lv_obj_t *screen_lab_ac_temp; lv_obj_t *screen_ib_power; lv_obj_t *screen_ib_power_label; lv_obj_t *screen_cont_power_off; lv_obj_t *screen_lab_env_hum_2; lv_obj_t *screen_label_9; lv_obj_t *screen_label_10; lv_obj_t *screen_label_11; lv_obj_t *screen_imgbtn_1; lv_obj_t *screen_imgbtn_1_label; lv_obj_t *WaterValvePage; bool WaterValvePage_del; lv_obj_t *WaterValvePage_cont_1; lv_obj_t *WaterValvePage_imgbtn_1; lv_obj_t *WaterValvePage_imgbtn_1_label; lv_obj_t *WaterValvePage_spangroup_1; lv_span_t *WaterValvePage_spangroup_1_span; lv_obj_t *WaterValvePage_spangroup_2; lv_span_t *WaterValvePage_spangroup_2_span; lv_obj_t *WaterValvePage_sw_1; lv_obj_t *WaterValvePage_cont_2; lv_obj_t *WaterValvePage_cb_4; lv_obj_t *WaterValvePage_cb_3; lv_obj_t *WaterValvePage_cb_2; lv_obj_t *WaterValvePage_cb_1; lv_obj_t *SettingPage; bool SettingPage_del; lv_obj_t *SettingPage_tabview_1; lv_obj_t *SettingPage_tabview_1_tab_1; lv_obj_t *SettingPage_tabview_1_tab_2; lv_obj_t *SettingPage_tabview_1_tab_3; lv_obj_t *SettingPage_sp_wifi_scan; lv_obj_t *SettingPage_lab_wifi_status; lv_obj_t *SettingPage_label_1; lv_obj_t *SettingPage_p_wifi_connect; lv_obj_t *SettingPage_lab_wifi_ssid; lv_obj_t *SettingPage_label_3; lv_obj_t *SettingPage_btn_3; lv_obj_t *SettingPage_btn_3_label; lv_obj_t *SettingPage_btn_6; lv_obj_t *SettingPage_btn_6_label; lv_obj_t *SettingPage_label_2; lv_obj_t *SettingPage_txt_wifi_password; lv_obj_t *SettingPage_btn_1; lv_obj_t *SettingPage_btn_1_label; lv_obj_t *SettingPage_btn_5; lv_obj_t *SettingPage_btn_5_label; lv_obj_t *g_kb_top_layer; }lv_ui; typedef void (*ui_setup_scr_t)(lv_ui * ui); void ui_init_style(lv_style_t * style); 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, lv_screen_load_anim_t anim_type, uint32_t time, uint32_t delay, bool is_clean, bool auto_del); 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, uint32_t repeat_cnt, uint32_t repeat_delay, uint32_t playback_time, uint32_t playback_delay, 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); void init_scr_del_flag(lv_ui *ui); void setup_bottom_layer(void); void setup_ui(lv_ui *ui); void video_play(lv_ui *ui); void init_keyboard(lv_ui *ui); extern lv_ui guider_ui; void setup_scr_screen(lv_ui *ui); void setup_scr_WaterValvePage(lv_ui *ui); void setup_scr_SettingPage(lv_ui *ui); LV_IMAGE_DECLARE(_main_bg_RGB565A8_480x480); LV_IMAGE_DECLARE(_ac_mode_cool_RGB565A8_55x55); LV_IMAGE_DECLARE(_ac_mode_cool_sel_RGB565A8_55x55); LV_IMAGE_DECLARE(_ac_mode_heat_RGB565A8_55x55); LV_IMAGE_DECLARE(_ac_mode_heat_sel_RGB565A8_55x55); LV_IMAGE_DECLARE(_dinuan3_RGB565A8_60x60); LV_IMAGE_DECLARE(_dinuan2_RGB565A8_60x60); LV_IMAGE_DECLARE(_swtich_RGB565A8_84x84); LV_IMAGE_DECLARE(_12_RGB565A8_480x480); LV_IMAGE_DECLARE(_back2_RGB565A8_45x45); LV_FONT_DECLARE(lv_font_montserratMedium_25) LV_FONT_DECLARE(lv_font_montserratMedium_16) LV_FONT_DECLARE(lv_font_montserratMedium_12) LV_FONT_DECLARE(lv_font_iconfont_25) LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_31) LV_FONT_DECLARE(lv_font_PuHui_ExtraBold_60) LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_24) LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_18) LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_26) LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_15) LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_20) LV_FONT_DECLARE(lv_font_Alatsi_Regular_18) LV_FONT_DECLARE(lv_font_Alibaba_PuHuiTi_Medium_16) LV_FONT_DECLARE(lv_font_SourceHanSerifSC_Regular_20) #ifdef __cplusplus } #endif #endif