ESP32-Console

This commit is contained in:
2025-01-17 19:05:45 -05:00
parent 1e03cf4257
commit f22ea1f82d

View File

@@ -48,6 +48,8 @@ static int exec_gpio_set_cmd (int argc, char **argv) {
// Since we are setting the pin level, set the pin mode to OUTPUT // Since we are setting the pin level, set the pin mode to OUTPUT
if (strcmp(gpio_set_args.mode->sval[0], "out") == 0) { if (strcmp(gpio_set_args.mode->sval[0], "out") == 0) {
pin_config.mode = GPIO_MODE_OUTPUT; pin_config.mode = GPIO_MODE_OUTPUT;
pin_config.pull_down_en = false;
pin_config.pull_up_en = false;
// Submit pin configuration // Submit pin configuration
gpio_config(&pin_config); gpio_config(&pin_config);
// Change the pin level // Change the pin level