Connect the LED safely
Connect D13 to a 1 kΩ resistor, then the LED anode. Connect the cathode to GND.
Build a basic Arduino Uno circuit with labeled pins, component values and connection guidance.
USB power, D13, a 1 kΩ resistor and a red LED.
Follow the component values and pin connections
Connect D13 to a 1 kΩ resistor, then the LED anode. Connect the cathode to GND.
Set pin 13 to OUTPUT in setup(). Alternate HIGH and LOW in loop(), with a 1000 ms delay after each change.
The external LED and onboard L LED turn on for one second and off for one second. Total period is two seconds.