ESP32-WROOM-32E - GPIO33 as digital output

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

ESP32-WROOM-32E - GPIO33 as digital output

Postby giacominconsulting » Mon May 22, 2023 4:14 pm

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

ESP_Sprite
Posts: 9730
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Tue May 23, 2023 11:27 am

Try gpio_reset_pin().

Who is online

Users browsing this forum: Bing [Bot] and 71 guests