ESP32-Console

This commit is contained in:
2025-01-17 18:18:02 -05:00
parent f6cffe72e8
commit 66b8e87730
4 changed files with 211 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ static int exec_gpio_set_cmd (int argc, char **argv) {
// Function registering the 'gpio-set' command with its arguments.
static void register_gpio_set_cmd (void) {
gpio_set_args.gpio = arg_int1("p", "gpio", "<pin>", "Specifies GPIO to be used");
gpio_set_args.gpio = arg_int0("p", "gpio", "<pin>", "Specifies GPIO to be used");
gpio_set_args.mode = arg_str0("m", "mode", "<in|out>", "Sets the mode of GPIO.");
gpio_set_args.level = arg_int0("l", "level", "<1|0>", "Sets the logical level of GPIO.");
gpio_set_args.pwm = arg_int0("f", "pwm", "<num>", "Set PWM for GPIO.");