#include "../../lv_examples.h" LV_IMG_DECLARE(guage_bg_bar); LV_EVENT_CB_DECLARE(reset_boost_peak); int NeedleVal = 253; float boostValue = 0.0; float boostPeak = 2.0; float egt = 520.0; float oilt = 102.0; float iat = 35.5; float afr = 14.7; float ign[5] = {0.0,0.0,0.0,0.0,0.0}; float ignPeak[5] = {0.0,0.0,0.0,0.0,0.0}; static void reset_boost_peak(lv_obj_t * obj, lv_event_t event) { if(event == LV_EVENT_CLICKED) { printf("Clicked\n"); boostPeak = 22.0; boostValue = -220.2; afr = 8.8; egt = 1200.2; oilt = 99.1; iat = - 9.1; ign[1] = -10.0; ignPeak[0] = -10.0; NeedleVal = 240; lv_ex_get_started_guage(); } } void lv_ex_get_started_guage(void) { lv_obj_t * obj0 = lv_obj_create(lv_scr_act(), NULL); lv_obj_set_width(obj0, 480); lv_obj_set_height(obj0, 320); lv_obj_set_x(obj0,0); lv_obj_set_y(obj0,0); static lv_color_t needleC[1]; // Gauge Needle Color needleC[0].full = 0xF840; //0x0272; static lv_color_t needleCenter; needleCenter.full = 0x39E7; static lv_color_t boostPeakText; boostPeakText.full = 0xF840; static lv_style_t style1; lv_style_init(&style1); lv_style_set_bg_color(&style1, LV_STATE_DEFAULT, LV_COLOR_BLACK); lv_obj_add_style(obj0,LV_OBJ_PART_MAIN, &style1); lv_style_set_border_width(&style1, LV_STATE_DEFAULT, 0); lv_style_set_radius(&style1, LV_STATE_DEFAULT, 0); static lv_style_t boostStyle; lv_style_init(&boostStyle); lv_style_set_text_color(&boostStyle, LV_STATE_DEFAULT, LV_COLOR_WHITE); // //lv_style_set_text_font(&text1, LV_STATE_DEFAULT, &eurostile_extended_black_24px); /*Set a larger font*/ lv_style_set_text_font(&boostStyle, LV_STATE_DEFAULT, &eurostile_extended_black_32px); /*Set a larger font*/ static lv_style_t boostPeakStyle; lv_style_init(&boostPeakStyle); if (boostPeak > 0){ lv_style_set_text_color(&boostPeakStyle, LV_STATE_DEFAULT, boostPeakText); // } else{lv_style_set_text_color(&boostPeakStyle, LV_STATE_DEFAULT, LV_COLOR_WHITE); } //lv_style_set_text_font(&text1, LV_STATE_DEFAULT, &eurostile_extended_black_24px); /*Set a larger font*/ lv_style_set_text_font(&boostPeakStyle, LV_STATE_DEFAULT, &eurostile_extended_black_26px); /*Set a larger font*/ static lv_style_t afrStyle; lv_style_init(&afrStyle); lv_style_set_text_color(&afrStyle, LV_STATE_DEFAULT, LV_COLOR_WHITE); // //lv_style_set_text_font(&text1, LV_STATE_DEFAULT, &eurostile_extended_black_24px); /*Set a larger font*/ lv_style_set_text_font(&afrStyle, LV_STATE_DEFAULT, &eurostile_extended_black_24px); /*Set a larger font*/ static lv_style_t paramStyle; lv_style_init(¶mStyle); lv_style_set_text_color(¶mStyle, LV_STATE_DEFAULT, LV_COLOR_WHITE); // //lv_style_set_text_font(&text1, LV_STATE_DEFAULT, &eurostile_extended_black_24px); /*Set a larger font*/ lv_style_set_text_font(¶mStyle, LV_STATE_DEFAULT, &eurostile_extended_black_18px); /*Set a larger font*/ static lv_style_t ignStyle; lv_style_init(&ignStyle); lv_style_set_text_color(&ignStyle, LV_STATE_DEFAULT, LV_COLOR_WHITE); // //lv_style_set_text_font(&text1, LV_STATE_DEFAULT, &eurostile_extended_black_24px); /*Set a larger font*/ lv_style_set_text_font(&ignStyle, LV_STATE_DEFAULT, &eurostile_extended_black_14px); /*Set a larger font*/ static lv_style_t ignPeakStyle; lv_style_init(&ignPeakStyle); lv_style_set_text_color(&ignPeakStyle, LV_STATE_DEFAULT, LV_COLOR_WHITE); // //lv_style_set_text_font(&text1, LV_STATE_DEFAULT, &eurostile_extended_black_24px); /*Set a larger font*/ lv_style_set_text_font(&ignPeakStyle, LV_STATE_DEFAULT, &eurostile_extended_black_12px); /*Set a larger font*/ static lv_style_t ignLed; lv_style_init(&ignLed); lv_style_set_bg_color(&ignLed, LV_LED_PART_MAIN, LV_COLOR_RED); // Set needle circle colo //lv_style_set_size(&ignLed, LV_LED_PART_MAIN, 6); // Ser needle Circle radiuos lv_style_set_border_color(&ignLed, LV_STATE_DEFAULT, LV_COLOR_RED); static lv_style_t needle1; lv_style_init(&needle1); lv_style_set_line_width(&needle1, LV_STATE_DEFAULT, 7); // Set needle width lv_style_set_line_rounded(&needle1, LV_STATE_DEFAULT, true); // Set needle end rounded corners lv_style_set_size(&needle1, LV_STATE_DEFAULT, 34); // Ser needle Circle radiuos lv_style_set_bg_color(&needle1, LV_STATE_DEFAULT, LV_COLOR_GRAY); // Set needle circle color //lv_style_set_border_color(&needle1, LV_STATE_DEFAULT, LV_COLOR_WHITE); //lv_style_set_border_width(&needle1, LV_STATE_DEFAULT, 2); //lv_style_set_border_opa(&needle1, LV_STATE_DEFAULT, LV_OPA_30); static lv_style_t settings_wheeel; lv_style_init(&settings_wheeel); lv_style_set_text_color(&settings_wheeel, LV_STATE_DEFAULT, LV_COLOR_WHITE); // //lv_style_set_text_font(&text1, LV_STATE_DEFAULT, &eurostile_extended_black_24px); /*Set a larger font*/ lv_style_set_text_font(&settings_wheeel, LV_STATE_DEFAULT, &lv_font_montserrat_22); /*Set a larger font*/ lv_obj_t * settings = lv_label_create(obj0, NULL); lv_obj_set_x(settings, 5); lv_obj_set_y(settings, 5); lv_obj_add_style(settings,LV_OBJ_PART_MAIN, &settings_wheeel); lv_label_set_text(settings, LV_SYMBOL_SETTINGS); lv_obj_t * guage_bg = lv_img_create(obj0, NULL); lv_img_set_src(guage_bg, &guage_bg_bar); lv_obj_t * gauge1 = lv_gauge_create(guage_bg, NULL); lv_obj_clean_style_list(gauge1, LV_GAUGE_PART_MAJOR); // Reset the gauge scale styles lv_obj_clean_style_list(gauge1, LV_GAUGE_PART_MAIN); // Reset the gauge scale styles lv_obj_add_style(gauge1, LV_GAUGE_PART_NEEDLE, &needle1); // Add style to the needle object lv_gauge_set_scale(gauge1, 266, 0, 0); lv_gauge_set_angle_offset(gauge1, -43); lv_gauge_set_range(gauge1,0,750); lv_gauge_set_needle_count(gauge1, 1, needleC); lv_obj_set_size(gauge1, 320, 319); lv_obj_align(gauge1, NULL, LV_ALIGN_CENTER, 0, 0); lv_gauge_set_value(gauge1,0, NeedleVal); // Gauge at 0 /* lv_obj_t * label2 = lv_label_create(obj0, NULL); lv_obj_set_x(label2, 350); lv_obj_set_y(label2, 60); lv_label_set_align(label2, LV_LABEL_ALIGN_RIGHT); lv_obj_add_style(label2,LV_OBJ_PART_MAIN, &text1); lv_label_set_text_fmt(label2, "%.1f", -20.0); // %.2f sets two digits after the decimal point lv_obj_t * label3 = lv_label_create(obj0, NULL); lv_obj_set_x(label3, 373); // +23 lv_obj_set_y(label3, 80); lv_label_set_align(label3, LV_LABEL_ALIGN_RIGHT); lv_obj_add_style(label3,LV_OBJ_PART_MAIN, &text1); lv_label_set_text_fmt(label3, "%.1f", -5.0); // %.2f sets two digits after the decimal point lv_obj_t * label4 = lv_label_create(obj0, NULL); lv_obj_set_x(label4, 381); // + 31 lv_obj_set_y(label4, 100); lv_label_set_align(label4, LV_LABEL_ALIGN_RIGHT); lv_obj_add_style(label4,LV_OBJ_PART_MAIN, &text1); lv_label_set_text_fmt(label4, "%.1f", 3.0); // %.2f sets two digits after the decimal point lv_obj_t * label5 = lv_label_create(obj0, NULL); lv_obj_set_x(label5, 358); // +8 lv_obj_set_y(label5, 120); lv_label_set_align(label5, LV_LABEL_ALIGN_RIGHT); lv_obj_add_style(label5,LV_OBJ_PART_MAIN, &text1); lv_label_set_text_fmt(label5, "%.1f", 14.0); // %.2f sets two digits after the decimal point */ lv_obj_t * boostVal = lv_label_create(obj0, NULL); if (boostValue>=0 && boostValue < 10){lv_obj_set_x(boostVal, 217);} // 0-9.9 else if (boostValue>=10 && boostValue <100){lv_obj_set_x(boostVal, 186);} else if (boostValue>-10 && boostValue <0){lv_obj_set_x(boostVal, 206);} else if (boostValue>-100 && boostValue <=-10){lv_obj_set_x(boostVal, 175);} else if (boostValue>-1000 && boostValue <=-100){lv_obj_set_x(boostVal, 144);} lv_obj_set_y(boostVal, 230); lv_obj_add_style(boostVal,LV_OBJ_PART_MAIN, &boostStyle); lv_label_set_text_fmt(boostVal, "%.1f", boostValue); // %.1f sets two digits after the decimal point lv_obj_t * boostPeakVal = lv_label_create(obj0, NULL); if (boostPeak>=0 && boostPeak < 10){lv_obj_set_x(boostPeakVal, 224);} // 0-9.9 else if (boostPeak>=10 && boostPeak <100){lv_obj_set_x(boostPeakVal, 199);} lv_obj_set_y(boostPeakVal, 260); lv_obj_add_style(boostPeakVal,LV_OBJ_PART_MAIN, &boostPeakStyle); lv_obj_set_click(boostPeakVal, true); lv_obj_set_event_cb(boostPeakVal, reset_boost_peak); lv_label_set_text_fmt(boostPeakVal, "%.1f", boostPeak); // %.1f sets two digits after the decimal point lv_obj_t * afrLable = lv_label_create(obj0, NULL); lv_obj_set_x(afrLable, 280); lv_obj_set_y(afrLable, 5); lv_obj_add_style(afrLable,LV_OBJ_PART_MAIN, &afrStyle); lv_label_set_text(afrLable,"AFR"); lv_obj_t * afrVal = lv_label_create(obj0, NULL); if (afr>=0 && afr < 10){lv_obj_set_x(afrVal, 388);} //365 else if (afr>=10 && afr<100){lv_obj_set_x(afrVal, 365);} lv_obj_set_y(afrVal, 5); lv_obj_add_style(afrVal,LV_OBJ_PART_MAIN, &afrStyle); if(afr < 13.5){ lv_label_set_recolor(afrVal, true); lv_label_set_text_fmt(afrVal,"#CCCC00 %.2f#", afr); }// %.1f sets two digits after the decimal point else if (afr > 13.5 && afr < 15.7){ lv_label_set_recolor(afrVal, true); lv_label_set_text_fmt(afrVal,"#00CC00 %.2f#", afr); // %.1f sets two digits after the decimal point } else if (afr > 15.7){ lv_label_set_recolor(afrVal, true); lv_label_set_text_fmt(afrVal,"#CC0000 %.2f#", afr); // %.1f sets two digits after the decimal point } lv_obj_t * egtLabel = lv_label_create(obj0, NULL); lv_obj_set_x(egtLabel, 305); lv_obj_set_y(egtLabel, 40); lv_obj_add_style(egtLabel,LV_OBJ_PART_MAIN, ¶mStyle); lv_label_set_text(egtLabel,"EGT"); lv_obj_t * egtVal = lv_label_create(obj0, NULL); if (egt>=0 && egt<10){lv_obj_set_x(egtVal, 424);} else if (egt>=10 && egt <100){lv_obj_set_x(egtVal,407);} else if (egt>=100 && egt<1000){lv_obj_set_x(egtVal,390);} else if (egt>=1000 && egt<10000){lv_obj_set_x(egtVal,373);} lv_obj_set_y(egtVal, 40); lv_obj_add_style(egtVal,LV_OBJ_PART_MAIN, ¶mStyle); lv_label_set_text_fmt(egtVal,"%.1fc", egt); // %.1f sets two digits after the decimal point lv_obj_t * oiltLabel = lv_label_create(obj0, NULL); lv_obj_set_x(oiltLabel, 316); lv_obj_set_y(oiltLabel, 70); lv_obj_add_style(oiltLabel,LV_OBJ_PART_MAIN, ¶mStyle); lv_label_set_text(oiltLabel,"OIL"); lv_obj_t * oiltVal = lv_label_create(obj0, NULL); if (oilt>=0 && oilt<10){lv_obj_set_x(oiltVal, 424);} else if (oilt>=10 && oilt <100){lv_obj_set_x(oiltVal,407);} else if (oilt>=100 && oilt<1000){lv_obj_set_x(oiltVal,390);} lv_obj_set_y(oiltVal, 70); lv_obj_add_style(oiltVal,LV_OBJ_PART_MAIN, ¶mStyle); lv_label_set_text_fmt(oiltVal,"%.1fc", oilt); // %.1f sets two digits after the decimal point lv_obj_t * iatLabel = lv_label_create(obj0, NULL); lv_obj_set_x(iatLabel, 320); lv_obj_set_y(iatLabel, 100); lv_obj_add_style(iatLabel,LV_OBJ_PART_MAIN, ¶mStyle); lv_label_set_text(iatLabel,"IAT"); lv_obj_t * iatVal = lv_label_create(obj0, NULL); if (iat>=0 && iat<10){lv_obj_set_x(iatVal, 424);} else if (iat>=10 && iat <100){lv_obj_set_x(iatVal,407);} else if (iat>=100 && iat<1000){lv_obj_set_x(iatVal,390);} else if (iat>-10 && iat<0){lv_obj_set_x(iatVal,418);} //lv_obj_set_x(iatVal, 407); lv_obj_set_y(iatVal, 100); lv_obj_add_style(iatVal,LV_OBJ_PART_MAIN, ¶mStyle); lv_label_set_text_fmt(iatVal,"%.1fc", iat); // %.1f sets two digits after the decimal point lv_obj_t * cyl1Label = lv_label_create(obj0, NULL); lv_obj_set_x(cyl1Label, 310); lv_obj_set_y(cyl1Label, 220); lv_obj_add_style(cyl1Label,LV_OBJ_PART_MAIN, &ignStyle); lv_label_set_text(cyl1Label,"CYL1"); lv_obj_t * cyl2Label = lv_label_create(obj0, NULL); lv_obj_set_x(cyl2Label, 310); lv_obj_set_y(cyl2Label, 240); lv_obj_add_style(cyl2Label,LV_OBJ_PART_MAIN, &ignStyle); lv_label_set_text(cyl2Label,"CYL2"); lv_obj_t * cyl3Label = lv_label_create(obj0, NULL); lv_obj_set_x(cyl3Label, 310); lv_obj_set_y(cyl3Label, 260); lv_obj_add_style(cyl3Label,LV_OBJ_PART_MAIN, &ignStyle); lv_label_set_text(cyl3Label,"CYL3"); lv_obj_t * cyl4Label = lv_label_create(obj0, NULL); lv_obj_set_x(cyl4Label, 310); lv_obj_set_y(cyl4Label, 280); lv_obj_add_style(cyl4Label,LV_OBJ_PART_MAIN, &ignStyle); lv_label_set_text(cyl4Label,"CYL4"); lv_obj_t * cyl5Label = lv_label_create(obj0, NULL); lv_obj_set_x(cyl5Label, 310); lv_obj_set_y(cyl5Label, 300); lv_obj_add_style(cyl5Label,LV_OBJ_PART_MAIN, &ignStyle); lv_label_set_text(cyl5Label,"CYL5"); lv_obj_t * cyl1Val = lv_label_create(obj0, NULL); if (ign[0] == 0 ) {lv_obj_set_x(cyl1Val, 385);} else if (ign[0] >-10 && ign[0]<0){lv_obj_set_x(cyl1Val, 380);} else if (ign[0] <=-10 && ign[0]-100){lv_obj_set_x(cyl1Val, 367);} lv_obj_set_y(cyl1Val, 220); lv_obj_add_style(cyl1Val,LV_OBJ_PART_MAIN, &ignStyle); lv_label_set_text_fmt(cyl1Val,"%.1f", ign[0]); // %.1f sets two digits after the decimal point lv_obj_t * cyl2Val = lv_label_create(obj0, NULL); if (ign[1] == 0 ) {lv_obj_set_x(cyl2Val, 385);} else if (ign[1] >-10 && ign[1]<0){lv_obj_set_x(cyl2Val, 380);} else if (ign[1] <=-10 && ign[1]-100){lv_obj_set_x(cyl2Val, 367);} lv_obj_set_y(cyl2Val, 240); lv_obj_add_style(cyl2Val,LV_OBJ_PART_MAIN, &ignStyle); lv_label_set_text_fmt(cyl2Val,"%.1f", ign[1]); // %.1f sets two digits after the decimal point lv_obj_t * cyl3Val = lv_label_create(obj0, NULL); if (ign[2] == 0 ) {lv_obj_set_x(cyl3Val, 385);} else if (ign[2] >-10 && ign[2]<0){lv_obj_set_x(cyl3Val, 380);} else if (ign[2] <=-10 && ign[2]-100){lv_obj_set_x(cyl3Val, 367);} lv_obj_set_y(cyl3Val, 260); lv_obj_add_style(cyl3Val,LV_OBJ_PART_MAIN, &ignStyle); lv_label_set_text_fmt(cyl3Val,"%.1f", ign[2]); // %.1f sets two digits after the decimal point lv_obj_t * cyl4Val = lv_label_create(obj0, NULL); if (ign[3] == 0 ) {lv_obj_set_x(cyl4Val, 385);} else if (ign[3] >-10 && ign[3]<0){lv_obj_set_x(cyl4Val, 380);} else if (ign[3] <=-10 && ign[3]-100){lv_obj_set_x(cyl4Val, 367);} lv_obj_set_y(cyl4Val, 280); lv_obj_add_style(cyl4Val,LV_OBJ_PART_MAIN, &ignStyle); lv_label_set_text_fmt(cyl4Val,"%.1f", ign[3]); // %.1f sets two digits after the decimal point lv_obj_t * cyl5Val = lv_label_create(obj0, NULL); if (ign[4] == 0 ) {lv_obj_set_x(cyl5Val, 385);} else if (ign[4] >-10 && ign[4]<0){lv_obj_set_x(cyl5Val, 380);} else if (ign[4] <=-10 && ign[4]-100){lv_obj_set_x(cyl5Val, 367);} lv_obj_set_y(cyl5Val, 300); lv_obj_add_style(cyl5Val,LV_OBJ_PART_MAIN, &ignStyle); lv_label_set_text_fmt(cyl5Val,"%.1f", ign[4]); // %.1f sets two digits after the decimal point lv_obj_t * cyl1ValPeak = lv_label_create(obj0, NULL); if (ignPeak[0] == 0 ) {lv_obj_set_x(cyl1ValPeak, 450);} else if (ignPeak[0] >-10 &&ignPeak[0]<0){lv_obj_set_x(cyl1ValPeak, 446);} else if (ignPeak[0] <=-10 && ignPeak[0]-100){lv_obj_set_x(cyl1ValPeak, 435);} lv_obj_set_y(cyl1ValPeak, 220); lv_obj_add_style(cyl1ValPeak,LV_OBJ_PART_MAIN, &ignPeakStyle); lv_label_set_text_fmt(cyl1ValPeak,"%.1f", ignPeak[0]); // %.1f sets two digits after the decimal point lv_obj_t * cyl2ValPeak = lv_label_create(obj0, NULL); if (ignPeak[1] == 0 ) {lv_obj_set_x(cyl2ValPeak, 450);} else if (ignPeak[1] >-10 &&ignPeak[1]<0){lv_obj_set_x(cyl2ValPeak, 446);} else if (ignPeak[1] <=-10 && ignPeak[1]-100){lv_obj_set_x(cyl2ValPeak, 435);} lv_obj_set_y(cyl2ValPeak, 240); lv_obj_add_style(cyl2ValPeak,LV_OBJ_PART_MAIN, &ignPeakStyle); lv_label_set_text_fmt(cyl2ValPeak,"%.1f", ignPeak[1]); // %.1f sets two digits after the decimal point lv_obj_t * cyl3ValPeak = lv_label_create(obj0, NULL); if (ignPeak[2] == 0 ) {lv_obj_set_x(cyl3ValPeak, 450);} else if (ignPeak[2] >-10 &&ignPeak[2]<0){lv_obj_set_x(cyl3ValPeak, 446);} else if (ignPeak[2] <=-10 && ignPeak[2]-100){lv_obj_set_x(cyl3ValPeak, 435);} lv_obj_set_y(cyl3ValPeak, 260); lv_obj_add_style(cyl3ValPeak,LV_OBJ_PART_MAIN, &ignPeakStyle); lv_label_set_text_fmt(cyl3ValPeak,"%.1f", ignPeak[2]); // %.1f sets two digits after the decimal point lv_obj_t * cyl4ValPeak = lv_label_create(obj0, NULL); if (ignPeak[3] == 0 ) {lv_obj_set_x(cyl4ValPeak, 450);} else if (ignPeak[3] >-10 &&ignPeak[3]<0){lv_obj_set_x(cyl4ValPeak, 446);} else if (ignPeak[3] <=-10 &&ignPeak[3]-100){lv_obj_set_x(cyl4ValPeak, 435);} lv_obj_set_y(cyl4ValPeak, 280); lv_obj_add_style(cyl4ValPeak,LV_OBJ_PART_MAIN, &ignPeakStyle); lv_label_set_text_fmt(cyl4ValPeak,"%.1f", ignPeak[3]); // %.1f sets two digits after the decimal point lv_obj_t * cyl5ValPeak = lv_label_create(obj0, NULL); if (ignPeak[4] == 0 ) {lv_obj_set_x(cyl5ValPeak, 450);} else if (ignPeak[4] >-10 &&ignPeak[4]<0){lv_obj_set_x(cyl5ValPeak, 446);} else if (ignPeak[4] <=-10 &&ignPeak[4]-100){lv_obj_set_x(cyl5ValPeak, 435);} lv_obj_set_y(cyl5ValPeak, 300); lv_obj_add_style(cyl5ValPeak,LV_OBJ_PART_MAIN, &ignPeakStyle); lv_label_set_text_fmt(cyl5ValPeak,"%.1f", ignPeak[4]); // %.1f sets two digits after the decimal point lv_obj_t * led1 = lv_led_create(obj0, NULL); lv_obj_set_x(led1, 420); lv_obj_set_y(led1, 221); lv_obj_set_size(led1, 12, 12); lv_obj_add_style(led1,LV_OBJ_PART_MAIN, &ignLed); if (ign[0]<0){lv_led_on(led1);} else {lv_led_off(led1);} lv_obj_t * led2 = lv_led_create(obj0, NULL); lv_obj_set_x(led2, 420); lv_obj_set_y(led2, 241); lv_obj_set_size(led2, 12, 12); lv_obj_add_style(led2,LV_OBJ_PART_MAIN, &ignLed); if (ign[1]<0){lv_led_on(led2);} else {lv_led_off(led2);} lv_obj_t * led3 = lv_led_create(obj0, NULL); lv_obj_set_x(led3, 420); lv_obj_set_y(led3, 261); lv_obj_set_size(led3, 12, 12); lv_obj_add_style(led3,LV_OBJ_PART_MAIN, &ignLed); lv_led_off(led3); lv_obj_t * led4 = lv_led_create(obj0, NULL); lv_obj_set_x(led4, 420); lv_obj_set_y(led4, 281); lv_obj_set_size(led4, 12, 12); lv_obj_add_style(led4,LV_OBJ_PART_MAIN, &ignLed); lv_led_off(led4); lv_obj_t * led5 = lv_led_create(obj0, NULL); lv_obj_set_x(led5, 420); lv_obj_set_y(led5, 301); lv_obj_set_size(led5, 12, 12); lv_obj_add_style(led5,LV_OBJ_PART_MAIN, &ignLed); lv_led_off(led5); }