Turn on the LED
Section 1: The start: the ArduinoLesson 1.3 · ⏱ 6 min
The LED is connected to pin 13. The digitalWrite command makes the pin HIGH (5 volts, so the LED lights up) or LOW (zero, so it goes off).

🖥️ What happens on the stage?
The LED on pin 13 lights up and stays on.
📌 Another example: the green LED
The green LED is on pin 12.


✍️ Practise
Turn on the LED.
✍️ Practise here in the lesson✖ Close the labor open the lab in a new page ↗
✍️ Practise
Practice: turn on the green LED on pin 12.
✍️ Practise here in the lesson✖ Close the labor open the lab in a new page ↗
🎯 Challenge yourself
Easy
Turn on the red LED on pin 13.
👀 Show the solution🙈 Hide the solution


Result: the red LED is on.
Medium
Two LEDs: turn on the red (13) and the green (12) together.
👀 Show the solution🙈 Hide the solution


Result: they light up together.
Hard
Turn on only the green, and set the red to LOW clearly.
👀 Show the solution🙈 Hide the solution


Result: only the green.

