Datasheet
NeoMatrix Library
The Adafruit_NeoMatrix library builds upon Adafruit_NeoPixel to create two-dimensional graphic
displays using NeoPixels. You can then easily draw shapes, text and animation without having to
calculate every X/Y pixel position. Small NeoPixel matrices are available in the shop. Larger displays
can be formed using sections of NeoPixel strip, as shown in the photo above.
In addition to the Adafruit_NeoPixel library (which was already downloaded and installed in a prior
step), NeoMatrix requires two additional libraries:
1. Adafruit_NeoMatrix (http://adafru.it/cDt)
2. Adafruit_GFX (http://adafru.it/cBB)
If you’ve previously used any Adafruit LCD or OLED displays, you might already have the latter
library installed.
Installation for both is similar to Adafruit_NeoPixel before: unzip, make sure the folder name
matches the .cpp and .h files within, then move to your Arduino libraries folder and restart the IDE.
Arduino sketches need to include all three headers just to use this library:
#include <Adafruit_GFX.h>
#include <Adafruit_NeoMatrix.h>
#include <Adafruit_NeoPixel.h>
#ifndef PSTR
#define PSTR // Make Arduino Due happy
#endif
© Adafruit Industries https://learn.adafruit.com/adafruit-neopixel-uberguide Page 28 of 39