Note: This example assumes you are using the latest version of the Arduino IDE on your desktop. If this is
your first time using Arduino, please review our tutorial on installing the Arduino IDE. If you have not
previously installed an Arduino library, please check out our installation guide.
Teensyduino Add-On
If you haven’t used Teensy before, you’ll need to download and install the extension for the Arduino IDE called
Teensyduino from PJRC. This will also install the drivers for the board. Follow the instructions on installing the add-
on before continuing on.
PJRC: TEENSYDUINO DOWNLOAD PAGE
Install Library
Louis Beaudoin has written an amazing library to control the RGB LED matrix panels. You can obtain these
libraries through the Arduino Library Manager. Search for SmartMatrix3 and you should be able to install the
latest version. If you prefer downloading the libraries manually you can also grab them from the GitHub repository:
GITHUB PIXELMATIX - SMARTMATRIX (ZIP)
Library Overview
For an overview of the functions, check out documentation in the MIGRATION.md file from the GitHub repository.
GITHUBPIXELMATIX DOCS - SMARTMATRIX LIBRARY OVERVIEW
Example: Feature Demo!
There are a few examples from the SmartMatrix library for the SmartLED Shield. For the scope of the tutorial, we
will be highlighting three of the examples.
Feature Demo!
Let's start with the feature demo. After installing the library, click File > Examples > SmartMatrix3 >
FeatureDemo.ino in the Arduino IDE. Once open, there are a minimum of 4 lines to modify to get the example
working with your matrix panel:
uncomment line “ #include <SmartLEDShieldV4.h> ” if you are using the shield
adjust kMatrixWidth to the width of your panel
adjust kMatrixHeight to the height of your panel
adjust kPanelType based on the scan rate of your panel from line 34 in SmartMatrix3.h
The comments in the example code indicate that he known working width are: “32, 64, 96, 128”. As for the height,
the known working sizes are: 16, 32, 48, 64. If you dig into the library, the known working scan rates are 1:8, 1:16,
and 1:32.
64x64 Panel with 1/32 Scan Rate
Let's try modifying the example code to work with the 64x64 panel with a 1/32 scan rate. The SmartLED shield is
required to address the extra 5th ADDX pin on the IDC connector. Simply: