The RGB LED
Section 6: Distance, the screen and coloursLesson 6.3 · ⏱ 6 min
An RGB LED has three small LEDs inside: red, green and blue. Mixing them makes many colours: red + green = yellow.

📌 Another example: three colours in order
Red, then green, then blue, a second for each colour.




✍️ Practise
Show 3 colours.
✍️ Practise here in the lesson✖ Close the labor open the lab in a new page ↗
🎯 Challenge yourself
Easy
Make the LED purple.
👀 Show the solution🙈 Hide the solution


Result: purple.
Medium
A traffic light with one LED: green, yellow, red.
👀 Show the solution🙈 Hide the solution


Result: three colours in order.
Hard
A rainbow: seven colours, half a second for each colour.
👀 Show the solution🙈 Hide the solution


Result: the colours change.

