Add OLED and button diagnostics

This commit is contained in:
2026-08-29 14:13:34 +02:00
parent bb04e0ba79
commit ec9ca5e6d2
13 changed files with 1117 additions and 28 deletions
+7 -1
View File
@@ -17,6 +17,7 @@
#include "freertos/FreeRTOS.h"
#include "freertos/queue.h"
#include "freertos/task.h"
#include "local_ui_hw_test.h"
#include "rs232_port_owner.h"
#include "status_led.h"
@@ -1583,6 +1584,7 @@ static void print_debug_usage(void)
printf(" debug loopback-a|loopback-b|valid-test\n");
printf(" debug uart-loopback <baud> [format] [bytes]\n");
printf(" debug uart-suite|cts-flow-test|rts-flow-test\n");
local_ui_hw_test_print_usage();
}
static int command_debug(int argc, char **argv)
@@ -1620,6 +1622,10 @@ static int command_debug(int argc, char **argv)
if (strcmp(argv[1], "rts-flow-test") == 0) {
return command_rts_flow_test(argc - 1, argv + 1);
}
if (strcmp(argv[1], "display") == 0 ||
strcmp(argv[1], "buttons") == 0) {
return local_ui_hw_test_execute(argc - 1, argv + 1);
}
printf("Unknown debug command '%s'.\n", argv[1]);
print_debug_usage();
@@ -1650,7 +1656,7 @@ esp_err_t rs232_hw_test_register_console_commands(void)
},
{
.command = "debug",
.help = "Low-level RS-232 hardware diagnostics; run 'debug' for subcommands",
.help = "Low-level RS-232 and local-UI hardware diagnostics; run 'debug' for subcommands",
.hint = NULL,
.func = &command_debug,
.argtable = NULL,