ESP32-Console

This commit is contained in:
2025-01-15 09:14:54 -05:00
parent 6487785ba3
commit 3ac0acd9e7

View File

@@ -138,6 +138,9 @@ static int exec_gpio_cmd (int argc, char **argv) {
return 0;
}
static void register_gpio (void) {
gpio_args.gpio = arg_int0(NULL, "gpio", "<pin>", "Specifies GPIO to be used");
gpio_args.mode = arg_str0(NULL, "mode", "<in|out>", "Sets the mode of GPIO.");
const esp_console_cmd_t gpio_cmd = {
.command = "GPIO",
.help = "Sets/Gets GPIOs",