Tutorial 13: Programming DotStars (APA102)
In the previous tutorial I showed you how to connect DotStars to your Arduino and upload a sketch to light them up for the first time. The tutorial quickly went through the code in the example upload. Great for ensuring we're wired correctly, but we are left not understanding how to make our own patterns on the strips.
In this tutorial I go a bit deeper on how you can write colors to individual LEDs and introduce some programming concepts that allow you to create patterns (including for loops, if statements, and bitwise operations). By the end of this tutorial you will understand how to send the correct color and brightness to a LED such that it can work for your project.