ESP32-WROOM-322E - GPIO35 as Digital Input

giacominconsulting
Posts: 3
Joined: Sat Apr 09, 2022 9:32 am

ESP32-WROOM-322E - GPIO35 as Digital Input

Postby giacominconsulting » 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

Who is online

Users browsing this forum: No registered users and 92 guests