ESP32-WROOM-322E - GPIO35 as Digital Input
Posted: Sat May 20, 2023 11:15 am
Hello,
Can you use GPIO35 as digital inpunt?
I did some test but it does not work.
#define POWER_CNTR GPIO_NUM_35
gpio_set_direction(DB_POWER_CNTR, GPIO_MODE_INPUT);
if ( gpio_get_level(POWER_CNTR)==0 ){
ESP_LOGI(APP_TAG, "POWER_CNTR pin = 0");
}
else{
ESP_LOGI(APP_TAG, "POWER_CNTR pin = 1");
}
Do you have any suggestions?
Thanks
Can you use GPIO35 as digital inpunt?
I did some test but it does not work.
#define POWER_CNTR GPIO_NUM_35
gpio_set_direction(DB_POWER_CNTR, GPIO_MODE_INPUT);
if ( gpio_get_level(POWER_CNTR)==0 ){
ESP_LOGI(APP_TAG, "POWER_CNTR pin = 0");
}
else{
ESP_LOGI(APP_TAG, "POWER_CNTR pin = 1");
}
Do you have any suggestions?
Thanks