|
@@ -43,9 +43,9 @@ void setup_scr_screen(lv_ui *ui)
|
|
|
lv_obj_set_style_radius(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
lv_obj_set_style_bg_opa(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
lv_obj_set_style_pad_top(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
- lv_obj_set_style_pad_right(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
lv_obj_set_style_pad_bottom(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
lv_obj_set_style_pad_left(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
+ lv_obj_set_style_pad_right(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
lv_obj_set_style_shadow_width(ui->screen_cont_power_on, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
|
|
|
//Write codes screen_arc_temp
|
|
@@ -53,9 +53,9 @@ void setup_scr_screen(lv_ui *ui)
|
|
|
lv_obj_set_pos(ui->screen_arc_temp, 73, 51);
|
|
|
lv_obj_set_size(ui->screen_arc_temp, 340, 340);
|
|
|
lv_arc_set_mode(ui->screen_arc_temp, LV_ARC_MODE_NORMAL);
|
|
|
- lv_arc_set_range(ui->screen_arc_temp, 0, 50);
|
|
|
+ lv_arc_set_range(ui->screen_arc_temp, 7, 60);
|
|
|
lv_arc_set_bg_angles(ui->screen_arc_temp, 150, 30);
|
|
|
- lv_arc_set_value(ui->screen_arc_temp, 26);
|
|
|
+ lv_arc_set_value(ui->screen_arc_temp, 12);
|
|
|
lv_arc_set_rotation(ui->screen_arc_temp, 0);
|
|
|
|
|
|
//Write style for screen_arc_temp, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
@@ -75,7 +75,7 @@ void setup_scr_screen(lv_ui *ui)
|
|
|
//Write style for screen_arc_temp, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
|
|
|
lv_obj_set_style_arc_width(ui->screen_arc_temp, 20, LV_PART_INDICATOR|LV_STATE_DEFAULT);
|
|
|
lv_obj_set_style_arc_opa(ui->screen_arc_temp, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
|
|
|
- lv_obj_set_style_arc_color(ui->screen_arc_temp, lv_color_hex(0x00d9ff), LV_PART_INDICATOR|LV_STATE_DEFAULT);
|
|
|
+ lv_obj_set_style_arc_color(ui->screen_arc_temp, lv_color_hex(0x2FCADA), LV_PART_INDICATOR|LV_STATE_DEFAULT);
|
|
|
lv_obj_set_style_arc_rounded(ui->screen_arc_temp, true, LV_PART_INDICATOR|LV_STATE_DEFAULT);
|
|
|
|
|
|
//Write style for screen_arc_temp, Part: LV_PART_KNOB, State: LV_STATE_DEFAULT.
|
|
@@ -84,7 +84,7 @@ void setup_scr_screen(lv_ui *ui)
|
|
|
|
|
|
//Write style for screen_arc_temp, Part: LV_PART_KNOB, State: LV_STATE_FOCUSED.
|
|
|
lv_obj_set_style_bg_opa(ui->screen_arc_temp, 255, LV_PART_KNOB|LV_STATE_FOCUSED);
|
|
|
- lv_obj_set_style_bg_color(ui->screen_arc_temp, lv_color_hex(0x2195f6), LV_PART_KNOB|LV_STATE_FOCUSED);
|
|
|
+ lv_obj_set_style_bg_color(ui->screen_arc_temp, lv_color_hex(0x2F92DA), LV_PART_KNOB|LV_STATE_FOCUSED);
|
|
|
lv_obj_set_style_bg_grad_dir(ui->screen_arc_temp, LV_GRAD_DIR_NONE, LV_PART_KNOB|LV_STATE_FOCUSED);
|
|
|
lv_obj_set_style_pad_all(ui->screen_arc_temp, 5, LV_PART_KNOB|LV_STATE_FOCUSED);
|
|
|
|
|
@@ -165,9 +165,9 @@ void setup_scr_screen(lv_ui *ui)
|
|
|
|
|
|
//Write codes screen_lab_temp_low
|
|
|
ui->screen_lab_temp_low = lv_label_create(ui->screen_cont_power_on);
|
|
|
- lv_obj_set_pos(ui->screen_lab_temp_low, 81, 328);
|
|
|
+ lv_obj_set_pos(ui->screen_lab_temp_low, 81, 322);
|
|
|
lv_obj_set_size(ui->screen_lab_temp_low, 71, 20);
|
|
|
- lv_label_set_text(ui->screen_lab_temp_low, "0°C");
|
|
|
+ lv_label_set_text(ui->screen_lab_temp_low, "7°C");
|
|
|
lv_label_set_long_mode(ui->screen_lab_temp_low, LV_LABEL_LONG_WRAP);
|
|
|
|
|
|
//Write style for screen_lab_temp_low, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
@@ -188,9 +188,9 @@ void setup_scr_screen(lv_ui *ui)
|
|
|
|
|
|
//Write codes screen_lab_temp_high
|
|
|
ui->screen_lab_temp_high = lv_label_create(ui->screen_cont_power_on);
|
|
|
- lv_obj_set_pos(ui->screen_lab_temp_high, 320, 328);
|
|
|
+ lv_obj_set_pos(ui->screen_lab_temp_high, 320, 322);
|
|
|
lv_obj_set_size(ui->screen_lab_temp_high, 71, 20);
|
|
|
- lv_label_set_text(ui->screen_lab_temp_high, "50°C");
|
|
|
+ lv_label_set_text(ui->screen_lab_temp_high, "22°C");
|
|
|
lv_label_set_long_mode(ui->screen_lab_temp_high, LV_LABEL_LONG_WRAP);
|
|
|
|
|
|
//Write style for screen_lab_temp_high, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
@@ -259,7 +259,7 @@ void setup_scr_screen(lv_ui *ui)
|
|
|
ui->screen_lab_ac_temp = lv_label_create(ui->screen_cont_power_on);
|
|
|
lv_obj_set_pos(ui->screen_lab_ac_temp, 165, 209);
|
|
|
lv_obj_set_size(ui->screen_lab_ac_temp, 132, 72);
|
|
|
- lv_label_set_text(ui->screen_lab_ac_temp, "26");
|
|
|
+ lv_label_set_text(ui->screen_lab_ac_temp, "12");
|
|
|
lv_label_set_long_mode(ui->screen_lab_ac_temp, LV_LABEL_LONG_WRAP);
|
|
|
|
|
|
//Write style for screen_lab_ac_temp, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
@@ -414,9 +414,9 @@ void setup_scr_screen(lv_ui *ui)
|
|
|
lv_obj_set_style_radius(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
lv_obj_set_style_bg_opa(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
lv_obj_set_style_pad_top(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
- lv_obj_set_style_pad_right(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
lv_obj_set_style_pad_bottom(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
lv_obj_set_style_pad_left(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
+ lv_obj_set_style_pad_right(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
lv_obj_set_style_shadow_width(ui->screen_cont_power_off, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
|
|
|
//Write codes screen_lab_env_hum_2
|
|
@@ -599,42 +599,20 @@ void setup_scr_screen(lv_ui *ui)
|
|
|
lv_label_set_long_mode(ui->screen_lab_icon_cloud, LV_LABEL_LONG_WRAP);
|
|
|
|
|
|
//Write style for screen_lab_icon_cloud, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
- lv_obj_set_style_bg_opa(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
lv_obj_set_style_border_width(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
lv_obj_set_style_radius(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
- lv_obj_set_style_shadow_width(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
- lv_obj_set_style_pad_top(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
- lv_obj_set_style_pad_bottom(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
- lv_obj_set_style_pad_left(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
- lv_obj_set_style_pad_right(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
lv_obj_set_style_text_color(ui->screen_lab_icon_cloud, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
lv_obj_set_style_text_font(ui->screen_lab_icon_cloud, &lv_font_iconfont_25, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
lv_obj_set_style_text_opa(ui->screen_lab_icon_cloud, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
lv_obj_set_style_text_letter_space(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
lv_obj_set_style_text_line_space(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
lv_obj_set_style_text_align(ui->screen_lab_icon_cloud, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
-
|
|
|
- //Write codes screen_item
|
|
|
- ui->screen_item = lv_obj_create(ui->screen);
|
|
|
- lv_obj_set_pos(ui->screen_item, 225, 352);
|
|
|
- lv_obj_set_size(ui->screen_item, 29, 26);
|
|
|
- lv_obj_set_scrollbar_mode(ui->screen_item, LV_SCROLLBAR_MODE_OFF);
|
|
|
- lv_obj_add_flag(ui->screen_item, LV_OBJ_FLAG_HIDDEN);
|
|
|
-
|
|
|
- //Write style for screen_item, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
|
|
- lv_obj_set_style_bg_opa(ui->screen_item, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
- lv_obj_set_style_bg_color(ui->screen_item, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
- lv_obj_set_style_bg_grad_dir(ui->screen_item, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
- lv_obj_set_style_border_width(ui->screen_item, 2, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
- lv_obj_set_style_border_opa(ui->screen_item, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
- lv_obj_set_style_border_color(ui->screen_item, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
- lv_obj_set_style_border_side(ui->screen_item, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
- lv_obj_set_style_radius(ui->screen_item, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
- lv_obj_set_style_shadow_width(ui->screen_item, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
- lv_obj_set_style_pad_top(ui->screen_item, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
- lv_obj_set_style_pad_bottom(ui->screen_item, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
- lv_obj_set_style_pad_left(ui->screen_item, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
- lv_obj_set_style_pad_right(ui->screen_item, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
+ lv_obj_set_style_bg_opa(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
+ lv_obj_set_style_pad_top(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
+ lv_obj_set_style_pad_right(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
+ lv_obj_set_style_pad_bottom(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
+ lv_obj_set_style_pad_left(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
+ lv_obj_set_style_shadow_width(ui->screen_lab_icon_cloud, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
|
|
|
|
|
//Write codes screen_lab_mode
|
|
|
ui->screen_lab_mode = lv_label_create(ui->screen);
|
|
@@ -663,16 +641,16 @@ void setup_scr_screen(lv_ui *ui)
|
|
|
lv_obj_add_flag(ui->screen_arc_temp, LV_OBJ_FLAG_ADV_HITTEST);
|
|
|
lv_obj_set_ext_click_area(ui->screen_arc_temp, 40);
|
|
|
if(hp_controller.mode == MODE_COOL) {
|
|
|
- lv_arc_set_range(ui->screen_arc_temp, 7,22);
|
|
|
+ lv_arc_set_range(ui->screen_arc_temp, 7*2,22*2);
|
|
|
lv_label_set_text_fmt(ui->screen_lab_ac_temp, "%d", hp_controller.cool_set_temp);
|
|
|
- lv_arc_set_value(guider_ui.screen_arc_temp, hp_controller.cool_set_temp);
|
|
|
+ lv_arc_set_value(guider_ui.screen_arc_temp, hp_controller.cool_set_temp * 2);
|
|
|
lv_label_set_text_static(ui->screen_lab_mode, "制冷");
|
|
|
lv_label_set_text_static(ui->screen_lab_temp_low, "7°C");
|
|
|
lv_label_set_text_static(ui->screen_lab_temp_high, "22°C");
|
|
|
lv_obj_add_state(ui->screen_ib_cool, LV_STATE_CHECKED);
|
|
|
} else if(hp_controller.mode == MODE_HEAT) {
|
|
|
- lv_arc_set_range(ui->screen_arc_temp, 30,60);
|
|
|
- lv_arc_set_value(ui->screen_arc_temp, hp_controller.heat_set_temp);
|
|
|
+ lv_arc_set_range(ui->screen_arc_temp, 30*2,60*2);
|
|
|
+ lv_arc_set_value(ui->screen_arc_temp, hp_controller.heat_set_temp * 2);
|
|
|
lv_label_set_text_fmt(ui->screen_lab_ac_temp, "%d", hp_controller.heat_set_temp);
|
|
|
lv_label_set_text_static(ui->screen_lab_mode, "制热");
|
|
|
lv_label_set_text_static(ui->screen_lab_temp_low, "30°C");
|