1What you need
- RGB LED
- 4 wires
2Challenge
####Connect an RGB LED to the Calliope mini. Display the colors of the rainbow one after the other.
3Solution
###Code
Here is a code example with two colors. For more colors just copy blocks and paste values.
![](https://calliope.cc/media/pages/projekte/farben-des-regenbogens/136e9a7579-1558479290/regenbogenfarben01.gif)
Note: These are the 10-bit values of the rainbow.
![](https://calliope.cc/media/pages/projekte/farben-des-regenbogens/8816a31c69-1558479291/regenbogenfarben02.gif)
Electronics
RGB-LED
- kürzestes Bein (grün): analog output (P2)
- longest leg (black): GND (-)
- leg next to green (blue): analog output (P1)
- outer leg (red): analog output (P16)
![](https://calliope.cc/media/pages/projekte/farben-des-regenbogens/a03409af5b-1558479293/regenbogenfarben03.gif)
This text as well as the image is published under a CC BY-SA 4.0 DE license popup: yes. It was originally published in German popup: yes by phzh popup: yes and translated into English by the Calliope team.