arduino nano esp32's builtin yellow and RGB LED is not working
Hi @geonwoo1234. Please upload this simple test sketch to your Nano ESP32 board:
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
pinMode(LED_RED, OUTPUT);
pinMode(LED_GREEN, OUTPUT);
pinMode(LED_BLUE, OUTPUT);
}
void loop() {
digitalWrite(LED_BUILTIN, HIGH);
delay(500);
digitalWrite(LED_BUILTIN, LOW);
delay(500);
digitalWrite(LED_RED, LOW);
delay(500);
digitalWrite(LED_RED, HIGH);
delay(500);
digitalWrite(LED_GREEN, LOW);
delay(500);
digitalWrite(LED_GREEN, HIGH);
delay(500);
digitalWrite(LED_BLUE, LOW);
delay(500);
digitalWrite(LED_BLUE, HIGH);
delay(500);
}
After uploading that sketch, do you see each of the LEDs blink on and off in turn?
1 Like
thank you for your helpI got it fixed up thank you
You are welcome. I'm glad it is working now.
Regards, Per