Page 1 of 1

ESP32-WROOM-32E - GPIO33 as digital output

Posted: Mon May 22, 2023 4:14 pm
by giacominconsulting
Hello

I am trying to configure GPIO_NUM_33 as digital output, below the
code:
  1.     gpio_set_direction(GPIO_NUM_33, GPIO_MODE_OUTPUT);
  2.    
  3.     while (1) {
  4.         vTaskDelay(500 / portTICK_PERIOD_MS);
  5.         /* Toggle the LED state */
  6.         s_led_state = !s_led_state;
  7.         gpio_set_level(GPIO_NUM_33, s_led_state);
  8.     }
but it seems that it does not work.
In the datasheet I read that GPIO_NUM_33 is an I/O pin, so I do not understand why it does not work. Do you have any suggestions?

Thank you, Marco

Re: ESP32-WROOM-32E - GPIO33 as digital output

Posted: Tue May 23, 2023 11:27 am
by ESP_Sprite
Try gpio_reset_pin().