Here is my code:
#define LED_BUILTIN 12 void setup() { pinMode(LED_BUILTIN, OUTPUT); } void loop() { digitalWrite(LED_BUILTIN, HIGH); delay(1000); digitalWrite(LED_BUILTIN, LOW); delay(1000); } The above code works perfectly fine for GPIO_2 but fails for GPIO_12. Is it giving a fault because I am using a touchpad pin or there is some other error?
I have attached an LED to GPIO_12 of the ESP32. After uploading the program, my LED is not blinking. I have tried to connect voltmeter to GPIO_12 and it is giving 0.5 volts with minor fluctuation. I was expecting a change of voltage after each second as per HIGH/LOW conditions of my code but unfortunately, I am not getting the desired result. What could be the possible reason?