Search found 3 matches
- Mon May 22, 2023 4:14 pm
- Forum: General Discussion
- Topic: ESP32-WROOM-32E - GPIO33 as digital output
- Replies: 1
- Views: 751
ESP32-WROOM-32E - GPIO33 as digital output
Hello I am trying to configure GPIO_NUM_33 as digital output, below the code: gpio_set_direction(GPIO_NUM_33, GPIO_MODE_OUTPUT); while (1) { vTaskDelay(500 / portTICK_PERIOD_MS); /* Toggle the LED state */ s_led_state = !s_led_state; gpio_set_level(GPIO_NUM_33, s_led_state); } but it seems that it d...
- Sat May 20, 2023 11:22 am
- Forum: ESP-IDF
- Topic: Can you use GPIO35 (ESP32-WROOM-32E) as digital input?
- Replies: 0
- Views: 550
Can you use GPIO35 (ESP32-WROOM-32E) as digital input?
Hello,
Can you use GPIO35 (ESP32-WROOM-32E) as digital input?
I try it but it doesn't work:
if ( gpio_get_level(POWER_CNTR)==0 ){
imptasti.bit.inflag = 1;
ESP_LOGI(APP_TAG, "POWER_CNTR pin = 0");
}
else{
ESP_LOGI(APP_TAG, "POWER_CNTR pin = 1");
}
Regards,
Can you use GPIO35 (ESP32-WROOM-32E) as digital input?
I try it but it doesn't work:
if ( gpio_get_level(POWER_CNTR)==0 ){
imptasti.bit.inflag = 1;
ESP_LOGI(APP_TAG, "POWER_CNTR pin = 0");
}
else{
ESP_LOGI(APP_TAG, "POWER_CNTR pin = 1");
}
Regards,
- Sat May 20, 2023 11:15 am
- Forum: General Discussion
- Topic: ESP32-WROOM-322E - GPIO35 as Digital Input
- Replies: 0
- Views: 583
ESP32-WROOM-322E - GPIO35 as Digital Input
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 y...