12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058 |
- /*
- * 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 "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_lab_err
- ui->screen_main_lab_err = lv_label_create(ui->screen_main);
- lv_obj_set_pos(ui->screen_main_lab_err, 329, 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_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_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, 362, 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_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_label_wifi
- ui->screen_main_label_wifi = lv_label_create(ui->screen_main);
- lv_obj_set_pos(ui->screen_main_label_wifi, 432, 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_label_19
- ui->screen_main_label_19 = lv_label_create(ui->screen_main);
- lv_obj_set_pos(ui->screen_main_label_19, 379, 40);
- 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_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_lab_cloud1
- ui->screen_main_lab_cloud1 = lv_label_create(ui->screen_main);
- lv_obj_set_pos(ui->screen_main_lab_cloud1, 395, 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);
- //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);
- }
|