123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688 |
- /*
- * 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.
- */
- #include "lvgl.h"
- #include <stdio.h>
- #include "gui_guider.h"
- #include "events_init.h"
- #include "widgets_init.h"
- #include "custom.h"
- #include "actions.h"
- #include "heatpump_controller.h"
- void setup_scr_screen(lv_ui *ui)
- {
- //Write codes screen
- ui->screen = lv_obj_create(NULL);
- lv_obj_set_size(ui->screen, 480, 480);
- lv_obj_set_scrollbar_mode(ui->screen, LV_SCROLLBAR_MODE_OFF);
- //Write style for screen, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_bg_opa(ui->screen, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_color(ui->screen, lv_color_hex(0x1F1E23), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_grad_dir(ui->screen, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_image_src(ui->screen, &_main_bg_RGB565A8_480x480, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_image_opa(ui->screen, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_image_recolor_opa(ui->screen, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_cont_power_on
- ui->screen_cont_power_on = lv_obj_create(ui->screen);
- lv_obj_set_pos(ui->screen_cont_power_on, 0, 0);
- lv_obj_set_size(ui->screen_cont_power_on, 480, 480);
- lv_obj_set_scrollbar_mode(ui->screen_cont_power_on, LV_SCROLLBAR_MODE_OFF);
- //Write style for screen_cont_power_on, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_arc_temp
- ui->screen_arc_temp = lv_arc_create(ui->screen_cont_power_on);
- lv_obj_set_pos(ui->screen_arc_temp, 73, 51);
- lv_obj_set_size(ui->screen_arc_temp, 340, 340);
- lv_arc_set_mode(ui->screen_arc_temp, LV_ARC_MODE_NORMAL);
- lv_arc_set_range(ui->screen_arc_temp, 0, 50);
- lv_arc_set_bg_angles(ui->screen_arc_temp, 150, 30);
- lv_arc_set_value(ui->screen_arc_temp, 26);
- lv_arc_set_rotation(ui->screen_arc_temp, 0);
- //Write style for screen_arc_temp, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_bg_opa(ui->screen_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_width(ui->screen_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_arc_width(ui->screen_arc_temp, 20, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_arc_opa(ui->screen_arc_temp, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_arc_color(ui->screen_arc_temp, lv_color_hex(0x817878), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_arc_rounded(ui->screen_arc_temp, true, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write style for screen_arc_temp, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
- lv_obj_set_style_arc_width(ui->screen_arc_temp, 20, LV_PART_INDICATOR|LV_STATE_DEFAULT);
- lv_obj_set_style_arc_opa(ui->screen_arc_temp, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
- lv_obj_set_style_arc_color(ui->screen_arc_temp, lv_color_hex(0x00d9ff), LV_PART_INDICATOR|LV_STATE_DEFAULT);
- lv_obj_set_style_arc_rounded(ui->screen_arc_temp, true, LV_PART_INDICATOR|LV_STATE_DEFAULT);
- //Write style for screen_arc_temp, Part: LV_PART_KNOB, State: LV_STATE_DEFAULT.
- lv_obj_set_style_bg_opa(ui->screen_arc_temp, 0, LV_PART_KNOB|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_all(ui->screen_arc_temp, 5, LV_PART_KNOB|LV_STATE_DEFAULT);
- //Write style for screen_arc_temp, Part: LV_PART_KNOB, State: LV_STATE_FOCUSED.
- lv_obj_set_style_bg_opa(ui->screen_arc_temp, 255, LV_PART_KNOB|LV_STATE_FOCUSED);
- lv_obj_set_style_bg_color(ui->screen_arc_temp, lv_color_hex(0x2195f6), LV_PART_KNOB|LV_STATE_FOCUSED);
- lv_obj_set_style_bg_grad_dir(ui->screen_arc_temp, LV_GRAD_DIR_NONE, LV_PART_KNOB|LV_STATE_FOCUSED);
- lv_obj_set_style_pad_all(ui->screen_arc_temp, 5, LV_PART_KNOB|LV_STATE_FOCUSED);
- //Write style for screen_arc_temp, Part: LV_PART_KNOB, State: LV_STATE_DISABLED.
- lv_obj_set_style_bg_opa(ui->screen_arc_temp, 255, LV_PART_KNOB|LV_STATE_DISABLED);
- lv_obj_set_style_bg_color(ui->screen_arc_temp, lv_color_hex(0x2195f6), LV_PART_KNOB|LV_STATE_DISABLED);
- lv_obj_set_style_bg_grad_dir(ui->screen_arc_temp, LV_GRAD_DIR_NONE, LV_PART_KNOB|LV_STATE_DISABLED);
- lv_obj_set_style_pad_all(ui->screen_arc_temp, 5, LV_PART_KNOB|LV_STATE_DISABLED);
- //Write codes screen_label_6
- ui->screen_label_6 = lv_label_create(ui->screen_cont_power_on);
- lv_obj_set_pos(ui->screen_label_6, 252, 238);
- lv_obj_set_size(ui->screen_label_6, 71, 22);
- lv_label_set_text(ui->screen_label_6, "°C");
- lv_label_set_long_mode(ui->screen_label_6, LV_LABEL_LONG_WRAP);
- //Write style for screen_label_6, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_label_6, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_label_6, &lv_font_montserratMedium_25, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_label_6, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_label_6, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_label_1
- ui->screen_label_1 = lv_label_create(ui->screen_cont_power_on);
- lv_obj_set_pos(ui->screen_label_1, 147, 150);
- lv_obj_set_size(ui->screen_label_1, 34, 32);
- lv_label_set_text(ui->screen_label_1, "");
- lv_label_set_long_mode(ui->screen_label_1, LV_LABEL_LONG_WRAP);
- //Write style for screen_label_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_label_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_label_1, &lv_font_iconfont_25, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_label_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_label_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_label_2
- ui->screen_label_2 = lv_label_create(ui->screen_cont_power_on);
- lv_obj_set_pos(ui->screen_label_2, 242, 150);
- lv_obj_set_size(ui->screen_label_2, 34, 32);
- lv_label_set_text(ui->screen_label_2, "");
- lv_label_set_long_mode(ui->screen_label_2, LV_LABEL_LONG_WRAP);
- //Write style for screen_label_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_label_2, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_label_2, &lv_font_iconfont_25, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_label_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_label_2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_lab_temp_low
- ui->screen_lab_temp_low = lv_label_create(ui->screen_cont_power_on);
- lv_obj_set_pos(ui->screen_lab_temp_low, 81, 328);
- lv_obj_set_size(ui->screen_lab_temp_low, 71, 20);
- lv_label_set_text(ui->screen_lab_temp_low, "0°C");
- lv_label_set_long_mode(ui->screen_lab_temp_low, LV_LABEL_LONG_WRAP);
- //Write style for screen_lab_temp_low, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_lab_temp_low, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_lab_temp_low, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_lab_temp_low, lv_color_hex(0x9d9191), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_lab_temp_low, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_lab_temp_low, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_lab_temp_low, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_lab_temp_low, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_lab_temp_low, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_lab_temp_low, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_lab_temp_low, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_lab_temp_low, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_lab_temp_low, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_lab_temp_low, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_lab_temp_low, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_lab_temp_high
- ui->screen_lab_temp_high = lv_label_create(ui->screen_cont_power_on);
- lv_obj_set_pos(ui->screen_lab_temp_high, 320, 328);
- lv_obj_set_size(ui->screen_lab_temp_high, 71, 20);
- lv_label_set_text(ui->screen_lab_temp_high, "50°C");
- lv_label_set_long_mode(ui->screen_lab_temp_high, LV_LABEL_LONG_WRAP);
- //Write style for screen_lab_temp_high, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_lab_temp_high, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_lab_temp_high, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_lab_temp_high, lv_color_hex(0x9d9191), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_lab_temp_high, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_lab_temp_high, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_lab_temp_high, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_lab_temp_high, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_lab_temp_high, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_lab_temp_high, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_lab_temp_high, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_lab_temp_high, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_lab_temp_high, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_lab_temp_high, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_lab_temp_high, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_lab_env_temp
- ui->screen_lab_env_temp = lv_label_create(ui->screen_cont_power_on);
- lv_obj_set_pos(ui->screen_lab_env_temp, 181, 155);
- lv_obj_set_size(ui->screen_lab_env_temp, 71, 20);
- lv_label_set_text(ui->screen_lab_env_temp, "26°C");
- lv_label_set_long_mode(ui->screen_lab_env_temp, LV_LABEL_LONG_WRAP);
- //Write style for screen_lab_env_temp, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_lab_env_temp, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_lab_env_temp, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_lab_env_temp, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_lab_env_temp, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_lab_env_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_lab_env_hum
- ui->screen_lab_env_hum = lv_label_create(ui->screen_cont_power_on);
- lv_obj_set_pos(ui->screen_lab_env_hum, 279, 155);
- lv_obj_set_size(ui->screen_lab_env_hum, 71, 20);
- lv_label_set_text(ui->screen_lab_env_hum, "40%");
- lv_label_set_long_mode(ui->screen_lab_env_hum, LV_LABEL_LONG_WRAP);
- //Write style for screen_lab_env_hum, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_lab_env_hum, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_lab_env_hum, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_lab_env_hum, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_lab_env_hum, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_lab_env_hum, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_lab_ac_temp
- ui->screen_lab_ac_temp = lv_label_create(ui->screen_cont_power_on);
- lv_obj_set_pos(ui->screen_lab_ac_temp, 165, 209);
- lv_obj_set_size(ui->screen_lab_ac_temp, 132, 72);
- lv_label_set_text(ui->screen_lab_ac_temp, "26");
- lv_label_set_long_mode(ui->screen_lab_ac_temp, LV_LABEL_LONG_WRAP);
- //Write style for screen_lab_ac_temp, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_lab_ac_temp, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_lab_ac_temp, &lv_font_PuHui_ExtraBold_60, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_lab_ac_temp, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_lab_ac_temp, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_lab_ac_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_ib_power
- ui->screen_ib_power = lv_imagebutton_create(ui->screen_cont_power_on);
- lv_obj_set_pos(ui->screen_ib_power, 198, 276);
- lv_obj_set_size(ui->screen_ib_power, 84, 84);
- lv_obj_add_flag(ui->screen_ib_power, LV_OBJ_FLAG_CHECKABLE);
- lv_imagebutton_set_src(ui->screen_ib_power, LV_IMAGEBUTTON_STATE_RELEASED, &_swtich_RGB565A8_84x84, NULL, NULL);
- lv_imagebutton_set_src(ui->screen_ib_power, LV_IMAGEBUTTON_STATE_PRESSED, &_swtich_RGB565A8_84x84, NULL, NULL);
- lv_imagebutton_set_src(ui->screen_ib_power, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_swtich_RGB565A8_84x84, NULL, NULL);
- ui->screen_ib_power_label = lv_label_create(ui->screen_ib_power);
- lv_label_set_text(ui->screen_ib_power_label, "");
- lv_label_set_long_mode(ui->screen_ib_power_label, LV_LABEL_LONG_WRAP);
- lv_obj_align(ui->screen_ib_power_label, LV_ALIGN_CENTER, 0, 0);
- lv_obj_set_style_pad_all(ui->screen_ib_power, 0, LV_STATE_DEFAULT);
- //Write style for screen_ib_power, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_text_color(ui->screen_ib_power, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_ib_power, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_ib_power, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_ib_power, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_ib_power, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write style for screen_ib_power, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
- lv_obj_set_style_image_recolor_opa(ui->screen_ib_power, 0, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_image_opa(ui->screen_ib_power, 255, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_text_color(ui->screen_ib_power, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_text_font(ui->screen_ib_power, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_text_opa(ui->screen_ib_power, 255, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_shadow_width(ui->screen_ib_power, 0, LV_PART_MAIN|LV_STATE_PRESSED);
- //Write style for screen_ib_power, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
- lv_obj_set_style_image_recolor_opa(ui->screen_ib_power, 0, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_image_opa(ui->screen_ib_power, 255, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_text_color(ui->screen_ib_power, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_text_font(ui->screen_ib_power, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_text_opa(ui->screen_ib_power, 255, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_shadow_width(ui->screen_ib_power, 0, LV_PART_MAIN|LV_STATE_CHECKED);
- //Write style for screen_ib_power, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
- lv_obj_set_style_image_recolor_opa(ui->screen_ib_power, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
- lv_obj_set_style_image_opa(ui->screen_ib_power, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
- //Write codes screen_ib_heat
- ui->screen_ib_heat = lv_imagebutton_create(ui->screen_cont_power_on);
- lv_obj_set_pos(ui->screen_ib_heat, 333, 417);
- lv_obj_set_size(ui->screen_ib_heat, 48, 48);
- lv_obj_add_flag(ui->screen_ib_heat, LV_OBJ_FLAG_CHECKABLE);
- lv_imagebutton_set_src(ui->screen_ib_heat, LV_IMAGEBUTTON_STATE_RELEASED, &_ac_mode_heat_RGB565A8_48x48, NULL, NULL);
- lv_imagebutton_set_src(ui->screen_ib_heat, LV_IMAGEBUTTON_STATE_PRESSED, &_ac_mode_heat_sel_RGB565A8_48x48, NULL, NULL);
- lv_imagebutton_set_src(ui->screen_ib_heat, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_ac_mode_heat_sel_RGB565A8_48x48, NULL, NULL);
- ui->screen_ib_heat_label = lv_label_create(ui->screen_ib_heat);
- lv_label_set_text(ui->screen_ib_heat_label, "");
- lv_label_set_long_mode(ui->screen_ib_heat_label, LV_LABEL_LONG_WRAP);
- lv_obj_align(ui->screen_ib_heat_label, LV_ALIGN_CENTER, 0, 0);
- lv_obj_set_style_pad_all(ui->screen_ib_heat, 0, LV_STATE_DEFAULT);
- //Write style for screen_ib_heat, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_text_color(ui->screen_ib_heat, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_ib_heat, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_ib_heat, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_ib_heat, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_ib_heat, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write style for screen_ib_heat, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
- lv_obj_set_style_image_recolor_opa(ui->screen_ib_heat, 0, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_image_opa(ui->screen_ib_heat, 255, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_text_color(ui->screen_ib_heat, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_text_font(ui->screen_ib_heat, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_text_opa(ui->screen_ib_heat, 255, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_shadow_width(ui->screen_ib_heat, 0, LV_PART_MAIN|LV_STATE_PRESSED);
- //Write style for screen_ib_heat, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
- lv_obj_set_style_image_recolor_opa(ui->screen_ib_heat, 0, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_image_opa(ui->screen_ib_heat, 255, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_text_color(ui->screen_ib_heat, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_text_font(ui->screen_ib_heat, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_text_opa(ui->screen_ib_heat, 255, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_shadow_width(ui->screen_ib_heat, 0, LV_PART_MAIN|LV_STATE_CHECKED);
- //Write style for screen_ib_heat, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
- lv_obj_set_style_image_recolor_opa(ui->screen_ib_heat, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
- lv_obj_set_style_image_opa(ui->screen_ib_heat, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
- //Write codes screen_ib_cool
- ui->screen_ib_cool = lv_imagebutton_create(ui->screen_cont_power_on);
- lv_obj_set_pos(ui->screen_ib_cool, 82, 415);
- lv_obj_set_size(ui->screen_ib_cool, 48, 48);
- lv_obj_add_flag(ui->screen_ib_cool, LV_OBJ_FLAG_CHECKABLE);
- lv_imagebutton_set_src(ui->screen_ib_cool, LV_IMAGEBUTTON_STATE_RELEASED, &_ac_mode_cool_RGB565A8_48x48, NULL, NULL);
- lv_imagebutton_set_src(ui->screen_ib_cool, LV_IMAGEBUTTON_STATE_PRESSED, &_ac_mode_cool_sel_RGB565A8_48x48, NULL, NULL);
- lv_imagebutton_set_src(ui->screen_ib_cool, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_ac_mode_cool_sel_RGB565A8_48x48, NULL, NULL);
- ui->screen_ib_cool_label = lv_label_create(ui->screen_ib_cool);
- lv_label_set_text(ui->screen_ib_cool_label, "");
- lv_label_set_long_mode(ui->screen_ib_cool_label, LV_LABEL_LONG_WRAP);
- lv_obj_align(ui->screen_ib_cool_label, LV_ALIGN_CENTER, 0, 0);
- lv_obj_set_style_pad_all(ui->screen_ib_cool, 0, LV_STATE_DEFAULT);
- //Write style for screen_ib_cool, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_text_color(ui->screen_ib_cool, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_ib_cool, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_ib_cool, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_ib_cool, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_ib_cool, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write style for screen_ib_cool, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
- lv_obj_set_style_image_recolor_opa(ui->screen_ib_cool, 0, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_image_opa(ui->screen_ib_cool, 255, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_text_color(ui->screen_ib_cool, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_text_font(ui->screen_ib_cool, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_text_opa(ui->screen_ib_cool, 255, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_shadow_width(ui->screen_ib_cool, 0, LV_PART_MAIN|LV_STATE_PRESSED);
- //Write style for screen_ib_cool, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
- lv_obj_set_style_image_recolor_opa(ui->screen_ib_cool, 0, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_image_opa(ui->screen_ib_cool, 255, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_text_color(ui->screen_ib_cool, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_text_font(ui->screen_ib_cool, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_text_opa(ui->screen_ib_cool, 255, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_shadow_width(ui->screen_ib_cool, 0, LV_PART_MAIN|LV_STATE_CHECKED);
- //Write style for screen_ib_cool, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
- lv_obj_set_style_image_recolor_opa(ui->screen_ib_cool, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
- lv_obj_set_style_image_opa(ui->screen_ib_cool, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
- //Write codes screen_cont_power_off
- ui->screen_cont_power_off = lv_obj_create(ui->screen);
- lv_obj_set_pos(ui->screen_cont_power_off, 0, 0);
- lv_obj_set_size(ui->screen_cont_power_off, 480, 480);
- lv_obj_set_scrollbar_mode(ui->screen_cont_power_off, LV_SCROLLBAR_MODE_OFF);
- lv_obj_add_flag(ui->screen_cont_power_off, LV_OBJ_FLAG_HIDDEN);
- lv_obj_add_flag(ui->screen_cont_power_off, LV_OBJ_FLAG_HIDDEN);
- //Write style for screen_cont_power_off, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_lab_env_hum_2
- ui->screen_lab_env_hum_2 = lv_label_create(ui->screen_cont_power_off);
- lv_obj_set_pos(ui->screen_lab_env_hum_2, 300, 193);
- lv_obj_set_size(ui->screen_lab_env_hum_2, 71, 20);
- lv_label_set_text(ui->screen_lab_env_hum_2, "40%");
- lv_label_set_long_mode(ui->screen_lab_env_hum_2, LV_LABEL_LONG_WRAP);
- //Write style for screen_lab_env_hum_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_lab_env_hum_2, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_lab_env_hum_2, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_lab_env_hum_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_lab_env_hum_2, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_lab_env_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_label_9
- ui->screen_label_9 = lv_label_create(ui->screen_cont_power_off);
- lv_obj_set_pos(ui->screen_label_9, 184, 193);
- lv_obj_set_size(ui->screen_label_9, 71, 20);
- lv_label_set_text(ui->screen_label_9, "26°C");
- lv_label_set_long_mode(ui->screen_label_9, LV_LABEL_LONG_WRAP);
- //Write style for screen_label_9, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_label_9, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_label_9, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_label_9, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_label_9, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_label_10
- ui->screen_label_10 = lv_label_create(ui->screen_cont_power_off);
- lv_obj_set_pos(ui->screen_label_10, 262, 186);
- lv_obj_set_size(ui->screen_label_10, 34, 32);
- lv_label_set_text(ui->screen_label_10, "");
- lv_label_set_long_mode(ui->screen_label_10, LV_LABEL_LONG_WRAP);
- //Write style for screen_label_10, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_label_10, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_label_10, &lv_font_iconfont_25, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_label_10, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_label_10, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_label_11
- ui->screen_label_11 = lv_label_create(ui->screen_cont_power_off);
- lv_obj_set_pos(ui->screen_label_11, 150, 186);
- lv_obj_set_size(ui->screen_label_11, 34, 32);
- lv_label_set_text(ui->screen_label_11, "");
- lv_label_set_long_mode(ui->screen_label_11, LV_LABEL_LONG_WRAP);
- //Write style for screen_label_11, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_label_11, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_label_11, &lv_font_iconfont_25, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_label_11, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_label_11, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_imgbtn_1
- ui->screen_imgbtn_1 = lv_imagebutton_create(ui->screen_cont_power_off);
- lv_obj_set_pos(ui->screen_imgbtn_1, 199, 261);
- lv_obj_set_size(ui->screen_imgbtn_1, 84, 84);
- lv_obj_add_flag(ui->screen_imgbtn_1, LV_OBJ_FLAG_CHECKABLE);
- lv_imagebutton_set_src(ui->screen_imgbtn_1, LV_IMAGEBUTTON_STATE_RELEASED, &_swtich_RGB565A8_84x84, NULL, NULL);
- lv_imagebutton_set_src(ui->screen_imgbtn_1, LV_IMAGEBUTTON_STATE_PRESSED, &_swtich_RGB565A8_84x84, NULL, NULL);
- lv_imagebutton_set_src(ui->screen_imgbtn_1, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_swtich_RGB565A8_84x84, NULL, NULL);
- ui->screen_imgbtn_1_label = lv_label_create(ui->screen_imgbtn_1);
- lv_label_set_text(ui->screen_imgbtn_1_label, "");
- lv_label_set_long_mode(ui->screen_imgbtn_1_label, LV_LABEL_LONG_WRAP);
- lv_obj_align(ui->screen_imgbtn_1_label, LV_ALIGN_CENTER, 0, 0);
- lv_obj_set_style_pad_all(ui->screen_imgbtn_1, 0, LV_STATE_DEFAULT);
- //Write style for screen_imgbtn_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_text_color(ui->screen_imgbtn_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_imgbtn_1, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_imgbtn_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_imgbtn_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_imgbtn_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write style for screen_imgbtn_1, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
- lv_obj_set_style_image_recolor_opa(ui->screen_imgbtn_1, 0, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_image_opa(ui->screen_imgbtn_1, 255, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_text_color(ui->screen_imgbtn_1, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_text_font(ui->screen_imgbtn_1, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_text_opa(ui->screen_imgbtn_1, 255, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_shadow_width(ui->screen_imgbtn_1, 0, LV_PART_MAIN|LV_STATE_PRESSED);
- //Write style for screen_imgbtn_1, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
- lv_obj_set_style_image_recolor_opa(ui->screen_imgbtn_1, 0, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_image_opa(ui->screen_imgbtn_1, 255, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_text_color(ui->screen_imgbtn_1, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_text_font(ui->screen_imgbtn_1, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_text_opa(ui->screen_imgbtn_1, 255, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_shadow_width(ui->screen_imgbtn_1, 0, LV_PART_MAIN|LV_STATE_CHECKED);
- //Write style for screen_imgbtn_1, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
- lv_obj_set_style_image_recolor_opa(ui->screen_imgbtn_1, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
- lv_obj_set_style_image_opa(ui->screen_imgbtn_1, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
- //Write codes screen_lab_icon_err
- ui->screen_lab_icon_err = lv_label_create(ui->screen);
- lv_obj_set_pos(ui->screen_lab_icon_err, 90, 11);
- lv_obj_set_size(ui->screen_lab_icon_err, 26, 26);
- lv_obj_add_flag(ui->screen_lab_icon_err, LV_OBJ_FLAG_HIDDEN);
- lv_label_set_text(ui->screen_lab_icon_err, "");
- lv_label_set_long_mode(ui->screen_lab_icon_err, LV_LABEL_LONG_WRAP);
- //Write style for screen_lab_icon_err, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_lab_icon_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_lab_icon_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_lab_icon_err, lv_color_hex(0xff0028), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_lab_icon_err, &lv_font_iconfont_25, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_lab_icon_err, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_lab_icon_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_lab_icon_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_lab_icon_err, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_lab_icon_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_lab_icon_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_lab_icon_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_lab_icon_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_lab_icon_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_lab_icon_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_img_wifi
- ui->screen_img_wifi = lv_image_create(ui->screen);
- lv_obj_set_pos(ui->screen_img_wifi, 17, 8);
- lv_obj_set_size(ui->screen_img_wifi, 32, 32);
- lv_obj_add_flag(ui->screen_img_wifi, LV_OBJ_FLAG_HIDDEN);
- lv_obj_add_flag(ui->screen_img_wifi, LV_OBJ_FLAG_CLICKABLE);
- lv_image_set_src(ui->screen_img_wifi, &_wifi_stron_RGB565A8_32x32);
- lv_image_set_pivot(ui->screen_img_wifi, 50,50);
- lv_image_set_rotation(ui->screen_img_wifi, 0);
- //Write style for screen_img_wifi, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_image_recolor_opa(ui->screen_img_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_image_opa(ui->screen_img_wifi, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_lab_icon_cloud
- ui->screen_lab_icon_cloud = lv_label_create(ui->screen);
- lv_obj_set_pos(ui->screen_lab_icon_cloud, 57, 12);
- lv_obj_set_size(ui->screen_lab_icon_cloud, 25, 23);
- lv_obj_add_flag(ui->screen_lab_icon_cloud, LV_OBJ_FLAG_HIDDEN);
- lv_label_set_text(ui->screen_lab_icon_cloud, "");
- lv_label_set_long_mode(ui->screen_lab_icon_cloud, LV_LABEL_LONG_WRAP);
- //Write style for screen_lab_icon_cloud, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_bg_opa(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_width(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_lab_icon_cloud, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_lab_icon_cloud, &lv_font_iconfont_25, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_lab_icon_cloud, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_lab_icon_cloud, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_item
- ui->screen_item = lv_obj_create(ui->screen);
- lv_obj_set_pos(ui->screen_item, 225, 352);
- lv_obj_set_size(ui->screen_item, 29, 26);
- lv_obj_set_scrollbar_mode(ui->screen_item, LV_SCROLLBAR_MODE_OFF);
- lv_obj_add_flag(ui->screen_item, LV_OBJ_FLAG_HIDDEN);
- //Write style for screen_item, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_bg_opa(ui->screen_item, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_color(ui->screen_item, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_grad_dir(ui->screen_item, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_width(ui->screen_item, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_opa(ui->screen_item, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_color(ui->screen_item, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_side(ui->screen_item, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_item, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_item, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_item, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_item, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_item, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_item, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_lab_mode
- ui->screen_lab_mode = lv_label_create(ui->screen);
- lv_obj_set_pos(ui->screen_lab_mode, 186, 110);
- lv_obj_set_size(ui->screen_lab_mode, 100, 32);
- lv_label_set_text(ui->screen_lab_mode, "制冷热");
- lv_label_set_long_mode(ui->screen_lab_mode, LV_LABEL_LONG_WRAP);
- //Write style for screen_lab_mode, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_lab_mode, lv_color_hex(0x989696), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_lab_mode, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_lab_mode, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_lab_mode, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_lab_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //The custom code of screen.
- lv_obj_add_flag(ui->screen_arc_temp, LV_OBJ_FLAG_ADV_HITTEST);
- lv_obj_set_ext_click_area(ui->screen_arc_temp, 40);
- if(hp_controller.mode == MODE_COOL) {
- lv_arc_set_range(ui->screen_arc_temp, 7,22);
- lv_label_set_text_fmt(ui->screen_lab_ac_temp, "%d", hp_controller.cool_set_temp);
- lv_arc_set_value(guider_ui.screen_arc_temp, hp_controller.cool_set_temp);
- lv_label_set_text_static(ui->screen_lab_mode, "制冷");
- lv_label_set_text_static(ui->screen_lab_temp_low, "7°C");
- lv_label_set_text_static(ui->screen_lab_temp_high, "22°C");
- lv_obj_add_state(ui->screen_ib_cool, LV_STATE_CHECKED);
- } else if(hp_controller.mode == MODE_HEAT) {
- lv_arc_set_range(ui->screen_arc_temp, 30,60);
- lv_arc_set_value(ui->screen_arc_temp, hp_controller.heat_set_temp);
- lv_label_set_text_fmt(ui->screen_lab_ac_temp, "%d", hp_controller.heat_set_temp);
- lv_label_set_text_static(ui->screen_lab_mode, "制热");
- lv_label_set_text_static(ui->screen_lab_temp_low, "30°C");
- lv_label_set_text_static(ui->screen_lab_temp_high, "60°C");
- lv_obj_add_state(ui->screen_ib_heat, LV_STATE_CHECKED);
- }
- //Update current screen layout.
- lv_obj_update_layout(ui->screen);
- //Init events for screen.
- events_init_screen(ui);
- }
|