#106
ESP32 Built-in LED Blink
Blinking the built-in blue LED on the ESP32 DevKit V1. No external components required! The first project you should try when you buy an ESP32. GPIO 2 is connected to the built-in LED.
Blinking the built-in blue LED on the ESP32 DevKit V1. No external components required! The first project you should try when you buy an ESP32. GPIO 2 is connected to the built-in LED.


1const int BUILTIN_LED_PIN = 2;
2
3void setup() {
4 pinMode(BUILTIN_LED_PIN, OUTPUT);
5}
6
7void loop() {
8 digitalWrite(BUILTIN_LED_PIN, HIGH);
9 delay(1000);
10 digitalWrite(BUILTIN_LED_PIN, LOW);
11 delay(1000);
12}