DualLedController/components/command/cmd_custom.c

19 lines
415 B
C
Raw Normal View History

2024-05-16 01:09:36 +08:00
#include "cmd_custom.h"
#include "esp_console.h"
static int custom_command(int argc, char **argv) {
printf("i am amass.\n");
return 0;
}
void register_custom() {
const esp_console_cmd_t heap_cmd = {
.command = "amass",
.help = "test command.",
.hint = NULL,
.func = &custom_command,
};
ESP_ERROR_CHECK(esp_console_cmd_register(&heap_cmd));
}