I'm trying to use GPIO 39 as an output to drive an LED. I know on the ESP32 WROOM that's not possible, but it should be possible on the ESP32-S2. However, the output remains low.
gpio_set_direction(39, GPIO_MODE_OUTPUT);
gpio_set_level(39, HIGH);
What can I do? Is it conflicting with jtag (since IO39 is shared with the MTCK jtag function)? If so, how do I disable this?
ESP32-S2 - GPIO 39 not working as ouput?
-
- Posts: 9764
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP32-S2 - GPIO 39 not working as ouput?
Yes, it probably is configured by default to JTAG. Use gpio_reset() to reconfigure it to a plain old GPIO.
Re: ESP32-S2 - GPIO 39 not working as ouput?
That worked! Many thanks!
Who is online
Users browsing this forum: No registered users and 96 guests