dashboard: enlarge primary telemetry display

This commit is contained in:
2026-06-10 01:05:18 -06:00
parent 324502c0e5
commit 7f38db37cb
2 changed files with 39 additions and 12 deletions
@@ -1,6 +1,6 @@
#pragma once
static const char *DASHBOARD_VERSION = "0.1.8-output-strip-layout";
static const char *DASHBOARD_VERSION = "0.1.9-large-display-layout";
// Update these if your Cargo ESP AP credentials are different.
static const char *CARGO_WIFI_SSID = "OverlandController";
@@ -605,7 +605,7 @@ static void show_boot_screen()
lv_obj_t *title = lv_label_create(screen);
lv_label_set_text(title, "Overland Controller");
lv_obj_set_style_text_color(title, lv_color_hex(0xFFFFFF), 0);
lv_obj_set_style_text_font(title, &lv_font_montserrat_30, 0);
lv_obj_set_style_text_font(title, &lv_font_montserrat_40, 0);
lv_obj_align(title, LV_ALIGN_CENTER, 0, -70);
lv_obj_t *subtitle = lv_label_create(screen);
@@ -636,10 +636,10 @@ static void create_overland_overview_screen()
lv_obj_clean(screen);
lv_obj_set_style_bg_color(screen, lv_color_hex(0x101418), 0);
lv_obj_t *system_card = create_card(screen, "Status", 960, 72, LV_ALIGN_TOP_MID, 0, 16);
lv_obj_t *battery_card = create_card(screen, "Greta Battery", 300, 330, LV_ALIGN_TOP_LEFT, 32, 104);
lv_obj_t *temp_card = create_card(screen, "Temperatures", 300, 330, LV_ALIGN_TOP_MID, 0, 104);
lv_obj_t *relay_card = create_card(screen, "Outputs", RELAY_STRIP_W, 138, LV_ALIGN_TOP_LEFT, RELAY_STRIP_X, RELAY_STRIP_Y);
lv_obj_t *system_card = create_card(screen, "", 960, 72, LV_ALIGN_TOP_MID, 0, 16);
lv_obj_t *battery_card = create_card(screen, "", 300, 330, LV_ALIGN_TOP_LEFT, 32, 104);
lv_obj_t *temp_card = create_card(screen, "", 300, 330, LV_ALIGN_TOP_MID, 0, 104);
lv_obj_t *relay_card = create_card(screen, "", RELAY_STRIP_W, 138, LV_ALIGN_TOP_LEFT, RELAY_STRIP_X, RELAY_STRIP_Y);
battery_charge_pulse_arc = lv_arc_create(battery_card);
lv_obj_set_size(battery_charge_pulse_arc, 236, 236);
@@ -675,36 +675,63 @@ static void create_overland_overview_screen()
battery_soc_label = lv_label_create(battery_card);
lv_label_set_text(battery_soc_label, "--%");
lv_obj_set_style_text_color(battery_soc_label, lv_color_hex(0xFFFFFF), 0);
lv_obj_set_style_text_font(battery_soc_label, &lv_font_montserrat_30, 0);
lv_obj_set_width(battery_soc_label, 220);
lv_obj_set_style_text_font(battery_soc_label, &lv_font_montserrat_40, 0);
lv_obj_set_style_text_font(
battery_soc_label,
&lv_font_montserrat_48,
0
);
lv_obj_set_width(battery_soc_label, 240);
lv_obj_set_style_text_align(battery_soc_label, LV_TEXT_ALIGN_CENTER, 0);
lv_obj_align(battery_soc_label, LV_ALIGN_TOP_MID, 0, 90);
battery_voltage_label = lv_label_create(battery_card);
lv_label_set_text(battery_voltage_label, "-- V");
lv_obj_set_style_text_color(battery_voltage_label, lv_color_hex(0xB8C0C8), 0);
lv_obj_set_width(battery_voltage_label, 220);
lv_obj_set_style_text_font(
battery_voltage_label,
&lv_font_montserrat_40,
0
);
lv_obj_set_width(battery_voltage_label, 240);
lv_obj_set_style_text_align(battery_voltage_label, LV_TEXT_ALIGN_CENTER, 0);
lv_obj_align(battery_voltage_label, LV_ALIGN_TOP_MID, 0, 138);
battery_current_label = lv_label_create(battery_card);
lv_label_set_text(battery_current_label, "");
lv_obj_set_width(battery_current_label, 180);
lv_obj_set_style_text_font(
battery_current_label,
&lv_font_montserrat_24,
0
);
lv_obj_set_width(battery_current_label, 220);
lv_obj_set_style_text_align(battery_current_label, LV_TEXT_ALIGN_CENTER, 0);
lv_obj_align(battery_current_label, LV_ALIGN_TOP_MID, 0, 166);
lv_obj_add_flag(battery_current_label, LV_OBJ_FLAG_HIDDEN);
inside_temp_label = lv_label_create(temp_card);
lv_label_set_text(inside_temp_label, "Inside\n--");
lv_obj_set_style_text_font(
inside_temp_label,
&lv_font_montserrat_40,
0
);
lv_obj_set_style_text_color(inside_temp_label, lv_color_hex(0xFFFFFF), 0);
lv_obj_set_style_text_font(inside_temp_label, &lv_font_montserrat_30, 0);
lv_obj_set_style_text_font(inside_temp_label, &lv_font_montserrat_40, 0);
lv_obj_set_width(inside_temp_label, 260);
lv_obj_align(inside_temp_label, LV_ALIGN_TOP_LEFT, 0, 45);
outside_temp_label = lv_label_create(temp_card);
lv_label_set_text(outside_temp_label, "Outside\n--");
lv_obj_set_style_text_font(
outside_temp_label,
&lv_font_montserrat_40,
0
);
lv_obj_set_style_text_color(outside_temp_label, lv_color_hex(0xFFFFFF), 0);
lv_obj_set_style_text_font(outside_temp_label, &lv_font_montserrat_30, 0);
lv_obj_set_style_text_font(outside_temp_label, &lv_font_montserrat_40, 0);
lv_obj_set_width(outside_temp_label, 260);
lv_obj_align(outside_temp_label, LV_ALIGN_TOP_LEFT, 0, 145);