
What you’ll make
Your UNO R3 board has its own small light, an LED, on pin 131. In this lesson you make it blink: on for one second, then off for one second.
A pin is a numbered connection on the board. Your code can turn a pin on, to 5 volts, or off, to 0 volts3.
See it first
Press Run to start the code on the on-screen board. Your computer acts as the board, so you don’t need a real one yet.
What you need
- For the on-screen board: nothing. It runs in this page.
- For a real board: an Arduino UNO R3 and a USB cable. The light is already on the board, so you need no wires5.
Next, you’ll read the code one line at a time.
Sources for this page
- ArduinoCore-avr, variants/standard/pins_arduino.h: LED_BUILTIN is 13; pin 13 is PB5
- Arduino reference: digitalWrite
- Arduino UNO R3 technical specifications: Built-in LED Pin: 13