So this is my first time working with ESP32 or any MCU at all and I'm trying to blink an external LED connected to my GPIO16 pin but it doesn´t seem to be working. My board is a 38pin ESP32 with only one internal LED connected to pin 1 (not to pin 2 as many other esp32 dev boards) which I was actually able to blink with the blink example program.
I've tried connecting my external LED positive terminal to GPIO17 and GPIO18 as well but still doesn't work. I'm grounding my LED negative terminal with one of the GND pins of the dev board and I've also tried using the other 2 GND pins available but the result is the same.
In the Arduino IDE I'm using ESP32 Dev Module as my board in the boards manager and the serial communication seems to be working just fine, I'm just not being able to output the HIGH and LOW signals to light up my LED.
The limiting resistor I'm using is a 220 Ohm.
Here's the code I've been trying to achieve this:
int ledPin = 16;
void setup() {
pinMode(ledPin, OUTPUT);
}
void loop () {
digitalWrite(ledPin,HIGH);
delay(1000);
digitalWrite(ledPin,LOW);
delay(1000);
}
Is it possible that my pins are outputting a very low voltage or that they might not work?
I leave a picture of my pinout. Thank you very much in advance!!