dashboard: add sample vehicle card data

This commit is contained in:
2026-06-11 01:15:52 -06:00
parent c0a896fc0a
commit f364caacf6
2 changed files with 14 additions and 3 deletions
@@ -1,6 +1,6 @@
#pragma once
static const char *DASHBOARD_VERSION = "0.1.45-vehicle-card-wider";
static const char *DASHBOARD_VERSION = "0.1.46-vehicle-sample-card";
// Update these if your Cargo ESP AP credentials are different.
static const char *CARGO_WIFI_SSID = "OverlandController";
@@ -1130,9 +1130,20 @@ static void create_overland_overview_screen()
}
lv_obj_t *vehicle_label = lv_label_create(vehicle_card);
lv_label_set_text(vehicle_label, "Vehicle\n\nOffline\n\nFuture:\nCoolant\nTrans Temp\n4WD\nTilt/Roll");
lv_label_set_text(vehicle_label,
"Coolant 188°
"
"Trans --
"
"Fuel --%
"
"4WD --
"
"Tilt --°"
);
lv_obj_set_style_text_color(vehicle_label, lv_color_hex(0xDDE3EA), 0);
lv_obj_set_width(vehicle_label, 220);
lv_obj_set_style_text_font(vehicle_label, &lv_font_montserrat_30, 0);
lv_obj_set_width(vehicle_label, 260);
lv_label_set_long_mode(vehicle_label, LV_LABEL_LONG_WRAP);
lv_obj_align(vehicle_label, LV_ALIGN_CENTER, 0, 0);