I'm working on a project with an ESP32-C3-DevKit-M1, where I'm using GPIO19 for an input button. My design had the button connected to GPIO19 and VCC (3.3v from module).
Code: Select all
#define rightButtonPin 19
#define leftButtonPin 2
void setup() {
pinMode(rightButtonPin, INPUT_PULLDOWN);
pinMode(leftButtonPin, INPUT_PULLDOWN);
The ESP32-C3 documentation says that all the GPIO pins have both internal pull-up and pull-down resistors, but I cannot get the internal pull-down resistor to activate. It works fine on other pins (such as GPIO18, for instance). I swapped out the module to make sure I wasn't dealing with bad hardware. Am I doing something wrong? Is there something special about GPIO19 that is not allowing it to set a Pull-down resistor?
thanks