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.
Note: These are the 10-bit values of the rainbow.
- 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)
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.