Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
c1c095b
Files: Improve Files with readable dark styling and larger touch targets
DevanMetz Oct 22, 2026
97dd244
Notes: Improve Notes readability and touch controls
DevanMetz Oct 22, 2026
65ce797
Counter: Improve Counter layout with prominent value and larger controls
DevanMetz Oct 22, 2026
165cf8a
GPIO: Improve GPIO readability with grouped pins and larger touch con…
DevanMetz Oct 22, 2026
9afe01f
Settings: Improve Settings with clearer grouping and larger touch tar…
DevanMetz Oct 22, 2026
5fdb36e
AI Chat: Improve AI Chat readability, spacing, and touch controls
DevanMetz Oct 22, 2026
05ab464
Browser: Improve Browser readability and touch-friendly layout
DevanMetz Oct 22, 2026
e457d94
Ebooks: Improve Ebooks readability and touch-friendly spacing
DevanMetz Oct 22, 2026
77ed58b
Clock: Improve Clock readability with spacious alarm cards and larger…
DevanMetz Oct 22, 2026
356e513
System: Make System easier to scan with readable panels and larger co…
DevanMetz Oct 22, 2026
cdd9f64
Scope: Improve Scope readability with larger controls and a dark wave…
DevanMetz Oct 22, 2026
240b67e
Weather: Improve Weather readability with larger text and clearer for…
DevanMetz Oct 22, 2026
ee6869b
Govee: Improve Govee readability with compact dark reading cards and …
DevanMetz Oct 22, 2026
a81a026
Ring: Refine Ring with a clearer heart-rate layout and dark panels
DevanMetz Oct 22, 2026
9110f39
Servo Toy: Improve Servo Toy’s layout with larger controls and cleare…
DevanMetz Oct 22, 2026
ea34926
Cycling: Improve Cycling dashboard readability and touch controls
DevanMetz Oct 22, 2026
8593177
I2C Tool: Improve I2C Tool layout with grouped controls and readable …
DevanMetz Oct 22, 2026
65dae8a
Serial: Improve Serial’s visual hierarchy and touchscreen readability
DevanMetz Oct 22, 2026
c576d65
SPI Master: Improve SPI Master layout, readability, and idle state
DevanMetz Oct 22, 2026
616565a
Signal Gen: Improve Signal Gen with grouped controls and clearer outp…
DevanMetz Oct 22, 2026
1ebe112
HTTP Tool: Improve HTTP Tool readability and touch layout
DevanMetz Oct 22, 2026
46bd9ee
MQTT: Simplify the MQTT layout and enlarge touch controls
DevanMetz Oct 22, 2026
e4eb275
BLE GATT: Simplify BLE GATT with clearer controls and readable device…
DevanMetz Oct 22, 2026
c516a1a
Network: Make Network easier to read and use by touch
DevanMetz Oct 22, 2026
17c09f4
Ender 3: Center and simplify the Ender 3 controls for touch use
DevanMetz Oct 22, 2026
ea22971
Electronics: Improve Electronics layout with larger controls and clea…
DevanMetz Oct 22, 2026
0af23fe
Byte Lab: Improve Byte Lab readability and layout
DevanMetz Oct 22, 2026
b727cc5
Modbus TCP: Improve Modbus TCP readability and touch layout
DevanMetz Oct 22, 2026
7891a06
NTP Lab: Simplify NTP Lab with larger controls and clearer timing res…
DevanMetz Oct 22, 2026
e5e03d7
Wake-on-LAN: Improve Wake-on-LAN layout, readability, and touch controls
DevanMetz Oct 22, 2026
e8f4ef0
Subnet Lab: Improve Subnet Lab’s touch layout and result readability
DevanMetz Oct 22, 2026
83b7733
UDP Console: Improve UDP Console readability and touch layout
DevanMetz Oct 22, 2026
f91330d
Resistor Lab: Improve Resistor Lab readability with larger controls a…
DevanMetz Oct 22, 2026
2b18862
RTU Frames: Improve RTU Frames readability and touch layout
DevanMetz Oct 22, 2026
9fb9c6a
Counter: make the counter value readable on the dark card
DevanMetz Oct 22, 2026
3b55b17
AI Chat: hide the idle microphone level strip under the status
DevanMetz Oct 22, 2026
1754ad4
Clock: make alarm times readable on the dark alarm cards
DevanMetz Oct 22, 2026
e042e31
System: replace unsupported middle dot in the charge chart title
DevanMetz Oct 22, 2026
ad4f6c7
Weather: make the status next to Refresh readable
DevanMetz Oct 22, 2026
c2c1d57
Ring: replace unsupported middle dot and pad the heart-rate chart title
DevanMetz Oct 22, 2026
664c1a0
Cycling: use light text for the dashboard title, status, stats and hi…
DevanMetz Oct 22, 2026
8ca246e
I2C Tool: use light text inside the dark panels
DevanMetz Oct 22, 2026
9d5c0c3
Serial: enlarge info, caption and status text with readable colors
DevanMetz Oct 22, 2026
a714836
Signal Gen: replace unsupported middle dots and enlarge the footer an…
DevanMetz Oct 22, 2026
ce691ec
MQTT: enlarge button and status text and keep disabled buttons readable
DevanMetz Oct 22, 2026
95a177c
Network: make lookup results readable on the dark results box
DevanMetz Oct 22, 2026
d6991dd
Ender 3: replace unsupported glyphs, enlarge G-code entry and set rea…
DevanMetz Oct 22, 2026
1f46a9b
NTP Lab: use light text for labels and the result card, enlarge field…
DevanMetz Oct 22, 2026
2c5147e
Wake-on-LAN: use light text in the status card
DevanMetz Oct 22, 2026
72caab1
UDP Console: replace unsupported dashes in TX/RX and enlarge the exch…
DevanMetz Oct 22, 2026
dd143c4
Merge branch 'ui/notes' into tmp/all-ui
DevanMetz Oct 22, 2026
7dd7c88
Merge branch 'ui/counter' into tmp/all-ui
DevanMetz Oct 22, 2026
ed16afa
Merge branch 'ui/gpio' into tmp/all-ui
DevanMetz Oct 22, 2026
84f25fd
Merge branch 'ui/settings' into tmp/all-ui
DevanMetz Oct 22, 2026
cfaf29e
Merge branch 'ui/ai-chat' into tmp/all-ui
DevanMetz Oct 22, 2026
8f70f58
Merge branch 'ui/browser' into tmp/all-ui
DevanMetz Oct 22, 2026
69b7240
Merge branch 'ui/ebooks' into tmp/all-ui
DevanMetz Oct 22, 2026
b19e68d
Merge branch 'ui/clock' into tmp/all-ui
DevanMetz Oct 22, 2026
e07c956
Merge branch 'ui/system' into tmp/all-ui
DevanMetz Oct 22, 2026
37ffca7
Merge branch 'ui/scope' into tmp/all-ui
DevanMetz Oct 22, 2026
96009d2
Merge branch 'ui/weather' into tmp/all-ui
DevanMetz Oct 22, 2026
ac5bd1d
Merge branch 'ui/govee' into tmp/all-ui
DevanMetz Oct 22, 2026
a8403fa
Merge branch 'ui/ring' into tmp/all-ui
DevanMetz Oct 22, 2026
92bdddd
Merge branch 'ui/servo-toy' into tmp/all-ui
DevanMetz Oct 22, 2026
47ba9e4
Merge branch 'ui/cycling' into tmp/all-ui
DevanMetz Oct 22, 2026
bd35396
Merge branch 'ui/i2c-tool' into tmp/all-ui
DevanMetz Oct 22, 2026
7469d81
Merge branch 'ui/serial' into tmp/all-ui
DevanMetz Oct 22, 2026
ae1b013
Merge branch 'ui/spi-master' into tmp/all-ui
DevanMetz Oct 22, 2026
3d835a4
Merge branch 'ui/signal-gen' into tmp/all-ui
DevanMetz Oct 22, 2026
9a0ceed
Merge branch 'ui/http-tool' into tmp/all-ui
DevanMetz Oct 22, 2026
78e35db
Merge branch 'ui/mqtt' into tmp/all-ui
DevanMetz Oct 22, 2026
3860de2
Merge branch 'ui/ble-gatt' into tmp/all-ui
DevanMetz Oct 22, 2026
85c8071
Merge branch 'ui/network' into tmp/all-ui
DevanMetz Oct 22, 2026
b49f037
Merge branch 'ui/ender-3' into tmp/all-ui
DevanMetz Oct 22, 2026
8174845
Merge branch 'ui/electronics' into tmp/all-ui
DevanMetz Oct 22, 2026
1887049
Merge branch 'ui/byte-lab' into tmp/all-ui
DevanMetz Oct 22, 2026
cadc49c
Merge branch 'ui/modbus-tcp' into tmp/all-ui
DevanMetz Oct 22, 2026
1d6cff0
Merge branch 'ui/ntp-lab' into tmp/all-ui
DevanMetz Oct 22, 2026
811fc3d
Merge branch 'ui/wake-on-lan' into tmp/all-ui
DevanMetz Oct 22, 2026
bd13f06
Merge branch 'ui/subnet-lab' into tmp/all-ui
DevanMetz Oct 22, 2026
b81f834
Merge branch 'ui/udp-console' into tmp/all-ui
DevanMetz Oct 22, 2026
0d483cd
Merge branch 'ui/resistor-lab' into tmp/all-ui
DevanMetz Oct 22, 2026
c2f0e51
Merge branch 'ui/rtu-frames' into tmp/all-ui
DevanMetz Oct 22, 2026
b125938
Merge preserved UI worktree history already squash-merged into main
DevanMetz Oct 24, 2026
f711e6e
test: account for measured LVGL display array tails in MQTT soak checks
DevanMetz Oct 24, 2026
25a01ea
test: wait for finite MQTT UI animations to finish before heap checks
DevanMetz Oct 24, 2026
8ad9f88
fix: fit MQTT field text inside touch controls without scroll oscilla…
DevanMetz Oct 24, 2026
e7c1d8d
test: align device network checks with the merged NTP button captions
DevanMetz Oct 24, 2026
8345c33
test: check device UI bounds within its vertically scrollable content
DevanMetz Oct 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions main/mqtt_tool.c
Original file line number Diff line number Diff line change
Expand Up @@ -1637,12 +1637,12 @@ void mqtt_tool_show(lv_obj_t *parent, bool wifi_connected, bool sd_available,

lv_obj_t *credentials = row(parent, 78);
username_area = lv_textarea_create(credentials);
lv_obj_set_size(username_area, 312, 64);
lv_obj_set_size(username_area, 312, 72);
lv_textarea_set_one_line(username_area, true);
lv_textarea_set_max_length(username_area, MQTT_CREDENTIAL_MAX + 1);
lv_textarea_set_placeholder_text(username_area, "Username");
password_area = lv_textarea_create(credentials);
lv_obj_set_size(password_area, 312, 64);
lv_obj_set_size(password_area, 312, 72);
lv_textarea_set_one_line(password_area, true);
lv_textarea_set_password_mode(password_area, true);
lv_textarea_set_max_length(password_area, MQTT_CREDENTIAL_MAX + 1);
Expand Down Expand Up @@ -1729,18 +1729,20 @@ void mqtt_tool_show(lv_obj_t *parent, bool wifi_connected, bool sd_available,
lv_textarea_set_placeholder_text(history_area, "No messages");

/* One-line textareas derive their height from the font; apply the touch
* height after enabling one-line mode so LVGL does not shrink them. */
* height after enabling one-line mode so LVGL does not shrink them.
* Leave room for the 30 px font line, 32 px padding and theme border; a
* shorter viewport repeatedly scrolls between the top and bottom of it. */
lv_obj_t *fields[] = {uri_area, username_area, password_area, topic_area, payload_area, history_area};
for (size_t i = 0; i < sizeof(fields) / sizeof(fields[0]); i++) {
lv_obj_set_style_text_font(fields[i], &lv_font_montserrat_28, 0);
lv_obj_set_style_pad_all(fields[i], 16, 0);
lv_obj_set_style_radius(fields[i], 12, 0);
}
lv_obj_set_style_text_color(history_area, lv_color_hex(0x475569), LV_PART_TEXTAREA_PLACEHOLDER);
lv_obj_set_size(uri_area, 640, 64);
lv_obj_set_size(username_area, 312, 64);
lv_obj_set_size(password_area, 312, 64);
lv_obj_set_size(topic_area, 640, 64);
lv_obj_set_size(uri_area, 640, 72);
lv_obj_set_size(username_area, 312, 72);
lv_obj_set_size(password_area, 312, 72);
lv_obj_set_size(topic_area, 640, 72);

keyboard = lv_keyboard_create(parent);
lv_obj_set_size(keyboard, 640, 360);
Expand Down
40 changes: 23 additions & 17 deletions tests/device_network/device_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ static void expect(const char *text)
static void click(const char *text)
{
lv_obj_t *label = find_text(content, text, true);
if (!label) { fprintf(stderr, "Missing button: %s\n", text); dump_text(content); }
assert(label);
lv_obj_t *button = lv_obj_get_parent(label);
assert(!lv_obj_has_state(button, LV_STATE_DISABLED));
Expand Down Expand Up @@ -102,7 +103,12 @@ static void check_bounds(lv_obj_t *o)
/* Textarea internal labels intentionally scroll inside their field. */
if (lv_obj_check_type(o, &lv_textarea_class) || lv_obj_check_type(o, &lv_keyboard_class) ||
lv_obj_check_type(o, &lv_button_class) || lv_obj_get_parent(o) == content) {
if (a.x1 < 28 || a.x2 > 691 || a.y1 < 128 || a.y2 > 1251) {
/* Larger controls and the keyboard extend the vertically scrollable
* app. Keep horizontal bounds strict and require vertical reachability. */
lv_area_t viewport; lv_obj_get_content_coords(content, &viewport);
int32_t top = viewport.y1 - LV_MAX(0, lv_obj_get_scroll_top(content));
int32_t bottom = viewport.y2 + LV_MAX(0, lv_obj_get_scroll_bottom(content));
if (a.x1 < viewport.x1 || a.x2 > viewport.x2 || a.y1 < top || a.y2 > bottom) {
fprintf(stderr, "Object overflow: (%ld,%ld)-(%ld,%ld)\n", (long)a.x1, (long)a.y1, (long)a.x2, (long)a.y2);
assert(0);
}
Expand Down Expand Up @@ -260,49 +266,49 @@ static void ntp_case(const char *scenario, const char *port)
for (size_t i = 0; i < sizeof(bad_hosts) / sizeof(bad_hosts[0]); i++) {
input(0, bad_hosts[i]);
assert(!strcmp(lv_textarea_get_text(nth(&lv_textarea_class, 0)), bad_hosts[i]));
click("SAMPLE 4"); expect("full decimal IPv4");
click("Sample 4"); expect("full decimal IPv4");
assert(host_sockets_opened == 0 && host_tasks_started == 0 && !busy());
}
input(0, "127.0.0.1");
const char *bad_ports[] = {"-9", "+9", "9x", "9.0", "1e2", "1\n23", "650001", "000001"};
for (size_t i = 0; i < sizeof(bad_ports) / sizeof(bad_ports[0]); i++) {
input(1, bad_ports[i]);
assert(!strcmp(lv_textarea_get_text(nth(&lv_textarea_class, 1)), bad_ports[i]));
click("SAMPLE 4"); expect("1 to 65535");
click("Sample 4"); expect("1 to 65535");
assert(host_sockets_opened == 0 && host_tasks_started == 0);
}
clean_app(); open_app();
assert(!strcmp(lv_textarea_get_text(nth(&lv_textarea_class, 1)), "000001"));
click("SAMPLE 4"); expect("1 to 65535");
click("Sample 4"); expect("1 to 65535");
char unicode[65];
for (unsigned i = 0; i < 16; i++) memcpy(unicode + 4 * i, "\xf0\x9f\x94\xa5", 4);
unicode[64] = 0;
input(0, unicode); clean_app(); open_app();
assert(!strcmp(lv_textarea_get_text(nth(&lv_textarea_class, 0)), unicode));
click("SAMPLE 4"); expect("full decimal IPv4");
click("Sample 4"); expect("full decimal IPv4");
input(0, "127.0.0.1"); unicode[24] = 0;
input(1, unicode); clean_app(); open_app();
assert(!strcmp(lv_textarea_get_text(nth(&lv_textarea_class, 1)), unicode));
click("SAMPLE 4"); expect("1 to 65535");
click("Sample 4"); expect("1 to 65535");
assert(host_sockets_opened == 0 && host_tasks_started == 0 && !busy());
return;
}
if (!strcmp(scenario, "ntp-gates")) {
InterlockedExchange(&host_online, 0); click("SAMPLE 4"); expect("Connect to Wi-Fi");
InterlockedExchange(&host_online, 0); click("Sample 4"); expect("Connect to Wi-Fi");
assert(host_sockets_opened == 0);
InterlockedExchange(&host_online, 1);
struct timeval time; host_gettimeofday(&time, NULL);
InterlockedExchange64(&host_wall_offset_us, -(int64_t)time.tv_sec * 1000000);
click("SAMPLE 4"); expect("Tablet clock is not set"); assert(host_sockets_opened == 0);
click("Sample 4"); expect("Tablet clock is not set"); assert(host_sockets_opened == 0);
InterlockedExchange64(&host_wall_offset_us, 0);
input(0, "999.0.0.1"); click("SAMPLE 4"); expect("full decimal IPv4");
input(0, "127.0.0.1"); input(1, "0"); click("SAMPLE 4"); expect("1 to 65535");
input(0, "999.0.0.1"); click("Sample 4"); expect("full decimal IPv4");
input(0, "127.0.0.1"); input(1, "0"); click("Sample 4"); expect("1 to 65535");
assert(host_sockets_opened == 0); return;
}
if (!strcmp(scenario, "ntp-repeated")) {
DWORD before = 0, after = 0; lv_mem_monitor_t memory_before, memory_after;
for (unsigned i = 0; i < 25; i++) {
click("SAMPLE 4"); pump_for(200); expect("1 valid");
click("Sample 4"); pump_for(200); expect("1 valid");
clean_app(); finish();
if (i == 0) { GetProcessHandleCount(GetCurrentProcess(), &before); lv_mem_monitor(&memory_before); }
open_app(); expect("Cancelled; UDP socket closed.");
Expand All @@ -313,15 +319,15 @@ static void ntp_case(const char *scenario, const char *port)
open_app(); return;
}
int64_t started = esp_timer_get_time();
click("SAMPLE 4");
click("Sample 4");
if (!strcmp(scenario, "ntp-stop") || !strcmp(scenario, "ntp-home")) {
pump_for(250); assert(busy()); int64_t cancel_at = esp_timer_get_time();
if (!strcmp(scenario, "ntp-stop")) click("STOP"); else clean_app();
if (!strcmp(scenario, "ntp-stop")) click("Stop"); else clean_app();
finish(); assert(esp_timer_get_time() - cancel_at < 1200000);
if (!strcmp(scenario, "ntp-home")) open_app();
expect("Cancelled; UDP socket closed.");
printf("cancel_ms=%lld ", (long long)((esp_timer_get_time() - cancel_at) / 1000));
click("SAMPLE 4"); finish(); expect("KoD RATE");
click("Sample 4"); finish(); expect("KoD RATE");
} else if (!strcmp(scenario, "ntp-clockstep") || !strcmp(scenario, "ntp-clockgap")) {
pump_for(200);
if (!strcmp(scenario, "ntp-clockgap")) expect("1 valid");
Expand Down Expand Up @@ -616,13 +622,13 @@ static void queued_check(bool condition, const char *message)
}
static void launch_job(void)
{
if (ntp) click("SAMPLE 4");
if (ntp) click("Sample 4");
else if (udp) start_udp();
else start_wol();
}
static void force_launch(void)
{
lv_obj_t *label = find_text(content, ntp ? "SAMPLE 4" : "SEND", true);
lv_obj_t *label = find_text(content, ntp ? "Sample 4" : "SEND", true);
assert(label);
lv_obj_send_event(lv_obj_get_parent(label), LV_EVENT_CLICKED, NULL);
}
Expand Down Expand Up @@ -704,7 +710,7 @@ static void queued_case(const char *scenario, const char *port)
bool home = strstr(scenario, "-home") != NULL;
LONG sockets = host_sockets_opened;
hold_job();
if (cancel) click(ntp ? "STOP" : "CANCEL");
if (cancel) click(ntp ? "Stop" : "CANCEL");
if (home) {
clean_app(); open_app();
assert(busy());
Expand Down
Loading
Loading