DotStar Matrices
We also sell these lovely DotStars in MATRIX form! This gives you a grid of LEDs for 2D
blinkin-fun.
You can easily turn a flexible DotStar matrix into your very own glowing canvas by using
the Adafruit DotStarMatrix library (http://adafru.it/iZf).
We have the flexible matrices in multiple size:
Rectangular 8x32 (256 pixels) (http://adafru.it/2736)
Square 16x16 (256 pixels) (http://adafru.it/2735)
Square 8x8 (64 pixels) (http://adafru.it/2734)
To get going, install the Adafruit DotStarMatrix library (http://adafru.it/iZf)
You can download a zip of the latest DotStarMatrix library by clicking below
Download Adafruit_DotStarMatrix
http://adafru.it/iZA
Unzip and rename the resulting folder “Adafruit_DotStarMatrix”, making sure it contains
Adafruit_DotStarMatrix.cpp. Move that folder to your ArduinoSketchBook/Libraries folder
and restart the Arduino IDE. Library installation is a frequent stumbling block…if you need
assistance, our All About Arduino Libraries (http://adafru.it/dit) guide spells it out in detail!
You'll also need the Adafruit_GFX library, if you dont have it already, download it from
here (http://adafru.it/aJa). Or by clicking below for the zip
Download Adafruit_GFX
http://adafru.it/aJa
Once you have both libraries, restart the IDE and open up the File->Examples-
>Adafruit_DotStarMatrix->matrixtest example, and adjust the data/clock lines to what
you're planning on using
#define DATAPIN 4
#define CLOCKPIN 5
Then, depending on your matrix size & style, you'll have to also adjust this line:
Adafruit_DotStarMatrix matrix = Adafruit_DotStarMatrix(