ESP32-Console

This commit is contained in:
2025-01-17 18:47:52 -05:00
parent 8245ee9436
commit fe7ce0e134

View File

@@ -40,8 +40,8 @@ static int exec_gpio_get_cmd(int argc, char **argv) {
//ESP_LOGI("gpio-get", "GPIO # %i", gpio_get_args.gpio->ival[0]);
//gpio_dump_io_configuration(stdout, 1ULL << gpio_get_args.gpio->ival[0]);
printf("GPIO #%d level is %d\n", gpio_get_args.gpio->ival[0], gpio_get_level(gpio_get_args.gpio->ival[0]));
printf("\n %i ", gpio_get_level(GPIO_NUM_8));
printf("GPIO level was changed.");
ESP_LIGW("gpio-get}, "\n %d ", gpio_get_level(GPIO_NUM_8));
//printf("GPIO level was changed.");
s = 0;
}
// Dump GPIO configuration information.