diff --git a/firmware/esp32-s3-dashboard/dashboard_config.h b/firmware/esp32-s3-dashboard/dashboard_config.h index b3d9274..24b8aee 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.24-card-padding-trim"; +static const char *DASHBOARD_VERSION = "0.1.25-taller-relay-strip"; // 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 c04bc59..d62df91 100644 --- a/firmware/esp32-s3-dashboard/esp32-s3-dashboard.ino +++ b/firmware/esp32-s3-dashboard/esp32-s3-dashboard.ino @@ -34,7 +34,7 @@ static bool relay_states[6] = {false}; static int relay_count = 0; static const int RELAY_STRIP_X = 32; -static const int RELAY_STRIP_Y = 408; +static const int RELAY_STRIP_Y = 390; static const int RELAY_STRIP_W = 960; static const int RELAY_BUTTON_GAP = 10; @@ -277,7 +277,7 @@ static void layout_relay_buttons() } if (i < relay_count) { - lv_obj_set_size(relay_buttons[i], button_width, 62); + lv_obj_set_size(relay_buttons[i], button_width, 102); lv_obj_align(relay_buttons[i], LV_ALIGN_TOP_LEFT, start_x + (i * (button_width + RELAY_BUTTON_GAP)), 34); } } @@ -820,7 +820,7 @@ static void create_overland_overview_screen() for (int i = 0; i < 6; i++) { relay_buttons[i] = lv_btn_create(relay_card); - lv_obj_set_size(relay_buttons[i], 140, 62); + lv_obj_set_size(relay_buttons[i], 140, 102); lv_obj_align(relay_buttons[i], LV_ALIGN_TOP_LEFT, 14 + (i * 150), 34); lv_obj_add_event_cb( relay_buttons[i], @@ -831,6 +831,7 @@ static void create_overland_overview_screen() relay_button_labels[i] = lv_label_create(relay_buttons[i]); lv_label_set_text(relay_button_labels[i], "Output\n--"); + lv_obj_set_style_text_font(relay_button_labels[i], &lv_font_montserrat_30, 0); lv_obj_set_style_text_align(relay_button_labels[i], LV_TEXT_ALIGN_CENTER, 0); lv_obj_center(relay_button_labels[i]); lv_obj_add_flag(relay_buttons[i], LV_OBJ_FLAG_HIDDEN);