ESP32-Console

This commit is contained in:
2025-01-17 18:37:46 -05:00
parent 7c36cc0aee
commit 23192c0721
2 changed files with 1 additions and 1 deletions

View File

@@ -40,7 +40,7 @@ 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%d", gpio_get_level(8));
printf("\n %d ", gpio_get_level((int)8));
s = 0;
}
// Dump GPIO configuration information.