User Manual
Test Example Code
We have example code ready to go for these displays. It's compatible with the Arduino Uno or Mega…but
not
other
boards like the Leonardo, nor “Arduino-like” boards such as Netduino…programming gurus
might
be able to port it to
other microcontrollers by adapting the C++ source, but as written it does some pretty low-level, non-portable things.
Two
libraries need to be downloaded and installed: first is the RGB Matrix Panel library (https://adafru.it/aHj) (this
contains the low-level code specific to this device), and second is the Adafruit GFX Library (https://adafru.it/aJa) (which
handles graphics operations common to many displays we carry).
Both libraries can be found and installed using the
Arduino Library Manager (Sketch→Include
Library→Manage Libraries…). Search for “gfx” and “rgb
matrix panel” and install the corresponding Adafruit
libraries.
Now you are ready to test! Open up the IDE and load File→Examples→RGBmatrixPanel→testcolors_16x32 (for the
16x32 panel) or File→Examples→RGBmatrixPanel→colorwheel_32x32 (for the 32x32 panel).
If using an Arduino Mega 2560, in addition to wiring changes previously mentioned, you'll need to make a small
change to each of the example sketches. This line:
The library works with a LIMITED NUMBER of boards: Arduino Uno, Mega, Zero, Adafruit Metro M0 and Metro
M4. Other boards (such as the Arduino Leonardo) ARE NOT SUPPORTED.
© Adafruit Industries https://learn.adafruit.com/32x16-32x32-rgb-led-matrix Page 32 of 44










