From 93f2464feabf0ec2ba2fc3f8017b215309ccf3c3 Mon Sep 17 00:00:00 2001 From: nick Date: Wed, 10 Jun 2026 02:49:42 -0600 Subject: [PATCH] dashboard: enlarge boot screen and show version --- .../esp32-s3-dashboard/dashboard_config.h | 2 +- .../esp32-s3-dashboard/esp32-s3-dashboard.ino | 24 ++++++++++++------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/firmware/esp32-s3-dashboard/dashboard_config.h b/firmware/esp32-s3-dashboard/dashboard_config.h index 54ec1c0..51bfe9a 100644 --- a/firmware/esp32-s3-dashboard/dashboard_config.h +++ b/firmware/esp32-s3-dashboard/dashboard_config.h @@ -1,6 +1,6 @@ #pragma once -static const char *DASHBOARD_VERSION = "0.1.30-relay-state-colors"; +static const char *DASHBOARD_VERSION = "0.1.31-boot-version"; // Update these if your Cargo ESP AP credentials are different. static const char *CARGO_WIFI_SSID = "OverlandController"; diff --git a/firmware/esp32-s3-dashboard/esp32-s3-dashboard.ino b/firmware/esp32-s3-dashboard/esp32-s3-dashboard.ino index dc6ebb5..ee1e0da 100644 --- a/firmware/esp32-s3-dashboard/esp32-s3-dashboard.ino +++ b/firmware/esp32-s3-dashboard/esp32-s3-dashboard.ino @@ -712,29 +712,35 @@ 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_40, 0); + lv_obj_set_style_text_font(title, &lv_font_montserrat_48, 0); lv_obj_align(title, LV_ALIGN_CENTER, 0, -70); lv_obj_t *subtitle = lv_label_create(screen); lv_label_set_text(subtitle, "ESP32-S3 Dashboard"); lv_obj_set_style_text_color(subtitle, lv_color_hex(0xB8C0C8), 0); - lv_obj_set_width(subtitle, 700); + lv_obj_set_style_text_font(subtitle, &lv_font_montserrat_30, 0); + lv_obj_set_width(subtitle, 800); lv_obj_set_style_text_align(subtitle, LV_TEXT_ALIGN_CENTER, 0); - lv_obj_align(subtitle, LV_ALIGN_CENTER, 0, -25); + lv_obj_align(subtitle, LV_ALIGN_CENTER, 0, -18); lv_obj_t *status = lv_label_create(screen); - lv_label_set_text(status, "Connecting to Cargo ESP WiFi..."); - lv_obj_set_style_text_color(status, lv_color_hex(0x7D8996), 0); - lv_obj_set_width(status, 700); + String boot_status = "Connecting to Cargo ESP WiFi...\n"; + boot_status += DASHBOARD_VERSION; + + lv_label_set_text(status, boot_status.c_str()); + lv_obj_set_style_text_color(status, lv_color_hex(0xDDE3EA), 0); + lv_obj_set_style_text_font(status, &lv_font_montserrat_30, 0); + lv_obj_set_width(status, 850); lv_obj_set_style_text_align(status, LV_TEXT_ALIGN_CENTER, 0); - lv_obj_align(status, LV_ALIGN_CENTER, 0, 35); + lv_obj_align(status, LV_ALIGN_CENTER, 0, 48); lv_obj_t *api = lv_label_create(screen); lv_label_set_text(api, "/api/v1"); - lv_obj_set_style_text_color(api, lv_color_hex(0x3A4652), 0); + lv_obj_set_style_text_color(api, lv_color_hex(0x7D8996), 0); + lv_obj_set_style_text_font(api, &lv_font_montserrat_26, 0); lv_obj_set_width(api, 700); lv_obj_set_style_text_align(api, LV_TEXT_ALIGN_CENTER, 0); - lv_obj_align(api, LV_ALIGN_CENTER, 0, 80); + lv_obj_align(api, LV_ALIGN_CENTER, 0, 118); } static void create_overland_overview_screen()