The Sparkle has got to be one of the most popular and satisfying Crumbs (components) for the Crumble. It is an easy to use RGB LED, and as such, allows a variety of different colours to be produced. If this wasn’t enough, you can chain up to 32 together, and individually control them!
You need to connect the + and – output on the Crumble to the corresponding pads on the Sparkle, and you need to connect D on the Crumble to the data in pad on the Sparkle. The Crumble should connect to the left-hand-side of the Sparkle (as pictured above).
Note: Don’t forget you will need to add batteries.
These are the blocks associated with the Sparkle. You can program individual Sparkles, or control them all. You can even choose specific RGB values.
This code, which repeats forever, turns Sparkle(0) (which is the first one) red, then waits 200ms, then turns it blue and waits another 200ms.
This is the end result.
The same principles apply to our other Sparkle-based projects, including the Sparkle Baton and Matrix.