diff --git a/ESP32-Console/main/cmd_gpio_get.h b/ESP32-Console/main/cmd_gpio_get.h index db1dddda3..49e709c4c 100644 --- a/ESP32-Console/main/cmd_gpio_get.h +++ b/ESP32-Console/main/cmd_gpio_get.h @@ -21,4 +21,18 @@ static int exec_gpio_get_cmd(int argc, char **argv) { return 0; } +static void register_set_gpio (void) { + + gpio_get_args.gpio = arg_int0("p", "gpio", "", "Specifies GPIO to be used."); + gpio_get_args.end = arg_end(2); + const esp_console_cmd_t gpio_get_cmd = { + .command = "gpio-set", + .help = "Sets GPIOs logic levels", + .hint = NULL, + .func = &exec_gpio_get_cmd, + .argtable = &gpio_get_args + }; + ESP_ERROR_CHECK(esp_console_cmd_register(&gpio_get_cmd)); +} + #endif \ No newline at end of file