-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESP32C3 GPIO4 and GPIO5 not working #9
Comments
I've been going crazy with this issue for a while. unsafe {
gpio_reset_pin(gpio_num_t_GPIO_NUM_6);
gpio_reset_pin(gpio_num_t_GPIO_NUM_7);
gpio_reset_pin(gpio_num_t_GPIO_NUM_10);
} once I do this, everything works as expected |
Thanks for the workaround 👍 |
Thank you @mtorromeo! |
I believe that the Referencing Table 5-2 in the ESP32-C3's TRM (v0.4) it seems that all the values in the However in
According to the register field diagram the reset value is Is it possible the default |
I experience the same issue with the LED (GPIO 8) on the esp32c3 Devkit M. For me even resetting doesn't change much, sometimes the LED goes on but not off and sometimes it doesn't work at all. |
I also experience this on an older esp32 devkit, and the workaround with resetting the pin helped. |
@jessebraham - the ESP-IDF blinking LED sample seems to reset the pin prior to using it. Adding a pin reset code in the |
... and into the |
Resetting the pin seems to resolve the issue based on my limited testing. I think this is a fine solution for now. I have a fix ready to PR, I'm just going to do a bit more testing before I submit it. |
I'm an unable to control GPIO 4 and 5. Matrix user jessebraham was able to reproduce this.
Other GPIOs behave as expected (using the same code as for GPIO4 and 5)
The text was updated successfully, but these errors were encountered: