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.


  • Arduino Uno
  • USB-A – USB-B Cable
  • DotStars (APA102) LEDs
  • Wires that bring it all together
DIFFICULTY
MEDIUM
C++ PROGRAMMING
SOME
ABOUT
0
MINUTES