/* * 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 #include "gui_guider.h" #include "events_init.h" #include "widgets_init.h" #include "custom.h" #include "xf_controller.h" void set_xf_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 NXH: lv_obj_add_state(ui->screen_main_imgbtn_nxh, LV_STATE_CHECKED); break; case JS: lv_obj_add_state(ui->screen_main_imgbtn_js, LV_STATE_CHECKED); break; case XF: lv_obj_add_state(ui->screen_main_imgbtn_xf, LV_STATE_CHECKED); break; case AUTO: lv_obj_add_state(ui->screen_main_imgbtn_auto, 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, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_src(ui->screen_main, &_back_RGB565A8_480x480, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_opa(ui->screen_main, 255, 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_arc_AIQ ui->screen_main_arc_AIQ = lv_arc_create(ui->screen_main); lv_obj_set_pos(ui->screen_main_arc_AIQ, 78, 46); lv_obj_set_size(ui->screen_main_arc_AIQ, 326, 320); lv_arc_set_mode(ui->screen_main_arc_AIQ, LV_ARC_MODE_NORMAL); lv_arc_set_range(ui->screen_main_arc_AIQ, 0, 100); lv_arc_set_bg_angles(ui->screen_main_arc_AIQ, 180, 0); lv_arc_set_value(ui->screen_main_arc_AIQ, 100); lv_arc_set_rotation(ui->screen_main_arc_AIQ, 0); //Write style for screen_main_arc_AIQ, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->screen_main_arc_AIQ, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_width(ui->screen_main_arc_AIQ, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_arc_width(ui->screen_main_arc_AIQ, 12, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_arc_opa(ui->screen_main_arc_AIQ, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_arc_color(ui->screen_main_arc_AIQ, lv_color_hex(0xe6e6e6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_arc_rounded(ui->screen_main_arc_AIQ, true, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_main_arc_AIQ, 6, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_main_arc_AIQ, 20, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_main_arc_AIQ, 20, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_main_arc_AIQ, 20, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_main_arc_AIQ, 20, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_main_arc_AIQ, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for screen_main_arc_AIQ, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT. lv_obj_set_style_arc_width(ui->screen_main_arc_AIQ, 12, LV_PART_INDICATOR|LV_STATE_DEFAULT); lv_obj_set_style_arc_opa(ui->screen_main_arc_AIQ, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT); lv_obj_set_style_arc_color(ui->screen_main_arc_AIQ, lv_color_hex(0x2FDA64), LV_PART_INDICATOR|LV_STATE_DEFAULT); lv_obj_set_style_arc_rounded(ui->screen_main_arc_AIQ, true, LV_PART_INDICATOR|LV_STATE_DEFAULT); //Write style for screen_main_arc_AIQ, Part: LV_PART_KNOB, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->screen_main_arc_AIQ, 0, LV_PART_KNOB|LV_STATE_DEFAULT); lv_obj_set_style_pad_all(ui->screen_main_arc_AIQ, 5, LV_PART_KNOB|LV_STATE_DEFAULT); //Write codes screen_main_label_temp ui->screen_main_label_temp = lv_label_create(ui->screen_main); lv_obj_set_pos(ui->screen_main_label_temp, 75, 290); lv_obj_set_size(ui->screen_main_label_temp, 65, 30); lv_label_set_text(ui->screen_main_label_temp, "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(0xFFFFFF), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_main_label_temp, &lv_font_Alibaba_PuHuiTi_Medium_26, 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_RIGHT, 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_hum_vul2 ui->screen_main_label_hum_vul2 = lv_label_create(ui->screen_main); lv_obj_set_pos(ui->screen_main_label_hum_vul2, 175, 290); lv_obj_set_size(ui->screen_main_label_hum_vul2, 69, 25); lv_label_set_text(ui->screen_main_label_hum_vul2, "0"); 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(0xFFFFFF), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_main_label_hum_vul2, &lv_font_Alibaba_PuHuiTi_Medium_26, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_main_label_hum_vul2, 255, 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_RIGHT, 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_co2 ui->screen_main_label_co2 = lv_label_create(ui->screen_main); lv_obj_set_pos(ui->screen_main_label_co2, 291, 290); lv_obj_set_size(ui->screen_main_label_co2, 69, 26); lv_label_set_text(ui->screen_main_label_co2, "0"); lv_label_set_long_mode(ui->screen_main_label_co2, LV_LABEL_LONG_WRAP); //Write style for screen_main_label_co2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_main_label_co2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_main_label_co2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_main_label_co2, lv_color_hex(0xFFFFFF), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_main_label_co2, &lv_font_Alibaba_PuHuiTi_Medium_26, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_main_label_co2, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_main_label_co2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_main_label_co2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_main_label_co2, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_main_label_co2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_main_label_co2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_main_label_co2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_main_label_co2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_main_label_co2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_main_label_co2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_main_label_6 ui->screen_main_label_6 = lv_label_create(ui->screen_main); lv_obj_set_pos(ui->screen_main_label_6, 360, 299); lv_obj_set_size(ui->screen_main_label_6, 66, 18); lv_label_set_text(ui->screen_main_label_6, "ppm"); lv_label_set_long_mode(ui->screen_main_label_6, LV_LABEL_LONG_WRAP); //Write style for screen_main_label_6, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_main_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_main_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_main_label_6, lv_color_hex(0x8a90a7), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_main_label_6, &lv_font_Alibaba_PuHuiTi_Medium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_main_label_6, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_main_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_main_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_main_label_6, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_main_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_main_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_main_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_main_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_main_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_main_label_6, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_main_label_7 ui->screen_main_label_7 = lv_label_create(ui->screen_main); lv_obj_set_pos(ui->screen_main_label_7, 244, 299); lv_obj_set_size(ui->screen_main_label_7, 66, 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(0x8a90a7), 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_label_8 ui->screen_main_label_8 = lv_label_create(ui->screen_main); lv_obj_set_pos(ui->screen_main_label_8, 140, 299); lv_obj_set_size(ui->screen_main_label_8, 66, 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(0x8a90a7), 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_9 ui->screen_main_label_9 = lv_label_create(ui->screen_main); lv_obj_set_pos(ui->screen_main_label_9, 108, 328); lv_obj_set_size(ui->screen_main_label_9, 40, 26); 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(0x8a90a7), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_main_label_9, &lv_font_iconfont_24, 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_10 ui->screen_main_label_10 = lv_label_create(ui->screen_main); lv_obj_set_pos(ui->screen_main_label_10, 225, 328); lv_obj_set_size(ui->screen_main_label_10, 36, 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(0x8a90a7), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_main_label_10, &lv_font_iconfont_24, 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_11 ui->screen_main_label_11 = lv_label_create(ui->screen_main); lv_obj_set_pos(ui->screen_main_label_11, 323, 328); lv_obj_set_size(ui->screen_main_label_11, 53, 27); lv_label_set_text(ui->screen_main_label_11, "CO₂"); lv_label_set_long_mode(ui->screen_main_label_11, LV_LABEL_LONG_WRAP); //Write style for screen_main_label_11, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_main_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_main_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_main_label_11, lv_color_hex(0x8a90a7), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_main_label_11, &lv_font_Alibaba_PuHuiTi_Medium_18, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_main_label_11, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_main_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_main_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_main_label_11, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_main_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_main_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_main_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_main_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_main_label_11, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_main_label_11, 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, 129, 251); lv_obj_set_size(ui->screen_main_label_14, 127, 20); 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, 256, 251); lv_obj_set_size(ui->screen_main_label_lvxin, 127, 20); 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_AIQ_vul ui->screen_main_label_AIQ_vul = lv_label_create(ui->screen_main); lv_obj_set_pos(ui->screen_main_label_AIQ_vul, 179, 175); lv_obj_set_size(ui->screen_main_label_AIQ_vul, 95, 44); lv_label_set_text(ui->screen_main_label_AIQ_vul, "0"); lv_label_set_long_mode(ui->screen_main_label_AIQ_vul, LV_LABEL_LONG_WRAP); //Write style for screen_main_label_AIQ_vul, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_main_label_AIQ_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_main_label_AIQ_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_main_label_AIQ_vul, lv_color_hex(0xFFFFFF), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_main_label_AIQ_vul, &lv_font_Alibaba_PuHuiTi_Medium_48, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_main_label_AIQ_vul, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_main_label_AIQ_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_main_label_AIQ_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_main_label_AIQ_vul, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_main_label_AIQ_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_main_label_AIQ_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_main_label_AIQ_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_main_label_AIQ_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_main_label_AIQ_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_main_label_AIQ_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_main_label_17 ui->screen_main_label_17 = lv_label_create(ui->screen_main); lv_obj_set_pos(ui->screen_main_label_17, 274, 206); lv_obj_set_size(ui->screen_main_label_17, 66, 18); lv_label_set_text(ui->screen_main_label_17, "ug/m³"); lv_label_set_long_mode(ui->screen_main_label_17, LV_LABEL_LONG_WRAP); //Write style for screen_main_label_17, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_main_label_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_main_label_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_main_label_17, lv_color_hex(0x8a90a7), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_main_label_17, &lv_font_Alibaba_PuHuiTi_Medium_14, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_main_label_17, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_main_label_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_main_label_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_main_label_17, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_main_label_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_main_label_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_main_label_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_main_label_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_main_label_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_main_label_17, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_main_label_18 ui->screen_main_label_18 = lv_label_create(ui->screen_main); lv_obj_set_pos(ui->screen_main_label_18, 203, 132); lv_obj_set_size(ui->screen_main_label_18, 74, 26); lv_label_set_text(ui->screen_main_label_18, "PM2.5"); lv_label_set_long_mode(ui->screen_main_label_18, LV_LABEL_LONG_WRAP); //Write style for screen_main_label_18, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_main_label_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_main_label_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_main_label_18, lv_color_hex(0xFFFFFF), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_main_label_18, &lv_font_Alibaba_PuHuiTi_Medium_22, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_main_label_18, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_main_label_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_main_label_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_main_label_18, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_main_label_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_main_label_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_main_label_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_main_label_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_main_label_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_src(ui->screen_main_label_18, &_huise_RGB565A8_74x26, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_opa(ui->screen_main_label_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_main_label_18, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_main_label_AIQ_sign ui->screen_main_label_AIQ_sign = lv_label_create(ui->screen_main); lv_obj_set_pos(ui->screen_main_label_AIQ_sign, 157, 169); lv_obj_set_size(ui->screen_main_label_AIQ_sign, 30, 30); lv_label_set_text(ui->screen_main_label_AIQ_sign, ""); lv_label_set_long_mode(ui->screen_main_label_AIQ_sign, LV_LABEL_LONG_WRAP); //Write style for screen_main_label_AIQ_sign, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_main_label_AIQ_sign, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_main_label_AIQ_sign, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_main_label_AIQ_sign, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_main_label_AIQ_sign, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_main_label_AIQ_sign, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_main_label_AIQ_sign, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_main_label_AIQ_sign, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_main_label_AIQ_sign, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_main_label_AIQ_sign, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_main_label_AIQ_sign, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_main_label_AIQ_sign, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_main_label_AIQ_sign, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_main_label_AIQ_sign, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_src(ui->screen_main_label_AIQ_sign, &_you_RGB565A8_30x30, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_opa(ui->screen_main_label_AIQ_sign, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_recolor_opa(ui->screen_main_label_AIQ_sign, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_main_label_AIQ_sign, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_main_cont_mode ui->screen_main_cont_mode = lv_obj_create(ui->screen_main); lv_obj_set_pos(ui->screen_main_cont_mode, 40, 370); lv_obj_set_size(ui->screen_main_cont_mode, 420, 109); lv_obj_set_scrollbar_mode(ui->screen_main_cont_mode, LV_SCROLLBAR_MODE_OFF); //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_auto ui->screen_main_imgbtn_auto = lv_imagebutton_create(ui->screen_main_cont_mode); lv_obj_set_pos(ui->screen_main_imgbtn_auto, 321, 0); lv_obj_set_size(ui->screen_main_imgbtn_auto, 80, 80); lv_obj_add_flag(ui->screen_main_imgbtn_auto, LV_OBJ_FLAG_EVENT_BUBBLE); lv_obj_add_flag(ui->screen_main_imgbtn_auto, LV_OBJ_FLAG_CHECKABLE); lv_imagebutton_set_src(ui->screen_main_imgbtn_auto, LV_IMAGEBUTTON_STATE_RELEASED, &_auto_off_RGB565A8_80x80, NULL, NULL); lv_imagebutton_set_src(ui->screen_main_imgbtn_auto, LV_IMAGEBUTTON_STATE_PRESSED, &_auto_on_RGB565A8_80x80, NULL, NULL); lv_imagebutton_set_src(ui->screen_main_imgbtn_auto, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_auto_on_RGB565A8_80x80, NULL, NULL); ui->screen_main_imgbtn_auto_label = lv_label_create(ui->screen_main_imgbtn_auto); lv_label_set_text(ui->screen_main_imgbtn_auto_label, ""); lv_label_set_long_mode(ui->screen_main_imgbtn_auto_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->screen_main_imgbtn_auto_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->screen_main_imgbtn_auto, 0, LV_STATE_DEFAULT); //Write style for screen_main_imgbtn_auto, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_text_color(ui->screen_main_imgbtn_auto, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_main_imgbtn_auto, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_main_imgbtn_auto, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_main_imgbtn_auto, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_auto, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for screen_main_imgbtn_auto, Part: LV_PART_MAIN, State: LV_STATE_PRESSED. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_auto, 0, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_image_opa(ui->screen_main_imgbtn_auto, 255, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_color(ui->screen_main_imgbtn_auto, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_font(ui->screen_main_imgbtn_auto, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_opa(ui->screen_main_imgbtn_auto, 255, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_auto, 0, LV_PART_MAIN|LV_STATE_PRESSED); //Write style for screen_main_imgbtn_auto, Part: LV_PART_MAIN, State: LV_STATE_CHECKED. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_auto, 0, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_image_opa(ui->screen_main_imgbtn_auto, 255, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_color(ui->screen_main_imgbtn_auto, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_font(ui->screen_main_imgbtn_auto, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_opa(ui->screen_main_imgbtn_auto, 255, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_auto, 0, LV_PART_MAIN|LV_STATE_CHECKED); //Write style for screen_main_imgbtn_auto, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_auto, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED); lv_obj_set_style_image_opa(ui->screen_main_imgbtn_auto, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED); //Write codes screen_main_imgbtn_xf ui->screen_main_imgbtn_xf = lv_imagebutton_create(ui->screen_main_cont_mode); lv_obj_set_pos(ui->screen_main_imgbtn_xf, 214, -1); lv_obj_set_size(ui->screen_main_imgbtn_xf, 80, 80); lv_obj_add_flag(ui->screen_main_imgbtn_xf, LV_OBJ_FLAG_EVENT_BUBBLE); lv_obj_add_flag(ui->screen_main_imgbtn_xf, LV_OBJ_FLAG_CHECKABLE); lv_imagebutton_set_src(ui->screen_main_imgbtn_xf, LV_IMAGEBUTTON_STATE_RELEASED, &_xf_off_RGB565A8_80x80, NULL, NULL); lv_imagebutton_set_src(ui->screen_main_imgbtn_xf, LV_IMAGEBUTTON_STATE_PRESSED, &_xf_on_RGB565A8_80x80, NULL, NULL); lv_imagebutton_set_src(ui->screen_main_imgbtn_xf, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_xf_on_RGB565A8_80x80, NULL, NULL); ui->screen_main_imgbtn_xf_label = lv_label_create(ui->screen_main_imgbtn_xf); lv_label_set_text(ui->screen_main_imgbtn_xf_label, ""); lv_label_set_long_mode(ui->screen_main_imgbtn_xf_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->screen_main_imgbtn_xf_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->screen_main_imgbtn_xf, 0, LV_STATE_DEFAULT); //Write style for screen_main_imgbtn_xf, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_text_color(ui->screen_main_imgbtn_xf, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_main_imgbtn_xf, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_main_imgbtn_xf, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_main_imgbtn_xf, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_xf, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for screen_main_imgbtn_xf, Part: LV_PART_MAIN, State: LV_STATE_PRESSED. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_xf, 0, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_image_opa(ui->screen_main_imgbtn_xf, 255, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_color(ui->screen_main_imgbtn_xf, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_font(ui->screen_main_imgbtn_xf, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_opa(ui->screen_main_imgbtn_xf, 255, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_xf, 0, LV_PART_MAIN|LV_STATE_PRESSED); //Write style for screen_main_imgbtn_xf, Part: LV_PART_MAIN, State: LV_STATE_CHECKED. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_xf, 0, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_image_opa(ui->screen_main_imgbtn_xf, 255, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_color(ui->screen_main_imgbtn_xf, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_font(ui->screen_main_imgbtn_xf, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_opa(ui->screen_main_imgbtn_xf, 255, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_xf, 0, LV_PART_MAIN|LV_STATE_CHECKED); //Write style for screen_main_imgbtn_xf, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_xf, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED); lv_obj_set_style_image_opa(ui->screen_main_imgbtn_xf, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED); //Write codes screen_main_imgbtn_js ui->screen_main_imgbtn_js = lv_imagebutton_create(ui->screen_main_cont_mode); lv_obj_set_pos(ui->screen_main_imgbtn_js, 107, 0); lv_obj_set_size(ui->screen_main_imgbtn_js, 80, 80); lv_obj_add_flag(ui->screen_main_imgbtn_js, LV_OBJ_FLAG_EVENT_BUBBLE); lv_obj_add_flag(ui->screen_main_imgbtn_js, LV_OBJ_FLAG_CHECKABLE); lv_imagebutton_set_src(ui->screen_main_imgbtn_js, LV_IMAGEBUTTON_STATE_RELEASED, &_js_off_RGB565A8_80x80, NULL, NULL); lv_imagebutton_set_src(ui->screen_main_imgbtn_js, LV_IMAGEBUTTON_STATE_PRESSED, &_js_on_RGB565A8_80x80, NULL, NULL); lv_imagebutton_set_src(ui->screen_main_imgbtn_js, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_js_on_RGB565A8_80x80, NULL, NULL); ui->screen_main_imgbtn_js_label = lv_label_create(ui->screen_main_imgbtn_js); lv_label_set_text(ui->screen_main_imgbtn_js_label, ""); lv_label_set_long_mode(ui->screen_main_imgbtn_js_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->screen_main_imgbtn_js_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->screen_main_imgbtn_js, 0, LV_STATE_DEFAULT); //Write style for screen_main_imgbtn_js, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_text_color(ui->screen_main_imgbtn_js, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_main_imgbtn_js, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_main_imgbtn_js, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_main_imgbtn_js, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_js, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for screen_main_imgbtn_js, Part: LV_PART_MAIN, State: LV_STATE_PRESSED. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_js, 0, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_image_opa(ui->screen_main_imgbtn_js, 255, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_color(ui->screen_main_imgbtn_js, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_font(ui->screen_main_imgbtn_js, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_opa(ui->screen_main_imgbtn_js, 255, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_js, 0, LV_PART_MAIN|LV_STATE_PRESSED); //Write style for screen_main_imgbtn_js, Part: LV_PART_MAIN, State: LV_STATE_CHECKED. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_js, 0, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_image_opa(ui->screen_main_imgbtn_js, 255, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_color(ui->screen_main_imgbtn_js, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_font(ui->screen_main_imgbtn_js, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_opa(ui->screen_main_imgbtn_js, 255, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_js, 0, LV_PART_MAIN|LV_STATE_CHECKED); //Write style for screen_main_imgbtn_js, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_js, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED); lv_obj_set_style_image_opa(ui->screen_main_imgbtn_js, 255, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED); //Write codes screen_main_imgbtn_nxh ui->screen_main_imgbtn_nxh = lv_imagebutton_create(ui->screen_main_cont_mode); lv_obj_set_pos(ui->screen_main_imgbtn_nxh, 0, 0); lv_obj_set_size(ui->screen_main_imgbtn_nxh, 80, 80); lv_obj_add_flag(ui->screen_main_imgbtn_nxh, LV_OBJ_FLAG_EVENT_BUBBLE); lv_obj_add_flag(ui->screen_main_imgbtn_nxh, LV_OBJ_FLAG_CHECKABLE); lv_imagebutton_set_src(ui->screen_main_imgbtn_nxh, LV_IMAGEBUTTON_STATE_RELEASED, &_nxh_off_RGB565A8_80x80, NULL, NULL); lv_imagebutton_set_src(ui->screen_main_imgbtn_nxh, LV_IMAGEBUTTON_STATE_PRESSED, &_nxh_on_RGB565A8_80x80, NULL, NULL); lv_imagebutton_set_src(ui->screen_main_imgbtn_nxh, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_nxh_on_RGB565A8_80x80, NULL, NULL); ui->screen_main_imgbtn_nxh_label = lv_label_create(ui->screen_main_imgbtn_nxh); lv_label_set_text(ui->screen_main_imgbtn_nxh_label, ""); lv_label_set_long_mode(ui->screen_main_imgbtn_nxh_label, LV_LABEL_LONG_WRAP); lv_obj_align(ui->screen_main_imgbtn_nxh_label, LV_ALIGN_CENTER, 0, 0); lv_obj_set_style_pad_all(ui->screen_main_imgbtn_nxh, 0, LV_STATE_DEFAULT); //Write style for screen_main_imgbtn_nxh, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_text_color(ui->screen_main_imgbtn_nxh, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_main_imgbtn_nxh, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_main_imgbtn_nxh, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_main_imgbtn_nxh, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_nxh, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for screen_main_imgbtn_nxh, Part: LV_PART_MAIN, State: LV_STATE_PRESSED. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_nxh, 0, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_image_opa(ui->screen_main_imgbtn_nxh, 255, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_color(ui->screen_main_imgbtn_nxh, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_font(ui->screen_main_imgbtn_nxh, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_text_opa(ui->screen_main_imgbtn_nxh, 255, LV_PART_MAIN|LV_STATE_PRESSED); lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_nxh, 0, LV_PART_MAIN|LV_STATE_PRESSED); //Write style for screen_main_imgbtn_nxh, Part: LV_PART_MAIN, State: LV_STATE_CHECKED. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_nxh, 0, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_image_opa(ui->screen_main_imgbtn_nxh, 255, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_color(ui->screen_main_imgbtn_nxh, lv_color_hex(0xFF33FF), LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_font(ui->screen_main_imgbtn_nxh, &lv_font_montserratMedium_12, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_text_opa(ui->screen_main_imgbtn_nxh, 255, LV_PART_MAIN|LV_STATE_CHECKED); lv_obj_set_style_shadow_width(ui->screen_main_imgbtn_nxh, 0, LV_PART_MAIN|LV_STATE_CHECKED); //Write style for screen_main_imgbtn_nxh, Part: LV_PART_MAIN, State: LV_IMAGEBUTTON_STATE_RELEASED. lv_obj_set_style_image_recolor_opa(ui->screen_main_imgbtn_nxh, 0, LV_PART_MAIN|LV_IMAGEBUTTON_STATE_RELEASED); lv_obj_set_style_image_opa(ui->screen_main_imgbtn_nxh, 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); lv_obj_set_pos(ui->screen_main_imgbtn_power, 35, 40); lv_obj_set_size(ui->screen_main_imgbtn_power, 40, 40); 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_40x40, NULL, NULL); lv_imagebutton_set_src(ui->screen_main_imgbtn_power, LV_IMAGEBUTTON_STATE_PRESSED, &_power_open_RGB565A8_40x40, NULL, NULL); lv_imagebutton_set_src(ui->screen_main_imgbtn_power, LV_IMAGEBUTTON_STATE_CHECKED_RELEASED, &_power_open_RGB565A8_40x40, 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_cont_speedset ui->screen_main_cont_speedset = lv_obj_create(ui->screen_main); lv_obj_set_pos(ui->screen_main_cont_speedset, 35, 95); lv_obj_set_size(ui->screen_main_cont_speedset, 43, 248); lv_obj_set_scrollbar_mode(ui->screen_main_cont_speedset, LV_SCROLLBAR_MODE_OFF); //Write style for screen_main_cont_speedset, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_main_cont_speedset, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_main_cont_speedset, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_main_cont_speedset, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_main_cont_speedset, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_main_cont_speedset, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_main_cont_speedset, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_main_cont_speedset, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_main_cont_speedset, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_main_cont_speedset, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_main_cont_speedset, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_main_cont_speedset, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_main_slider_speedSet_sign ui->screen_main_slider_speedSet_sign = lv_slider_create(ui->screen_main_cont_speedset); lv_obj_set_pos(ui->screen_main_slider_speedSet_sign, 0, 0); lv_obj_set_size(ui->screen_main_slider_speedSet_sign, 40, 245); lv_slider_set_range(ui->screen_main_slider_speedSet_sign, 0, 100); lv_slider_set_mode(ui->screen_main_slider_speedSet_sign, LV_SLIDER_MODE_NORMAL); lv_slider_set_value(ui->screen_main_slider_speedSet_sign, 40, LV_ANIM_OFF); //Write style for screen_main_slider_speedSet_sign, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->screen_main_slider_speedSet_sign, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->screen_main_slider_speedSet_sign, lv_color_hex(0x565B6E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->screen_main_slider_speedSet_sign, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_main_slider_speedSet_sign, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_outline_width(ui->screen_main_slider_speedSet_sign, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_main_slider_speedSet_sign, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for screen_main_slider_speedSet_sign, Part: LV_PART_MAIN, State: LV_STATE_FOCUSED. lv_obj_set_style_shadow_width(ui->screen_main_slider_speedSet_sign, 0, LV_PART_MAIN|LV_STATE_FOCUSED); //Write style for screen_main_slider_speedSet_sign, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->screen_main_slider_speedSet_sign, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->screen_main_slider_speedSet_sign, lv_color_hex(0x0ACF7A), LV_PART_INDICATOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->screen_main_slider_speedSet_sign, LV_GRAD_DIR_NONE, LV_PART_INDICATOR|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_main_slider_speedSet_sign, 6, LV_PART_INDICATOR|LV_STATE_DEFAULT); //Write style for screen_main_slider_speedSet_sign, Part: LV_PART_KNOB, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->screen_main_slider_speedSet_sign, 0, LV_PART_KNOB|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_main_slider_speedSet_sign, 50, LV_PART_KNOB|LV_STATE_DEFAULT); //Write codes screen_main_line_2 ui->screen_main_line_2 = lv_line_create(ui->screen_main_cont_speedset); lv_obj_set_pos(ui->screen_main_line_2, 1, 148); lv_obj_set_size(ui->screen_main_line_2, 37, 48); static lv_point_precise_t screen_main_line_2[] = {{0, 0},{180, 0}}; lv_line_set_points(ui->screen_main_line_2, screen_main_line_2, 2); //Write style for screen_main_line_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_line_width(ui->screen_main_line_2, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_line_color(ui->screen_main_line_2, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_line_opa(ui->screen_main_line_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_line_rounded(ui->screen_main_line_2, true, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_main_line_1 ui->screen_main_line_1 = lv_line_create(ui->screen_main_cont_speedset); lv_obj_set_pos(ui->screen_main_line_1, 1, 199); lv_obj_set_size(ui->screen_main_line_1, 37, 48); static lv_point_precise_t screen_main_line_1[] = {{0, 0},{180, 0}}; lv_line_set_points(ui->screen_main_line_1, screen_main_line_1, 2); //Write style for screen_main_line_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_line_width(ui->screen_main_line_1, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_line_color(ui->screen_main_line_1, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_line_opa(ui->screen_main_line_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_line_rounded(ui->screen_main_line_1, true, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_main_line_3 ui->screen_main_line_3 = lv_line_create(ui->screen_main_cont_speedset); lv_obj_set_pos(ui->screen_main_line_3, 1, 48); lv_obj_set_size(ui->screen_main_line_3, 37, 48); static lv_point_precise_t screen_main_line_3[] = {{0, 0},{180, 0}}; lv_line_set_points(ui->screen_main_line_3, screen_main_line_3, 2); //Write style for screen_main_line_3, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_line_width(ui->screen_main_line_3, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_line_color(ui->screen_main_line_3, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_line_opa(ui->screen_main_line_3, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_line_rounded(ui->screen_main_line_3, true, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_main_line_5 ui->screen_main_line_5 = lv_line_create(ui->screen_main_cont_speedset); lv_obj_set_pos(ui->screen_main_line_5, 1, 97); lv_obj_set_size(ui->screen_main_line_5, 37, 48); static lv_point_precise_t screen_main_line_5[] = {{0, 0},{180, 0}}; lv_line_set_points(ui->screen_main_line_5, screen_main_line_5, 2); //Write style for screen_main_line_5, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_line_width(ui->screen_main_line_5, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_line_color(ui->screen_main_line_5, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_line_opa(ui->screen_main_line_5, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_line_rounded(ui->screen_main_line_5, true, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_main_label_spedSet_vul ui->screen_main_label_spedSet_vul = lv_label_create(ui->screen_main_cont_speedset); lv_obj_set_pos(ui->screen_main_label_spedSet_vul, 10, 25); lv_obj_set_size(ui->screen_main_label_spedSet_vul, 24, 14); lv_label_set_text(ui->screen_main_label_spedSet_vul, "2档"); lv_label_set_long_mode(ui->screen_main_label_spedSet_vul, LV_LABEL_LONG_WRAP); //Write style for screen_main_label_spedSet_vul, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_main_label_spedSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_main_label_spedSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_main_label_spedSet_vul, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_main_label_spedSet_vul, &lv_font_Alibaba_PuHuiTi_Medium_12, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_main_label_spedSet_vul, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_main_label_spedSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_main_label_spedSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_main_label_spedSet_vul, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_main_label_spedSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_main_label_spedSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_main_label_spedSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_main_label_spedSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_main_label_spedSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_main_label_spedSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_main_label_1 ui->screen_main_label_1 = lv_label_create(ui->screen_main_cont_speedset); lv_obj_set_pos(ui->screen_main_label_1, 10, 215); lv_obj_set_size(ui->screen_main_label_1, 20, 20); lv_label_set_text(ui->screen_main_label_1, ""); lv_label_set_long_mode(ui->screen_main_label_1, LV_LABEL_LONG_WRAP); //Write style for screen_main_label_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_main_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_main_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_main_label_1, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_main_label_1, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_main_label_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_main_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_main_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_main_label_1, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_main_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_main_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_main_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_main_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_main_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_src(ui->screen_main_label_1, &_speed_RGB565A8_20x20, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_opa(ui->screen_main_label_1, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_recolor_opa(ui->screen_main_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_main_label_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_main_cont_humSet ui->screen_main_cont_humSet = lv_obj_create(ui->screen_main); lv_obj_set_pos(ui->screen_main_cont_humSet, 405, 95); lv_obj_set_size(ui->screen_main_cont_humSet, 43, 248); lv_obj_set_scrollbar_mode(ui->screen_main_cont_humSet, LV_SCROLLBAR_MODE_OFF); //Write style for screen_main_cont_humSet, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_main_cont_humSet, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_main_cont_humSet, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_main_cont_humSet, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_main_cont_humSet, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_main_cont_humSet, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_main_cont_humSet, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_main_cont_humSet, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_main_cont_humSet, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_main_cont_humSet, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_main_cont_humSet, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_main_cont_humSet, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_main_slider_humSet_sign ui->screen_main_slider_humSet_sign = lv_slider_create(ui->screen_main_cont_humSet); lv_obj_set_pos(ui->screen_main_slider_humSet_sign, 0, 0); lv_obj_set_size(ui->screen_main_slider_humSet_sign, 40, 245); lv_slider_set_range(ui->screen_main_slider_humSet_sign, 30, 70); lv_slider_set_mode(ui->screen_main_slider_humSet_sign, LV_SLIDER_MODE_NORMAL); lv_slider_set_value(ui->screen_main_slider_humSet_sign, 50, LV_ANIM_OFF); //Write style for screen_main_slider_humSet_sign, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->screen_main_slider_humSet_sign, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->screen_main_slider_humSet_sign, lv_color_hex(0x565B6E), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->screen_main_slider_humSet_sign, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_main_slider_humSet_sign, 10, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_outline_width(ui->screen_main_slider_humSet_sign, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_main_slider_humSet_sign, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write style for screen_main_slider_humSet_sign, Part: LV_PART_MAIN, State: LV_STATE_FOCUSED. lv_obj_set_style_shadow_width(ui->screen_main_slider_humSet_sign, 0, LV_PART_MAIN|LV_STATE_FOCUSED); //Write style for screen_main_slider_humSet_sign, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->screen_main_slider_humSet_sign, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_color(ui->screen_main_slider_humSet_sign, lv_color_hex(0x2195f6), LV_PART_INDICATOR|LV_STATE_DEFAULT); lv_obj_set_style_bg_grad_dir(ui->screen_main_slider_humSet_sign, LV_GRAD_DIR_NONE, LV_PART_INDICATOR|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_main_slider_humSet_sign, 6, LV_PART_INDICATOR|LV_STATE_DEFAULT); //Write style for screen_main_slider_humSet_sign, Part: LV_PART_KNOB, State: LV_STATE_DEFAULT. lv_obj_set_style_bg_opa(ui->screen_main_slider_humSet_sign, 0, LV_PART_KNOB|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_main_slider_humSet_sign, 50, LV_PART_KNOB|LV_STATE_DEFAULT); //Write codes screen_main_label_2 ui->screen_main_label_2 = lv_label_create(ui->screen_main_cont_humSet); lv_obj_set_pos(ui->screen_main_label_2, 10, 215); lv_obj_set_size(ui->screen_main_label_2, 20, 20); lv_label_set_text(ui->screen_main_label_2, ""); lv_label_set_long_mode(ui->screen_main_label_2, LV_LABEL_LONG_WRAP); //Write style for screen_main_label_2, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_main_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_main_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_main_label_2, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_main_label_2, &lv_font_montserratMedium_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_main_label_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_main_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_main_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_main_label_2, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_main_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_main_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_main_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_main_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_main_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_src(ui->screen_main_label_2, &_hum_RGB565A8_20x20, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_opa(ui->screen_main_label_2, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_image_recolor_opa(ui->screen_main_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_main_label_2, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_main_label_humSet_vul ui->screen_main_label_humSet_vul = lv_label_create(ui->screen_main_cont_humSet); lv_obj_set_pos(ui->screen_main_label_humSet_vul, -2, 25); lv_obj_set_size(ui->screen_main_label_humSet_vul, 36, 14); lv_label_set_text(ui->screen_main_label_humSet_vul, "24%"); lv_label_set_long_mode(ui->screen_main_label_humSet_vul, LV_LABEL_LONG_WRAP); //Write style for screen_main_label_humSet_vul, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_main_label_humSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_main_label_humSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_main_label_humSet_vul, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_main_label_humSet_vul, &lv_font_Alibaba_PuHuiTi_Medium_12, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_main_label_humSet_vul, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_main_label_humSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_main_label_humSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_main_label_humSet_vul, LV_TEXT_ALIGN_RIGHT, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_main_label_humSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_main_label_humSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_main_label_humSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_main_label_humSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_main_label_humSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_main_label_humSet_vul, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_main_cont_top ui->screen_main_cont_top = lv_obj_create(ui->screen_main); lv_obj_set_pos(ui->screen_main_cont_top, -20, 5); lv_obj_set_size(ui->screen_main_cont_top, 469, 33); lv_obj_set_scrollbar_mode(ui->screen_main_cont_top, LV_SCROLLBAR_MODE_OFF); lv_obj_add_flag(ui->screen_main_cont_top, LV_OBJ_FLAG_SCROLLABLE); //Write style for screen_main_cont_top, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_main_cont_top, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_main_cont_top, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_main_cont_top, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_main_cont_top, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_main_cont_top, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_main_cont_top, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_main_cont_top, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_main_cont_top, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_main_cont_top, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_main_cont_top, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_main_cont_top, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_main_lab_err ui->screen_main_lab_err = lv_label_create(ui->screen_main_cont_top); lv_obj_set_pos(ui->screen_main_lab_err, 376, 1); lv_obj_set_size(ui->screen_main_lab_err, 26, 21); 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_16, 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_lab_485_err ui->screen_main_lab_485_err = lv_label_create(ui->screen_main_cont_top); lv_obj_set_pos(ui->screen_main_lab_485_err, 399, 1); lv_obj_set_size(ui->screen_main_lab_485_err, 26, 21); 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_16, 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_label_wifi ui->screen_main_label_wifi = lv_label_create(ui->screen_main_cont_top); lv_obj_set_pos(ui->screen_main_label_wifi, 445, -2); lv_obj_set_size(ui->screen_main_label_wifi, 20, 21); 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, &_WiFizhong_RGB565A8_20x21, 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_cloud ui->screen_main_lab_cloud = lv_label_create(ui->screen_main_cont_top); lv_obj_set_pos(ui->screen_main_lab_cloud, 422, 1); lv_obj_set_size(ui->screen_main_lab_cloud, 26, 21); lv_obj_add_flag(ui->screen_main_lab_cloud, LV_OBJ_FLAG_HIDDEN); lv_label_set_text(ui->screen_main_lab_cloud, ""); lv_label_set_long_mode(ui->screen_main_lab_cloud, LV_LABEL_LONG_WRAP); //Write style for screen_main_lab_cloud, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_main_lab_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_main_lab_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_color(ui->screen_main_lab_cloud, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_font(ui->screen_main_lab_cloud, &lv_font_iconfont_16, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_opa(ui->screen_main_lab_cloud, 255, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_letter_space(ui->screen_main_lab_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_line_space(ui->screen_main_lab_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_text_align(ui->screen_main_lab_cloud, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_main_lab_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_main_lab_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_main_lab_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_main_lab_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_main_lab_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_main_lab_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //Write codes screen_main_cont_turn_off ui->screen_main_cont_turn_off = lv_obj_create(ui->screen_main); lv_obj_set_pos(ui->screen_main_cont_turn_off, 5, 25); lv_obj_set_size(ui->screen_main_cont_turn_off, 464, 432); lv_obj_set_scrollbar_mode(ui->screen_main_cont_turn_off, LV_SCROLLBAR_MODE_OFF); lv_obj_add_flag(ui->screen_main_cont_turn_off, LV_OBJ_FLAG_HIDDEN); //Write style for screen_main_cont_turn_off, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT. lv_obj_set_style_border_width(ui->screen_main_cont_turn_off, 2, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_opa(ui->screen_main_cont_turn_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_color(ui->screen_main_cont_turn_off, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_border_side(ui->screen_main_cont_turn_off, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_radius(ui->screen_main_cont_turn_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_bg_opa(ui->screen_main_cont_turn_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_top(ui->screen_main_cont_turn_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_bottom(ui->screen_main_cont_turn_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_left(ui->screen_main_cont_turn_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_pad_right(ui->screen_main_cont_turn_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT); lv_obj_set_style_shadow_width(ui->screen_main_cont_turn_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT); //The custom code of screen_main. lv_obj_clear_flag(ui->screen_main_arc_AIQ, LV_OBJ_FLAG_CLICKABLE); lv_arc_set_range(ui->screen_main_arc_AIQ, 0, 500); lv_arc_set_value(ui->screen_main_arc_AIQ, 500); lv_obj_remove_flag(ui->screen_main_slider_humSet_sign, LV_OBJ_FLAG_GESTURE_BUBBLE); lv_obj_remove_flag(ui->screen_main_slider_speedSet_sign, LV_OBJ_FLAG_GESTURE_BUBBLE); lv_label_set_text_fmt(ui->screen_main_label_humSet_vul, "%d%%", xf_status.set_max_hum); lv_slider_set_value(ui->screen_main_slider_speedSet_sign, xf_status.fan_speed*20, LV_ANIM_ON); lv_label_set_text_fmt(ui->screen_main_label_spedSet_vul, "%d档",xf_status.fan_speed); lv_slider_set_value(ui->screen_main_slider_humSet_sign, xf_status.set_max_hum, LV_ANIM_ON); set_xf_mode(ui, xf_status.mode); xf_set_power(true); // 设置电源状态 lv_obj_add_state(ui->screen_main_imgbtn_power, xf_status.power == 1 ? LV_STATE_CHECKED : LV_STATE_DEFAULT); //Update current screen layout. lv_obj_update_layout(ui->screen_main); //Init events for screen. events_init_screen_main(ui); }