Skip to content

The Arduino built-in LED

New Course Coming Soon:

Get Really Good at Git

Arduino boards come with a little utility: the built-in LED.

It is identified by the letter L next to it. On the Arduino Uno, it is near pin #13:

On the Arduino MKR 1010 WiFi it is near the 5V output pin:

This LED is connected to the digital I/O pin #13 in most boards. In some boards, like the Arduino MKR series, it’s linked to the pin #6.

In any case you can reference the exact pin using the LED_BUILTIN constant, that is always correctly mapped by the Arduino IDE to the correct pin, depending on the board you are compiling for.

To light up the LED, first you need to set the pin to be an output in setup():


Then you can send it a HIGH signal:

digitalWrite(LED_BUILTIN, HIGH);


digitalWrite(LED_BUILTIN, 1);

Here is a simple program that makes the built-in LED blink every second:

void setup() {

void loop() {
    digitalWrite(LED_BUILTIN, HIGH);
    digitalWrite(LED_BUILTIN, LOW);
Are you intimidated by Git? Can’t figure out merge vs rebase? Are you afraid of screwing up something any time you have to do something in Git? Do you rely on ChatGPT or random people’s answer on StackOverflow to fix your problems? Your coworkers are tired of explaining Git to you all the time? Git is something we all need to use, but few of us really master it. I created this course to improve your Git (and GitHub) knowledge at a radical level. A course that helps you feel less frustrated with Git. Launching Summer 2024. Join the waiting list!

Here is how can I help you: