I opened the default example Blink.ino in Arduino IDE,
just added LED_BUILTIN and those Serial.* to see something happening in the console,
but the ESP32 LED just flickers everytime it is set to HIGH or LOW.
(Serial output is working)
I don't get the LED to stay ON...
Code: Select all
#define LED_BUILTIN 1
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
Serial.begin(115200);
}
// the loop function runs over and over again forever
void loop() {
Serial.printf("LED %d: HIGH\n", LED_BUILTIN);
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
Serial.printf("LED %d: LOW\n", LED_BUILTIN);
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}