Using UART0 pins as GPIO on ESP32-C3 #17169
Unanswered
designrulesco
asked this question in
ESP32
Replies: 2 comments 5 replies
-
You can use GitHub Flavored Markdown to format your posts. In particular use 'triple backtick' |
Beta Was this translation helpful? Give feedback.
3 replies
-
The "ESP32_GENERIC_C3" firmware enables REPL on UART0 by default. This is defined in "boards/ESP32_GENERIC_C3/mpconfigboard.h"
You can try to download and flash the "LOLIN_C3_MINI" firmware to your board, as this does not attach UART0 to REPL. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm having an issue using the UART0 pins (20,21) on the ESP32-C3 (specifically ESP32-C3-WROOM-02 module) as GPIOs (specifically, inputs).
I'm using the latest generic 1.25.0 image and set the pins to inputs, but it doesn't work. I use some regular GPIO's in the same manner and they properly trigger and poll with value changes. Espressif says these can be used as GPIO's, but I'm wondering if there's anything strange/specific to micropython preventing me from doing so and if anyone had any guidance.
I don't need the hardware UART (not using it), and am just using USB Serial.
Code below.
Beta Was this translation helpful? Give feedback.
All reactions