| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207 |
- /*
- * 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 "fp_controller.h"
- void set_ac_mode(lv_ui *ui, uint16_t mode) {
- lv_obj_t *cont = ui->screen_main_cont_mode;
- uint32_t count = lv_obj_get_child_count(cont);
- for (int i = 0; i < count; i++) {
- lv_obj_t *child = lv_obj_get_child(cont, i);
- lv_obj_remove_state(child, LV_STATE_CHECKED);
- }
- switch (mode) {
- case COLD:
- lv_obj_add_state(ui->screen_main_imgbtn_cold, LV_STATE_CHECKED);
- lv_obj_set_style_arc_color(guider_ui.screen_main_arc_temp, lv_color_hex(0x2cbccc), LV_PART_INDICATOR|LV_STATE_DEFAULT);
- lv_obj_set_style_border_color(guider_ui.screen_main_arc_temp, lv_color_hex(0x2cbccc), LV_PART_KNOB|LV_STATE_DEFAULT);
- break;
- case HEAT:
- lv_obj_add_state(ui->screen_main_imgbtn_heat, LV_STATE_CHECKED);
- lv_obj_set_style_arc_color(guider_ui.screen_main_arc_temp, lv_color_hex(0xff4200), LV_PART_INDICATOR|LV_STATE_DEFAULT);
- lv_obj_set_style_border_color(guider_ui.screen_main_arc_temp, lv_color_hex(0xff4200), LV_PART_KNOB|LV_STATE_DEFAULT);
- break;
- case TF:
- lv_obj_add_state(ui->screen_main_imgbtn_tf, LV_STATE_CHECKED);
- lv_obj_set_style_arc_color(guider_ui.screen_main_arc_temp, lv_color_hex(0x00912c), LV_PART_INDICATOR|LV_STATE_DEFAULT);
- lv_obj_set_style_border_color(guider_ui.screen_main_arc_temp, lv_color_hex(0x00912c), LV_PART_KNOB|LV_STATE_DEFAULT);
- break;
- default:
- break;
- }
- }
- void set_fan_level(lv_ui *ui, uint16_t speed) {
- lv_obj_t *cont = ui->screen_main_cont_speed;
- uint32_t count = lv_obj_get_child_count(cont);
- for (int i = 0; i < count; i++) {
- lv_obj_t *child = lv_obj_get_child(cont, i);
- lv_obj_remove_state(child, LV_STATE_CHECKED);
- }
- switch (speed) {
- case 1:
- lv_obj_add_state(ui->screen_main_imgbtn_speed1, LV_STATE_CHECKED);
- break;
- case 2:
- lv_obj_add_state(ui->screen_main_imgbtn_speed2, LV_STATE_CHECKED);
- break;
- case 3:
- lv_obj_add_state(ui->screen_main_imgbtn_speed3, LV_STATE_CHECKED);
- break;
- default:
- break;
- }
- }
- void setup_scr_screen_main(lv_ui *ui)
- {
- //Write codes screen_main
- ui->screen_main = lv_obj_create(NULL);
- lv_obj_set_size(ui->screen_main, 480, 480);
- lv_obj_set_scrollbar_mode(ui->screen_main, LV_SCROLLBAR_MODE_OFF);
- //Write style for screen_main, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_bg_opa(ui->screen_main, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_color(ui->screen_main, lv_color_hex(0x111111), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_grad_dir(ui->screen_main, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_image_src(ui->screen_main, &_back2_RGB565A8_480x480, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_image_opa(ui->screen_main, 112, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_image_recolor_opa(ui->screen_main, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_main_label_14
- ui->screen_main_label_14 = lv_label_create(ui->screen_main);
- lv_obj_set_pos(ui->screen_main_label_14, 505, 2);
- lv_obj_set_size(ui->screen_main_label_14, 127, 20);
- lv_obj_add_flag(ui->screen_main_label_14, LV_OBJ_FLAG_HIDDEN);
- lv_obj_add_flag(ui->screen_main_label_14, LV_OBJ_FLAG_HIDDEN);
- lv_label_set_text(ui->screen_main_label_14, "滤芯剩余:");
- lv_label_set_long_mode(ui->screen_main_label_14, LV_LABEL_LONG_WRAP);
- //Write style for screen_main_label_14, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_main_label_14, lv_color_hex(0x8a90a7), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_main_label_14, &lv_font_Alibaba_PuHuiTi_Medium_18, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_main_label_14, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_main_label_14, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_label_14, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_main_label_lvxin
- ui->screen_main_label_lvxin = lv_label_create(ui->screen_main);
- lv_obj_set_pos(ui->screen_main_label_lvxin, 535, 53);
- lv_obj_set_size(ui->screen_main_label_lvxin, 127, 20);
- lv_obj_add_flag(ui->screen_main_label_lvxin, LV_OBJ_FLAG_HIDDEN);
- lv_obj_add_flag(ui->screen_main_label_lvxin, LV_OBJ_FLAG_HIDDEN);
- lv_label_set_text(ui->screen_main_label_lvxin, "100%");
- lv_label_set_long_mode(ui->screen_main_label_lvxin, LV_LABEL_LONG_WRAP);
- //Write style for screen_main_label_lvxin, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_main_label_lvxin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_main_label_lvxin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_main_label_lvxin, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_main_label_lvxin, &lv_font_Alibaba_PuHuiTi_Medium_18, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_main_label_lvxin, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_main_label_lvxin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_main_label_lvxin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_main_label_lvxin, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_main_label_lvxin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_main_label_lvxin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_main_label_lvxin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_main_label_lvxin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_main_label_lvxin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_label_lvxin, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_main_label_19
- ui->screen_main_label_19 = lv_label_create(ui->screen_main);
- lv_obj_set_pos(ui->screen_main_label_19, 539, 29);
- lv_obj_set_size(ui->screen_main_label_19, 100, 32);
- lv_obj_add_flag(ui->screen_main_label_19, LV_OBJ_FLAG_HIDDEN);
- lv_obj_add_flag(ui->screen_main_label_19, LV_OBJ_FLAG_HIDDEN);
- lv_label_set_text(ui->screen_main_label_19, "");
- lv_label_set_long_mode(ui->screen_main_label_19, LV_LABEL_LONG_WRAP);
- //Write style for screen_main_label_19, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_main_label_19, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_main_label_19, &lv_font_iconfont_16, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_main_label_19, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_main_label_19, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_label_19, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_main_cont_open
- ui->screen_main_cont_open = lv_obj_create(ui->screen_main);
- lv_obj_set_pos(ui->screen_main_cont_open, 4, 17);
- lv_obj_set_size(ui->screen_main_cont_open, 471, 459);
- lv_obj_set_scrollbar_mode(ui->screen_main_cont_open, LV_SCROLLBAR_MODE_OFF);
- lv_obj_add_flag(ui->screen_main_cont_open, LV_OBJ_FLAG_HIDDEN);
- lv_obj_add_flag(ui->screen_main_cont_open, LV_OBJ_FLAG_HIDDEN);
- lv_obj_remove_flag(ui->screen_main_cont_open, LV_OBJ_FLAG_SCROLLABLE);
- //Write style for screen_main_cont_open, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_main_cont_open, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_opa(ui->screen_main_cont_open, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_color(ui->screen_main_cont_open, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_side(ui->screen_main_cont_open, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_main_cont_open, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_main_cont_open, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_main_cont_open, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_main_cont_open, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_main_cont_open, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_main_cont_open, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_cont_open, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_main_arc_temp
- ui->screen_main_arc_temp = lv_arc_create(ui->screen_main_cont_open);
- lv_obj_set_pos(ui->screen_main_arc_temp, 53, 26);
- lv_obj_set_size(ui->screen_main_arc_temp, 386, 373);
- lv_obj_remove_flag(ui->screen_main_arc_temp, LV_OBJ_FLAG_GESTURE_BUBBLE);
- lv_arc_set_mode(ui->screen_main_arc_temp, LV_ARC_MODE_NORMAL);
- lv_arc_set_range(ui->screen_main_arc_temp, 160, 300);
- lv_arc_set_bg_angles(ui->screen_main_arc_temp, 130, 50);
- lv_arc_set_value(ui->screen_main_arc_temp, 180);
- lv_arc_set_rotation(ui->screen_main_arc_temp, 0);
- //Write style for screen_main_arc_temp, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_bg_opa(ui->screen_main_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_width(ui->screen_main_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_arc_width(ui->screen_main_arc_temp, 16, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_arc_opa(ui->screen_main_arc_temp, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_arc_color(ui->screen_main_arc_temp, lv_color_hex(0xFFFFFF), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_arc_rounded(ui->screen_main_arc_temp, true, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_main_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_main_arc_temp, 20, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_main_arc_temp, 20, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_main_arc_temp, 20, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_main_arc_temp, 20, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_arc_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write style for screen_main_arc_temp, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
- lv_obj_set_style_arc_width(ui->screen_main_arc_temp, 16, LV_PART_INDICATOR|LV_STATE_DEFAULT);
- lv_obj_set_style_arc_opa(ui->screen_main_arc_temp, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
- lv_obj_set_style_arc_color(ui->screen_main_arc_temp, lv_color_hex(0xff4200), LV_PART_INDICATOR|LV_STATE_DEFAULT);
- lv_obj_set_style_arc_rounded(ui->screen_main_arc_temp, true, LV_PART_INDICATOR|LV_STATE_DEFAULT);
- //Write style for screen_main_arc_temp, Part: LV_PART_KNOB, State: LV_STATE_DEFAULT.
- lv_obj_set_style_bg_opa(ui->screen_main_arc_temp, 255, LV_PART_KNOB|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_color(ui->screen_main_arc_temp, lv_color_hex(0xffffff), LV_PART_KNOB|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_grad_dir(ui->screen_main_arc_temp, LV_GRAD_DIR_NONE, LV_PART_KNOB|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_all(ui->screen_main_arc_temp, 8, LV_PART_KNOB|LV_STATE_DEFAULT);
- //Write codes screen_main_cont_temp_set
- ui->screen_main_cont_temp_set = lv_obj_create(ui->screen_main_cont_open);
- lv_obj_set_pos(ui->screen_main_cont_temp_set, 126, 209);
- lv_obj_set_size(ui->screen_main_cont_temp_set, 228, 43);
- lv_obj_set_scrollbar_mode(ui->screen_main_cont_temp_set, LV_SCROLLBAR_MODE_OFF);
- lv_obj_remove_flag(ui->screen_main_cont_temp_set, LV_OBJ_FLAG_SCROLLABLE);
- //Write style for screen_main_cont_temp_set, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_main_cont_temp_set, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_opa(ui->screen_main_cont_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_color(ui->screen_main_cont_temp_set, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_side(ui->screen_main_cont_temp_set, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_main_cont_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_main_cont_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_main_cont_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_main_cont_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_main_cont_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_main_cont_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_cont_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_main_btn_temp_up
- ui->screen_main_btn_temp_up = lv_button_create(ui->screen_main_cont_temp_set);
- lv_obj_set_pos(ui->screen_main_btn_temp_up, 184, 0);
- lv_obj_set_size(ui->screen_main_btn_temp_up, 38, 38);
- ui->screen_main_btn_temp_up_label = lv_label_create(ui->screen_main_btn_temp_up);
- lv_label_set_text(ui->screen_main_btn_temp_up_label, "");
- lv_label_set_long_mode(ui->screen_main_btn_temp_up_label, LV_LABEL_LONG_WRAP);
- lv_obj_align(ui->screen_main_btn_temp_up_label, LV_ALIGN_CENTER, 0, 0);
- lv_obj_set_style_pad_all(ui->screen_main_btn_temp_up, 0, LV_STATE_DEFAULT);
- lv_obj_set_width(ui->screen_main_btn_temp_up_label, LV_PCT(100));
- //Write style for screen_main_btn_temp_up, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_bg_opa(ui->screen_main_btn_temp_up, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_width(ui->screen_main_btn_temp_up, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_main_btn_temp_up, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_btn_temp_up, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_image_src(ui->screen_main_btn_temp_up, &_jia_RGB565A8_38x38, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_image_opa(ui->screen_main_btn_temp_up, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_image_recolor_opa(ui->screen_main_btn_temp_up, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_main_btn_temp_up, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_main_btn_temp_up, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_main_btn_temp_up, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_main_btn_temp_up, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_main_btn_temp_down
- ui->screen_main_btn_temp_down = lv_button_create(ui->screen_main_cont_temp_set);
- lv_obj_set_pos(ui->screen_main_btn_temp_down, 0, 0);
- lv_obj_set_size(ui->screen_main_btn_temp_down, 38, 38);
- ui->screen_main_btn_temp_down_label = lv_label_create(ui->screen_main_btn_temp_down);
- lv_label_set_text(ui->screen_main_btn_temp_down_label, "");
- lv_label_set_long_mode(ui->screen_main_btn_temp_down_label, LV_LABEL_LONG_WRAP);
- lv_obj_align(ui->screen_main_btn_temp_down_label, LV_ALIGN_CENTER, 0, 0);
- lv_obj_set_style_pad_all(ui->screen_main_btn_temp_down, 0, LV_STATE_DEFAULT);
- lv_obj_set_width(ui->screen_main_btn_temp_down_label, LV_PCT(100));
- //Write style for screen_main_btn_temp_down, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_bg_opa(ui->screen_main_btn_temp_down, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_width(ui->screen_main_btn_temp_down, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_main_btn_temp_down, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_btn_temp_down, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_image_src(ui->screen_main_btn_temp_down, &_jian_RGB565A8_38x38, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_image_opa(ui->screen_main_btn_temp_down, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_image_recolor_opa(ui->screen_main_btn_temp_down, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_main_btn_temp_down, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_main_btn_temp_down, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_main_btn_temp_down, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_main_btn_temp_down, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_main_cont_speed
- ui->screen_main_cont_speed = lv_obj_create(ui->screen_main_cont_open);
- lv_obj_set_pos(ui->screen_main_cont_speed, 249, 390);
- lv_obj_set_size(ui->screen_main_cont_speed, 227, 78);
- lv_obj_set_scrollbar_mode(ui->screen_main_cont_speed, LV_SCROLLBAR_MODE_OFF);
- lv_obj_remove_flag(ui->screen_main_cont_speed, LV_OBJ_FLAG_SCROLLABLE);
- //Write style for screen_main_cont_speed, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_main_cont_speed, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_opa(ui->screen_main_cont_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_color(ui->screen_main_cont_speed, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_side(ui->screen_main_cont_speed, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_main_cont_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_main_cont_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_main_cont_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_main_cont_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_main_cont_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_main_cont_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_cont_speed, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_main_imgbtn_speed3
- ui->screen_main_imgbtn_speed3 = lv_imagebutton_create(ui->screen_main_cont_speed);
- lv_obj_set_pos(ui->screen_main_imgbtn_speed3, 161, 16);
- lv_obj_set_size(ui->screen_main_imgbtn_speed3, 48, 48);
- lv_obj_add_flag(ui->screen_main_imgbtn_speed3, LV_OBJ_FLAG_EVENT_BUBBLE);
- lv_obj_add_flag(ui->screen_main_imgbtn_speed3, LV_OBJ_FLAG_CHECKABLE);
- lv_imagebutton_set_src(ui->screen_main_imgbtn_speed3, LV_IMAGEBUTTON_STATE_RELEASED, &_speed3_off_RGB565A8_48x48, NULL, NULL);
- lv_imagebutton_set_src(ui->screen_main_imgbtn_speed3, LV_IMAGEBUTTON_STATE_PRESSED, &_speed3_RGB565A8_48x48, NULL, NULL);
- lv_imagebutton_set_src(ui->screen_main_imgbtn_speed3, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_speed3_RGB565A8_48x48, NULL, NULL);
- ui->screen_main_imgbtn_speed3_label = lv_label_create(ui->screen_main_imgbtn_speed3);
- lv_label_set_text(ui->screen_main_imgbtn_speed3_label, "");
- lv_label_set_long_mode(ui->screen_main_imgbtn_speed3_label, LV_LABEL_LONG_WRAP);
- lv_obj_align(ui->screen_main_imgbtn_speed3_label, LV_ALIGN_CENTER, 0, 0);
- lv_obj_set_style_pad_all(ui->screen_main_imgbtn_speed3, 0, LV_STATE_DEFAULT);
- //Write style for screen_main_imgbtn_speed3, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_text_color(ui->screen_main_imgbtn_speed3, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_main_imgbtn_speed3, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_main_imgbtn_speed3, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_main_imgbtn_speed3, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_speed3, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write style for screen_main_imgbtn_speed3, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
- lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_speed3, 0, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_image_opa(ui->screen_main_imgbtn_speed3, 255, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_text_color(ui->screen_main_imgbtn_speed3, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_text_font(ui->screen_main_imgbtn_speed3, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_text_opa(ui->screen_main_imgbtn_speed3, 255, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_speed3, 0, LV_PART_MAIN|LV_STATE_PRESSED);
- //Write style for screen_main_imgbtn_speed3, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
- lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_speed3, 0, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_image_opa(ui->screen_main_imgbtn_speed3, 255, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_text_color(ui->screen_main_imgbtn_speed3, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_text_font(ui->screen_main_imgbtn_speed3, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_text_opa(ui->screen_main_imgbtn_speed3, 255, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_speed3, 0, LV_PART_MAIN|LV_STATE_CHECKED);
- //Write style for screen_main_imgbtn_speed3, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
- lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_speed3, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
- lv_obj_set_style_image_opa(ui->screen_main_imgbtn_speed3, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
- //Write codes screen_main_imgbtn_speed2
- ui->screen_main_imgbtn_speed2 = lv_imagebutton_create(ui->screen_main_cont_speed);
- lv_obj_set_pos(ui->screen_main_imgbtn_speed2, 84, 16);
- lv_obj_set_size(ui->screen_main_imgbtn_speed2, 48, 48);
- lv_obj_add_flag(ui->screen_main_imgbtn_speed2, LV_OBJ_FLAG_EVENT_BUBBLE);
- lv_obj_add_flag(ui->screen_main_imgbtn_speed2, LV_OBJ_FLAG_CHECKABLE);
- lv_imagebutton_set_src(ui->screen_main_imgbtn_speed2, LV_IMAGEBUTTON_STATE_RELEASED, &_speed2_off_RGB565A8_48x48, NULL, NULL);
- lv_imagebutton_set_src(ui->screen_main_imgbtn_speed2, LV_IMAGEBUTTON_STATE_PRESSED, &_speed2_RGB565A8_48x48, NULL, NULL);
- lv_imagebutton_set_src(ui->screen_main_imgbtn_speed2, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_speed2_RGB565A8_48x48, NULL, NULL);
- ui->screen_main_imgbtn_speed2_label = lv_label_create(ui->screen_main_imgbtn_speed2);
- lv_label_set_text(ui->screen_main_imgbtn_speed2_label, "");
- lv_label_set_long_mode(ui->screen_main_imgbtn_speed2_label, LV_LABEL_LONG_WRAP);
- lv_obj_align(ui->screen_main_imgbtn_speed2_label, LV_ALIGN_CENTER, 0, 0);
- lv_obj_set_style_pad_all(ui->screen_main_imgbtn_speed2, 0, LV_STATE_DEFAULT);
- //Write style for screen_main_imgbtn_speed2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_text_color(ui->screen_main_imgbtn_speed2, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_main_imgbtn_speed2, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_main_imgbtn_speed2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_main_imgbtn_speed2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_speed2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write style for screen_main_imgbtn_speed2, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
- lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_speed2, 0, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_image_opa(ui->screen_main_imgbtn_speed2, 255, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_text_color(ui->screen_main_imgbtn_speed2, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_text_font(ui->screen_main_imgbtn_speed2, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_text_opa(ui->screen_main_imgbtn_speed2, 255, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_speed2, 0, LV_PART_MAIN|LV_STATE_PRESSED);
- //Write style for screen_main_imgbtn_speed2, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
- lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_speed2, 0, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_image_opa(ui->screen_main_imgbtn_speed2, 255, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_text_color(ui->screen_main_imgbtn_speed2, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_text_font(ui->screen_main_imgbtn_speed2, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_text_opa(ui->screen_main_imgbtn_speed2, 255, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_speed2, 0, LV_PART_MAIN|LV_STATE_CHECKED);
- //Write style for screen_main_imgbtn_speed2, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
- lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_speed2, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
- lv_obj_set_style_image_opa(ui->screen_main_imgbtn_speed2, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
- //Write codes screen_main_imgbtn_speed1
- ui->screen_main_imgbtn_speed1 = lv_imagebutton_create(ui->screen_main_cont_speed);
- lv_obj_set_pos(ui->screen_main_imgbtn_speed1, 7, 16);
- lv_obj_set_size(ui->screen_main_imgbtn_speed1, 48, 48);
- lv_obj_add_flag(ui->screen_main_imgbtn_speed1, LV_OBJ_FLAG_EVENT_BUBBLE);
- lv_obj_add_flag(ui->screen_main_imgbtn_speed1, LV_OBJ_FLAG_CHECKABLE);
- lv_imagebutton_set_src(ui->screen_main_imgbtn_speed1, LV_IMAGEBUTTON_STATE_RELEASED, &_speed1_off_RGB565A8_48x48, NULL, NULL);
- lv_imagebutton_set_src(ui->screen_main_imgbtn_speed1, LV_IMAGEBUTTON_STATE_PRESSED, &_speed1_RGB565A8_48x48, NULL, NULL);
- lv_imagebutton_set_src(ui->screen_main_imgbtn_speed1, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_speed1_RGB565A8_48x48, NULL, NULL);
- ui->screen_main_imgbtn_speed1_label = lv_label_create(ui->screen_main_imgbtn_speed1);
- lv_label_set_text(ui->screen_main_imgbtn_speed1_label, "");
- lv_label_set_long_mode(ui->screen_main_imgbtn_speed1_label, LV_LABEL_LONG_WRAP);
- lv_obj_align(ui->screen_main_imgbtn_speed1_label, LV_ALIGN_CENTER, 0, 0);
- lv_obj_set_style_pad_all(ui->screen_main_imgbtn_speed1, 0, LV_STATE_DEFAULT);
- //Write style for screen_main_imgbtn_speed1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_text_color(ui->screen_main_imgbtn_speed1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_main_imgbtn_speed1, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_main_imgbtn_speed1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_main_imgbtn_speed1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_speed1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write style for screen_main_imgbtn_speed1, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
- lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_speed1, 0, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_image_opa(ui->screen_main_imgbtn_speed1, 255, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_text_color(ui->screen_main_imgbtn_speed1, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_text_font(ui->screen_main_imgbtn_speed1, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_text_opa(ui->screen_main_imgbtn_speed1, 255, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_speed1, 0, LV_PART_MAIN|LV_STATE_PRESSED);
- //Write style for screen_main_imgbtn_speed1, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
- lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_speed1, 0, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_image_opa(ui->screen_main_imgbtn_speed1, 255, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_text_color(ui->screen_main_imgbtn_speed1, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_text_font(ui->screen_main_imgbtn_speed1, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_text_opa(ui->screen_main_imgbtn_speed1, 255, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_speed1, 0, LV_PART_MAIN|LV_STATE_CHECKED);
- //Write style for screen_main_imgbtn_speed1, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
- lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_speed1, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
- lv_obj_set_style_image_opa(ui->screen_main_imgbtn_speed1, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
- //Write codes screen_main_cont_data
- ui->screen_main_cont_data = lv_obj_create(ui->screen_main_cont_open);
- lv_obj_set_pos(ui->screen_main_cont_data, 104, 89);
- lv_obj_set_size(ui->screen_main_cont_data, 260, 79);
- lv_obj_set_scrollbar_mode(ui->screen_main_cont_data, LV_SCROLLBAR_MODE_OFF);
- lv_obj_remove_flag(ui->screen_main_cont_data, LV_OBJ_FLAG_SCROLLABLE);
- //Write style for screen_main_cont_data, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_main_cont_data, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_opa(ui->screen_main_cont_data, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_color(ui->screen_main_cont_data, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_side(ui->screen_main_cont_data, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_main_cont_data, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_main_cont_data, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_main_cont_data, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_main_cont_data, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_main_cont_data, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_main_cont_data, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_cont_data, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_main_label_temp
- ui->screen_main_label_temp = lv_label_create(ui->screen_main_cont_data);
- lv_obj_set_pos(ui->screen_main_label_temp, 105, 10);
- lv_obj_set_size(ui->screen_main_label_temp, 56, 25);
- lv_label_set_text(ui->screen_main_label_temp, "00.0");
- lv_label_set_long_mode(ui->screen_main_label_temp, LV_LABEL_LONG_WRAP);
- //Write style for screen_main_label_temp, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_main_label_temp, lv_color_hex(0xd8d9d9), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_main_label_temp, &lv_font_Alibaba_PuHuiTi_Medium_24, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_main_label_temp, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_main_label_temp, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_label_temp, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_main_label_9
- ui->screen_main_label_9 = lv_label_create(ui->screen_main_cont_data);
- lv_obj_set_pos(ui->screen_main_label_9, 78, 10);
- lv_obj_set_size(ui->screen_main_label_9, 24, 25);
- lv_label_set_text(ui->screen_main_label_9, "");
- lv_label_set_long_mode(ui->screen_main_label_9, LV_LABEL_LONG_WRAP);
- //Write style for screen_main_label_9, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_main_label_9, lv_color_hex(0xd8d9d9), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_main_label_9, &lv_font_iconfont_22, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_main_label_9, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_main_label_9, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_label_9, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_main_label_8
- ui->screen_main_label_8 = lv_label_create(ui->screen_main_cont_data);
- lv_obj_set_pos(ui->screen_main_label_8, 166, 17);
- lv_obj_set_size(ui->screen_main_label_8, 16, 18);
- lv_label_set_text(ui->screen_main_label_8, "℃");
- lv_label_set_long_mode(ui->screen_main_label_8, LV_LABEL_LONG_WRAP);
- //Write style for screen_main_label_8, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_main_label_8, lv_color_hex(0xd8d9d9), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_main_label_8, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_main_label_8, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_main_label_8, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_label_8, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_main_label_hum_vul2
- ui->screen_main_label_hum_vul2 = lv_label_create(ui->screen_main_cont_data);
- lv_obj_set_pos(ui->screen_main_label_hum_vul2, 105, 46);
- lv_obj_set_size(ui->screen_main_label_hum_vul2, 56, 25);
- lv_label_set_text(ui->screen_main_label_hum_vul2, "99.9");
- lv_label_set_long_mode(ui->screen_main_label_hum_vul2, LV_LABEL_LONG_WRAP);
- //Write style for screen_main_label_hum_vul2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_main_label_hum_vul2, lv_color_hex(0xd8d9d9), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_main_label_hum_vul2, &lv_font_Alibaba_PuHuiTi_Medium_24, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_main_label_hum_vul2, 216, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_main_label_hum_vul2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_label_hum_vul2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_main_label_10
- ui->screen_main_label_10 = lv_label_create(ui->screen_main_cont_data);
- lv_obj_set_pos(ui->screen_main_label_10, 78, 46);
- lv_obj_set_size(ui->screen_main_label_10, 24, 25);
- lv_label_set_text(ui->screen_main_label_10, "");
- lv_label_set_long_mode(ui->screen_main_label_10, LV_LABEL_LONG_WRAP);
- //Write style for screen_main_label_10, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_main_label_10, lv_color_hex(0xd8d9d9), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_main_label_10, &lv_font_iconfont_22, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_main_label_10, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_main_label_10, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_label_10, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_main_label_7
- ui->screen_main_label_7 = lv_label_create(ui->screen_main_cont_data);
- lv_obj_set_pos(ui->screen_main_label_7, 166, 53);
- lv_obj_set_size(ui->screen_main_label_7, 19, 18);
- lv_label_set_text(ui->screen_main_label_7, "%");
- lv_label_set_long_mode(ui->screen_main_label_7, LV_LABEL_LONG_WRAP);
- //Write style for screen_main_label_7, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_main_label_7, lv_color_hex(0xd8d9d9), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_main_label_7, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_main_label_7, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_main_label_7, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_label_7, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_main_cont_mode
- ui->screen_main_cont_mode = lv_obj_create(ui->screen_main_cont_open);
- lv_obj_set_pos(ui->screen_main_cont_mode, 8, 390);
- lv_obj_set_size(ui->screen_main_cont_mode, 227, 78);
- lv_obj_set_scrollbar_mode(ui->screen_main_cont_mode, LV_SCROLLBAR_MODE_OFF);
- lv_obj_remove_flag(ui->screen_main_cont_mode, LV_OBJ_FLAG_SCROLLABLE);
- //Write style for screen_main_cont_mode, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_main_cont_mode, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_opa(ui->screen_main_cont_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_color(ui->screen_main_cont_mode, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_side(ui->screen_main_cont_mode, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_main_cont_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_main_cont_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_main_cont_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_main_cont_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_main_cont_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_main_cont_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_cont_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_main_imgbtn_tf
- ui->screen_main_imgbtn_tf = lv_imagebutton_create(ui->screen_main_cont_mode);
- lv_obj_set_pos(ui->screen_main_imgbtn_tf, 92, 17);
- lv_obj_set_size(ui->screen_main_imgbtn_tf, 48, 48);
- lv_obj_add_flag(ui->screen_main_imgbtn_tf, LV_OBJ_FLAG_EVENT_BUBBLE);
- lv_obj_add_flag(ui->screen_main_imgbtn_tf, LV_OBJ_FLAG_CHECKABLE);
- lv_imagebutton_set_src(ui->screen_main_imgbtn_tf, LV_IMAGEBUTTON_STATE_RELEASED, &_tf_off_RGB565A8_48x48, NULL, NULL);
- lv_imagebutton_set_src(ui->screen_main_imgbtn_tf, LV_IMAGEBUTTON_STATE_PRESSED, &_tf_RGB565A8_48x48, NULL, NULL);
- lv_imagebutton_set_src(ui->screen_main_imgbtn_tf, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_tf_RGB565A8_48x48, NULL, NULL);
- ui->screen_main_imgbtn_tf_label = lv_label_create(ui->screen_main_imgbtn_tf);
- lv_label_set_text(ui->screen_main_imgbtn_tf_label, "");
- lv_label_set_long_mode(ui->screen_main_imgbtn_tf_label, LV_LABEL_LONG_WRAP);
- lv_obj_align(ui->screen_main_imgbtn_tf_label, LV_ALIGN_CENTER, 0, 0);
- lv_obj_set_style_pad_all(ui->screen_main_imgbtn_tf, 0, LV_STATE_DEFAULT);
- //Write style for screen_main_imgbtn_tf, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_text_color(ui->screen_main_imgbtn_tf, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_main_imgbtn_tf, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_main_imgbtn_tf, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_main_imgbtn_tf, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_tf, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write style for screen_main_imgbtn_tf, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
- lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_tf, 0, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_image_opa(ui->screen_main_imgbtn_tf, 255, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_text_color(ui->screen_main_imgbtn_tf, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_text_font(ui->screen_main_imgbtn_tf, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_text_opa(ui->screen_main_imgbtn_tf, 255, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_tf, 0, LV_PART_MAIN|LV_STATE_PRESSED);
- //Write style for screen_main_imgbtn_tf, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
- lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_tf, 0, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_image_opa(ui->screen_main_imgbtn_tf, 255, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_text_color(ui->screen_main_imgbtn_tf, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_text_font(ui->screen_main_imgbtn_tf, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_text_opa(ui->screen_main_imgbtn_tf, 255, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_tf, 0, LV_PART_MAIN|LV_STATE_CHECKED);
- //Write style for screen_main_imgbtn_tf, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
- lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_tf, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
- lv_obj_set_style_image_opa(ui->screen_main_imgbtn_tf, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
- //Write codes screen_main_imgbtn_heat
- ui->screen_main_imgbtn_heat = lv_imagebutton_create(ui->screen_main_cont_mode);
- lv_obj_set_pos(ui->screen_main_imgbtn_heat, 174, 17);
- lv_obj_set_size(ui->screen_main_imgbtn_heat, 48, 48);
- lv_obj_add_flag(ui->screen_main_imgbtn_heat, LV_OBJ_FLAG_EVENT_BUBBLE);
- lv_obj_add_flag(ui->screen_main_imgbtn_heat, LV_OBJ_FLAG_CHECKABLE);
- lv_imagebutton_set_src(ui->screen_main_imgbtn_heat, LV_IMAGEBUTTON_STATE_RELEASED, &_heat_off_RGB565A8_48x48, NULL, NULL);
- lv_imagebutton_set_src(ui->screen_main_imgbtn_heat, LV_IMAGEBUTTON_STATE_PRESSED, &_heat_RGB565A8_48x48, NULL, NULL);
- lv_imagebutton_set_src(ui->screen_main_imgbtn_heat, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_heat_RGB565A8_48x48, NULL, NULL);
- ui->screen_main_imgbtn_heat_label = lv_label_create(ui->screen_main_imgbtn_heat);
- lv_label_set_text(ui->screen_main_imgbtn_heat_label, "");
- lv_label_set_long_mode(ui->screen_main_imgbtn_heat_label, LV_LABEL_LONG_WRAP);
- lv_obj_align(ui->screen_main_imgbtn_heat_label, LV_ALIGN_CENTER, 0, 0);
- lv_obj_set_style_pad_all(ui->screen_main_imgbtn_heat, 0, LV_STATE_DEFAULT);
- //Write style for screen_main_imgbtn_heat, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_text_color(ui->screen_main_imgbtn_heat, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_main_imgbtn_heat, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_main_imgbtn_heat, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_main_imgbtn_heat, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_heat, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write style for screen_main_imgbtn_heat, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
- lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_heat, 0, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_image_opa(ui->screen_main_imgbtn_heat, 255, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_text_color(ui->screen_main_imgbtn_heat, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_text_font(ui->screen_main_imgbtn_heat, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_text_opa(ui->screen_main_imgbtn_heat, 255, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_heat, 0, LV_PART_MAIN|LV_STATE_PRESSED);
- //Write style for screen_main_imgbtn_heat, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
- lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_heat, 0, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_image_opa(ui->screen_main_imgbtn_heat, 255, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_text_color(ui->screen_main_imgbtn_heat, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_text_font(ui->screen_main_imgbtn_heat, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_text_opa(ui->screen_main_imgbtn_heat, 255, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_heat, 0, LV_PART_MAIN|LV_STATE_CHECKED);
- //Write style for screen_main_imgbtn_heat, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
- lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_heat, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
- lv_obj_set_style_image_opa(ui->screen_main_imgbtn_heat, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
- //Write codes screen_main_imgbtn_cold
- ui->screen_main_imgbtn_cold = lv_imagebutton_create(ui->screen_main_cont_mode);
- lv_obj_set_pos(ui->screen_main_imgbtn_cold, 10, 17);
- lv_obj_set_size(ui->screen_main_imgbtn_cold, 48, 48);
- lv_obj_add_flag(ui->screen_main_imgbtn_cold, LV_OBJ_FLAG_EVENT_BUBBLE);
- lv_obj_add_flag(ui->screen_main_imgbtn_cold, LV_OBJ_FLAG_CHECKABLE);
- lv_imagebutton_set_src(ui->screen_main_imgbtn_cold, LV_IMAGEBUTTON_STATE_RELEASED, &_cold_off_RGB565A8_48x48, NULL, NULL);
- lv_imagebutton_set_src(ui->screen_main_imgbtn_cold, LV_IMAGEBUTTON_STATE_PRESSED, &_cold_RGB565A8_48x48, NULL, NULL);
- lv_imagebutton_set_src(ui->screen_main_imgbtn_cold, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_cold_RGB565A8_48x48, NULL, NULL);
- ui->screen_main_imgbtn_cold_label = lv_label_create(ui->screen_main_imgbtn_cold);
- lv_label_set_text(ui->screen_main_imgbtn_cold_label, "");
- lv_label_set_long_mode(ui->screen_main_imgbtn_cold_label, LV_LABEL_LONG_WRAP);
- lv_obj_align(ui->screen_main_imgbtn_cold_label, LV_ALIGN_CENTER, 0, 0);
- lv_obj_set_style_pad_all(ui->screen_main_imgbtn_cold, 0, LV_STATE_DEFAULT);
- //Write style for screen_main_imgbtn_cold, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_text_color(ui->screen_main_imgbtn_cold, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_main_imgbtn_cold, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_main_imgbtn_cold, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_main_imgbtn_cold, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_cold, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write style for screen_main_imgbtn_cold, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
- lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_cold, 0, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_image_opa(ui->screen_main_imgbtn_cold, 255, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_text_color(ui->screen_main_imgbtn_cold, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_text_font(ui->screen_main_imgbtn_cold, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_text_opa(ui->screen_main_imgbtn_cold, 255, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_cold, 0, LV_PART_MAIN|LV_STATE_PRESSED);
- //Write style for screen_main_imgbtn_cold, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
- lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_cold, 0, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_image_opa(ui->screen_main_imgbtn_cold, 255, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_text_color(ui->screen_main_imgbtn_cold, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_text_font(ui->screen_main_imgbtn_cold, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_text_opa(ui->screen_main_imgbtn_cold, 255, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_cold, 0, LV_PART_MAIN|LV_STATE_CHECKED);
- //Write style for screen_main_imgbtn_cold, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
- lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_cold, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
- lv_obj_set_style_image_opa(ui->screen_main_imgbtn_cold, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
- //Write codes screen_main_imgbtn_power
- ui->screen_main_imgbtn_power = lv_imagebutton_create(ui->screen_main_cont_open);
- lv_obj_set_pos(ui->screen_main_imgbtn_power, 215, 324);
- lv_obj_set_size(ui->screen_main_imgbtn_power, 50, 50);
- lv_obj_add_flag(ui->screen_main_imgbtn_power, LV_OBJ_FLAG_CHECKABLE);
- lv_imagebutton_set_src(ui->screen_main_imgbtn_power, LV_IMAGEBUTTON_STATE_RELEASED, &_power_RGB565A8_50x50, NULL, NULL);
- lv_imagebutton_set_src(ui->screen_main_imgbtn_power, LV_IMAGEBUTTON_STATE_PRESSED, &_power_RGB565A8_50x50, NULL, NULL);
- lv_imagebutton_set_src(ui->screen_main_imgbtn_power, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_power_RGB565A8_50x50, NULL, NULL);
- ui->screen_main_imgbtn_power_label = lv_label_create(ui->screen_main_imgbtn_power);
- lv_label_set_text(ui->screen_main_imgbtn_power_label, "");
- lv_label_set_long_mode(ui->screen_main_imgbtn_power_label, LV_LABEL_LONG_WRAP);
- lv_obj_align(ui->screen_main_imgbtn_power_label, LV_ALIGN_CENTER, 0, 0);
- lv_obj_set_style_pad_all(ui->screen_main_imgbtn_power, 0, LV_STATE_DEFAULT);
- //Write style for screen_main_imgbtn_power, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_text_color(ui->screen_main_imgbtn_power, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_main_imgbtn_power, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_main_imgbtn_power, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_main_imgbtn_power, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_power, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write style for screen_main_imgbtn_power, Part: LV_PART_MAIN, State: LV_STATE_PRESSED.
- lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_power, 0, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_image_opa(ui->screen_main_imgbtn_power, 255, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_text_color(ui->screen_main_imgbtn_power, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_text_font(ui->screen_main_imgbtn_power, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_text_opa(ui->screen_main_imgbtn_power, 255, LV_PART_MAIN|LV_STATE_PRESSED);
- lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_power, 0, LV_PART_MAIN|LV_STATE_PRESSED);
- //Write style for screen_main_imgbtn_power, Part: LV_PART_MAIN, State: LV_STATE_CHECKED.
- lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_power, 0, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_image_opa(ui->screen_main_imgbtn_power, 255, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_text_color(ui->screen_main_imgbtn_power, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_text_font(ui->screen_main_imgbtn_power, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_text_opa(ui->screen_main_imgbtn_power, 255, LV_PART_MAIN|LV_STATE_CHECKED);
- lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_power, 0, LV_PART_MAIN|LV_STATE_CHECKED);
- //Write style for screen_main_imgbtn_power, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED.
- lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_power, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
- lv_obj_set_style_image_opa(ui->screen_main_imgbtn_power, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED);
- //Write codes screen_main_label_temp_set
- ui->screen_main_label_temp_set = lv_label_create(ui->screen_main_cont_open);
- lv_obj_set_pos(ui->screen_main_label_temp_set, 182, 204);
- lv_obj_set_size(ui->screen_main_label_temp_set, 100, 47);
- lv_label_set_text(ui->screen_main_label_temp_set, "26");
- lv_label_set_long_mode(ui->screen_main_label_temp_set, LV_LABEL_LONG_WRAP);
- //Write style for screen_main_label_temp_set, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_main_label_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_main_label_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_main_label_temp_set, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_main_label_temp_set, &lv_font_montserratMedium_48, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_main_label_temp_set, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_main_label_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_main_label_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_main_label_temp_set, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_main_label_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_main_label_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_main_label_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_main_label_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_main_label_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_label_temp_set, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_main_label_21
- ui->screen_main_label_21 = lv_label_create(ui->screen_main_cont_open);
- lv_obj_set_pos(ui->screen_main_label_21, 283, 346);
- lv_obj_set_size(ui->screen_main_label_21, 47, 25);
- lv_label_set_text(ui->screen_main_label_21, "30°C");
- lv_label_set_long_mode(ui->screen_main_label_21, LV_LABEL_LONG_WRAP);
- //Write style for screen_main_label_21, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_main_label_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_main_label_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_main_label_21, lv_color_hex(0xd8d9d9), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_main_label_21, &lv_font_Alibaba_PuHuiTi_Medium_18, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_main_label_21, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_main_label_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_main_label_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_main_label_21, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_main_label_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_main_label_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_main_label_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_main_label_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_main_label_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_label_21, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_main_label_20
- ui->screen_main_label_20 = lv_label_create(ui->screen_main_cont_open);
- lv_obj_set_pos(ui->screen_main_label_20, 268, 221);
- lv_obj_set_size(ui->screen_main_label_20, 26, 26);
- lv_label_set_text(ui->screen_main_label_20, "℃");
- lv_label_set_long_mode(ui->screen_main_label_20, LV_LABEL_LONG_WRAP);
- //Write style for screen_main_label_20, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_main_label_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_main_label_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_main_label_20, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_main_label_20, &lv_font_Alibaba_PuHuiTi_Medium_26, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_main_label_20, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_main_label_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_main_label_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_main_label_20, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_main_label_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_main_label_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_main_label_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_main_label_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_main_label_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_label_20, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_main_label_
- ui->screen_main_label_ = lv_label_create(ui->screen_main_cont_open);
- lv_obj_set_pos(ui->screen_main_label_, 150, 346);
- lv_obj_set_size(ui->screen_main_label_, 46, 25);
- lv_label_set_text(ui->screen_main_label_, "16°C");
- lv_label_set_long_mode(ui->screen_main_label_, LV_LABEL_LONG_WRAP);
- //Write style for screen_main_label_, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_main_label_, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_main_label_, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_main_label_, lv_color_hex(0xd8d9d9), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_main_label_, &lv_font_Alibaba_PuHuiTi_Medium_18, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_main_label_, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_main_label_, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_main_label_, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_main_label_, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_main_label_, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_main_label_, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_main_label_, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_main_label_, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_main_label_, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_label_, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_main_cont_close
- ui->screen_main_cont_close = lv_obj_create(ui->screen_main);
- lv_obj_set_pos(ui->screen_main_cont_close, 9, 14);
- lv_obj_set_size(ui->screen_main_cont_close, 462, 447);
- lv_obj_set_scrollbar_mode(ui->screen_main_cont_close, LV_SCROLLBAR_MODE_OFF);
- lv_obj_remove_flag(ui->screen_main_cont_close, LV_OBJ_FLAG_SCROLLABLE);
- //Write style for screen_main_cont_close, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_main_cont_close, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_opa(ui->screen_main_cont_close, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_color(ui->screen_main_cont_close, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_side(ui->screen_main_cont_close, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_main_cont_close, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_main_cont_close, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_main_cont_close, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_main_cont_close, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_main_cont_close, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_main_cont_close, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_cont_close, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_main_label_25
- ui->screen_main_label_25 = lv_label_create(ui->screen_main_cont_close);
- lv_obj_set_pos(ui->screen_main_label_25, 260, 321);
- lv_obj_set_size(ui->screen_main_label_25, 28, 28);
- lv_label_set_text(ui->screen_main_label_25, "");
- lv_label_set_long_mode(ui->screen_main_label_25, LV_LABEL_LONG_WRAP);
- //Write style for screen_main_label_25, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_main_label_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_main_label_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_main_label_25, lv_color_hex(0xd8d9d9), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_main_label_25, &lv_font_iconfont_28, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_main_label_25, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_main_label_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_main_label_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_main_label_25, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_main_label_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_main_label_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_main_label_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_main_label_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_main_label_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_label_25, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_main_label_22
- ui->screen_main_label_22 = lv_label_create(ui->screen_main_cont_close);
- lv_obj_set_pos(ui->screen_main_label_22, 106, 321);
- lv_obj_set_size(ui->screen_main_label_22, 28, 28);
- lv_label_set_text(ui->screen_main_label_22, "");
- lv_label_set_long_mode(ui->screen_main_label_22, LV_LABEL_LONG_WRAP);
- //Write style for screen_main_label_22, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_main_label_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_main_label_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_main_label_22, lv_color_hex(0xd8d9d9), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_main_label_22, &lv_font_iconfont_28, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_main_label_22, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_main_label_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_main_label_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_main_label_22, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_main_label_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_main_label_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_main_label_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_main_label_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_main_label_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_label_22, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_main_label_temp_2
- ui->screen_main_label_temp_2 = lv_label_create(ui->screen_main_cont_close);
- lv_obj_set_pos(ui->screen_main_label_temp_2, 140, 326);
- lv_obj_set_size(ui->screen_main_label_temp_2, 80, 23);
- lv_label_set_text(ui->screen_main_label_temp_2, "00.0℃");
- lv_label_set_long_mode(ui->screen_main_label_temp_2, LV_LABEL_LONG_WRAP);
- //Write style for screen_main_label_temp_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_main_label_temp_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_main_label_temp_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_main_label_temp_2, lv_color_hex(0xd8d9d9), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_main_label_temp_2, &lv_font_Alibaba_PuHuiTi_Medium_25, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_main_label_temp_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_main_label_temp_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_main_label_temp_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_main_label_temp_2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_main_label_temp_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_main_label_temp_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_main_label_temp_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_main_label_temp_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_main_label_temp_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_label_temp_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_main_label_hum_2
- ui->screen_main_label_hum_2 = lv_label_create(ui->screen_main_cont_close);
- lv_obj_set_pos(ui->screen_main_label_hum_2, 300, 325);
- lv_obj_set_size(ui->screen_main_label_hum_2, 56, 24);
- lv_label_set_text(ui->screen_main_label_hum_2, "50%");
- lv_label_set_long_mode(ui->screen_main_label_hum_2, LV_LABEL_LONG_WRAP);
- //Write style for screen_main_label_hum_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_main_label_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_main_label_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_main_label_hum_2, lv_color_hex(0xd8d9d9), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_main_label_hum_2, &lv_font_Alibaba_PuHuiTi_Medium_25, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_main_label_hum_2, 216, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_main_label_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_main_label_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_main_label_hum_2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_main_label_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_main_label_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_main_label_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_main_label_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_main_label_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_label_hum_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_main_btn_close_power
- ui->screen_main_btn_close_power = lv_button_create(ui->screen_main_cont_close);
- lv_obj_set_pos(ui->screen_main_btn_close_power, 200, 199);
- lv_obj_set_size(ui->screen_main_btn_close_power, 80, 80);
- ui->screen_main_btn_close_power_label = lv_label_create(ui->screen_main_btn_close_power);
- lv_label_set_text(ui->screen_main_btn_close_power_label, "");
- lv_label_set_long_mode(ui->screen_main_btn_close_power_label, LV_LABEL_LONG_WRAP);
- lv_obj_align(ui->screen_main_btn_close_power_label, LV_ALIGN_CENTER, 0, 0);
- lv_obj_set_style_pad_all(ui->screen_main_btn_close_power, 0, LV_STATE_DEFAULT);
- lv_obj_set_width(ui->screen_main_btn_close_power_label, LV_PCT(100));
- //Write style for screen_main_btn_close_power, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_bg_opa(ui->screen_main_btn_close_power, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_border_width(ui->screen_main_btn_close_power, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_main_btn_close_power, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_btn_close_power, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_image_src(ui->screen_main_btn_close_power, &_ac_power_on_RGB565A8_80x80, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_image_opa(ui->screen_main_btn_close_power, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_image_recolor_opa(ui->screen_main_btn_close_power, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_main_btn_close_power, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_main_btn_close_power, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_main_btn_close_power, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_main_btn_close_power, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_main_lab_485_err
- ui->screen_main_lab_485_err = lv_label_create(ui->screen_main);
- lv_obj_set_pos(ui->screen_main_lab_485_err, 239, 7);
- lv_obj_set_size(ui->screen_main_lab_485_err, 32, 32);
- lv_obj_add_flag(ui->screen_main_lab_485_err, LV_OBJ_FLAG_HIDDEN);
- lv_obj_add_flag(ui->screen_main_lab_485_err, LV_OBJ_FLAG_HIDDEN);
- lv_label_set_text(ui->screen_main_lab_485_err, "");
- lv_label_set_long_mode(ui->screen_main_lab_485_err, LV_LABEL_LONG_WRAP);
- //Write style for screen_main_lab_485_err, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_main_lab_485_err, lv_color_hex(0xf7da00), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_main_lab_485_err, &lv_font_iconfont_22, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_main_lab_485_err, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_main_lab_485_err, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_lab_485_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_main_lab_err
- ui->screen_main_lab_err = lv_label_create(ui->screen_main);
- lv_obj_set_pos(ui->screen_main_lab_err, 266, 7);
- lv_obj_set_size(ui->screen_main_lab_err, 32, 32);
- lv_obj_add_flag(ui->screen_main_lab_err, LV_OBJ_FLAG_HIDDEN);
- lv_obj_add_flag(ui->screen_main_lab_err, LV_OBJ_FLAG_HIDDEN);
- lv_label_set_text(ui->screen_main_lab_err, "");
- lv_label_set_long_mode(ui->screen_main_lab_err, LV_LABEL_LONG_WRAP);
- //Write style for screen_main_lab_err, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_main_lab_err, lv_color_hex(0xfa052b), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_main_lab_err, &lv_font_iconfont_22, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_main_lab_err, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_main_lab_err, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_lab_err, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_main_label_wifi
- ui->screen_main_label_wifi = lv_label_create(ui->screen_main);
- lv_obj_set_pos(ui->screen_main_label_wifi, 427, 2);
- lv_obj_set_size(ui->screen_main_label_wifi, 30, 30);
- lv_obj_add_flag(ui->screen_main_label_wifi, LV_OBJ_FLAG_HIDDEN);
- lv_label_set_text(ui->screen_main_label_wifi, "");
- lv_label_set_long_mode(ui->screen_main_label_wifi, LV_LABEL_LONG_WRAP);
- //Write style for screen_main_label_wifi, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_main_label_wifi, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_main_label_wifi, &lv_font_iconfont_16, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_main_label_wifi, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_main_label_wifi, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_image_src(ui->screen_main_label_wifi, &_WiFiruo_RGB565A8_30x30, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_image_opa(ui->screen_main_label_wifi, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_image_recolor_opa(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_label_wifi, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_main_lab_cloud1
- ui->screen_main_lab_cloud1 = lv_label_create(ui->screen_main);
- lv_obj_set_pos(ui->screen_main_lab_cloud1, 393, 7);
- lv_obj_set_size(ui->screen_main_lab_cloud1, 32, 32);
- lv_obj_add_flag(ui->screen_main_lab_cloud1, LV_OBJ_FLAG_HIDDEN);
- lv_label_set_text(ui->screen_main_lab_cloud1, "");
- lv_label_set_long_mode(ui->screen_main_lab_cloud1, LV_LABEL_LONG_WRAP);
- //Write style for screen_main_lab_cloud1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_main_lab_cloud1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_main_lab_cloud1, &lv_font_iconfont_22, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_main_lab_cloud1, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_main_lab_cloud1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_lab_cloud1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_main_label_filter_error
- ui->screen_main_label_filter_error = lv_label_create(ui->screen_main);
- lv_obj_set_pos(ui->screen_main_label_filter_error, 295, 7);
- lv_obj_set_size(ui->screen_main_label_filter_error, 32, 32);
- lv_obj_add_flag(ui->screen_main_label_filter_error, LV_OBJ_FLAG_HIDDEN);
- lv_obj_add_flag(ui->screen_main_label_filter_error, LV_OBJ_FLAG_HIDDEN);
- lv_label_set_text(ui->screen_main_label_filter_error, "");
- lv_label_set_long_mode(ui->screen_main_label_filter_error, LV_LABEL_LONG_WRAP);
- //Write style for screen_main_label_filter_error, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_main_label_filter_error, lv_color_hex(0xff6500), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_main_label_filter_error, &lv_font_iconfont_22, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_main_label_filter_error, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_main_label_filter_error, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_label_filter_error, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_main_lab_new_fan_mode
- ui->screen_main_lab_new_fan_mode = lv_label_create(ui->screen_main);
- lv_obj_set_pos(ui->screen_main_lab_new_fan_mode, 329, 7);
- lv_obj_set_size(ui->screen_main_lab_new_fan_mode, 32, 32);
- lv_obj_add_flag(ui->screen_main_lab_new_fan_mode, LV_OBJ_FLAG_HIDDEN);
- lv_obj_add_flag(ui->screen_main_lab_new_fan_mode, LV_OBJ_FLAG_HIDDEN);
- lv_label_set_text(ui->screen_main_lab_new_fan_mode, "");
- lv_label_set_long_mode(ui->screen_main_lab_new_fan_mode, LV_LABEL_LONG_WRAP);
- //Write style for screen_main_lab_new_fan_mode, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_main_lab_new_fan_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_main_lab_new_fan_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_main_lab_new_fan_mode, lv_color_hex(0x00ff32), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_main_lab_new_fan_mode, &lv_font_iconfont_22, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_main_lab_new_fan_mode, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_main_lab_new_fan_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_main_lab_new_fan_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_main_lab_new_fan_mode, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_main_lab_new_fan_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_main_lab_new_fan_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_main_lab_new_fan_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_main_lab_new_fan_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_main_lab_new_fan_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_lab_new_fan_mode, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //Write codes screen_main_label_xf_conn
- ui->screen_main_label_xf_conn = lv_label_create(ui->screen_main);
- lv_obj_set_pos(ui->screen_main_label_xf_conn, 362, 7);
- lv_obj_set_size(ui->screen_main_label_xf_conn, 32, 32);
- lv_obj_add_flag(ui->screen_main_label_xf_conn, LV_OBJ_FLAG_HIDDEN);
- lv_obj_add_flag(ui->screen_main_label_xf_conn, LV_OBJ_FLAG_HIDDEN);
- lv_label_set_text(ui->screen_main_label_xf_conn, "");
- lv_label_set_long_mode(ui->screen_main_label_xf_conn, LV_LABEL_LONG_WRAP);
- //Write style for screen_main_label_xf_conn, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
- lv_obj_set_style_border_width(ui->screen_main_label_xf_conn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_radius(ui->screen_main_label_xf_conn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_color(ui->screen_main_label_xf_conn, lv_color_hex(0x4cff00), LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_font(ui->screen_main_label_xf_conn, &lv_font_iconfont_22, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_opa(ui->screen_main_label_xf_conn, 230, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_letter_space(ui->screen_main_label_xf_conn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_line_space(ui->screen_main_label_xf_conn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_text_align(ui->screen_main_label_xf_conn, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_bg_opa(ui->screen_main_label_xf_conn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_top(ui->screen_main_label_xf_conn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_right(ui->screen_main_label_xf_conn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_bottom(ui->screen_main_label_xf_conn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_pad_left(ui->screen_main_label_xf_conn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- lv_obj_set_style_shadow_width(ui->screen_main_label_xf_conn, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
- //The custom code of screen_main.
- //设置温度初始值
- lv_arc_set_value(ui->screen_main_arc_temp,ac_status.set_temp*10);
- lv_label_set_text_fmt(ui->screen_main_label_temp_set,"%d",ac_status.set_temp);
- //设置模式初始值
- set_ac_mode(ui, ac_status.mode);
- //设置风速初始值
- set_fan_level(ui, ac_status.fan_speed);
- //设置开关机初始值
- lv_obj_remove_flag(ui->screen_main_cont_open, LV_OBJ_FLAG_SCROLLABLE);
- lv_obj_remove_flag(ui->screen_main_cont_close, LV_OBJ_FLAG_SCROLLABLE);
- if(ac_status.xf_mode==2) {
- lv_obj_remove_flag(ui->screen_main_lab_new_fan_mode, LV_OBJ_FLAG_HIDDEN);
- }
- if(ac_status.power == 1) {
- lv_obj_remove_flag(ui->screen_main_cont_open, LV_OBJ_FLAG_HIDDEN);
- lv_obj_add_flag(ui->screen_main_cont_close, LV_OBJ_FLAG_HIDDEN);
- } else {
- lv_obj_remove_flag(ui->screen_main_cont_close, LV_OBJ_FLAG_HIDDEN);
- lv_obj_add_flag(ui->screen_main_cont_open, LV_OBJ_FLAG_HIDDEN);
- }
- //Update current screen layout.
- lv_obj_update_layout(ui->screen_main);
- //Init events for screen.
- events_init_screen_main(ui);
- }
|