This recipe will produce a ring of colors following the same sequence of colors found in a rainbow. These colors will each appear after a certain delay, creating a rainbow animation effect. Using a sequence of colors that naturally fits together, like the ones found in the rainbow, can be both pleasing and engaging. The strength of this animation is in learning how to control the exact sequence of colors being animated, whether they be in a rainbow sequence or another sequence of your choosing.
Creating LED animations with rainbow colors
Getting ready
You will need access to the REPL on the Circuit Playground Express to run the code presented in this recipe.