
#include "LedControl.h" #include "binary./* * Created by ArduinoGetStarted.
LED MATRIX PANEL CODE
SAMPLE CODE FOR ONE 8x8 LED MATRIX //This code below will turn on every dot of the matrix to test that all LEDs work. Place an "X" everywhere you can see the cells and leave the black cells blank (OFF), and there you have it. These panels require 13 digital pins (6 bit data, 7 bit control) and a good 5V supply, up to 4A per. On the back there is a PCB with a set of dual IDC connectors (one input, one output) and 12 16-bit latches that allow you to drive the display with a 1:16 scan rate. Use the keyboard to navigate between cells because the mouse will just click the image. They have bright RGB LEDs arranged in a 32x32, 32圆4 or 64圆4 grid on the front. Using the Picture tools, you can select the white cells as the "transparent color" that way you can see the grid of cells behind it. (Note: Your Macro security settings in Excel may need to be lowered to allow the button to run its function of creating the code.) The best method I found for the QR codes is to create one on another website, import the image and scale correctly so each dot has its own cell. Just place an "X" or other character in the cell you wish to light up, then click the "Build Code" button and it will create the code for Arduino and copy it to your clipboard.

The spreadsheet tool (Excel file near the bottom of the page) assumes there are 16 panels arranged 4x4, and the order as the Arduino sees it is left to right from top to bottom. My spreadsheet tool was designed for 16 LED matrix panels, chained together in two groups of 8. The library can be found here: More information on the LEDcontrol library for Arduino can be found here: When you get into strings of panels to program, it may be easier to write some functions into an Excel spreadsheet to automate some of the programming, since the only thing changing are the panel being addressed and the LEDs that are on or off. You will need the LEDcontrol library installed into your Arduino's library folder. Programming the LED panel can take a lot of time to figure out what LEDs you want on or off.

DIN = DataIn (pin 12 on Arduino) DOUT = DataOut (connects to next module's DIN, if applicable) CLK = Clock (pin 11 on Arduino) LOAD = Load (pin 10 on Arduino) V+ = 5V pin if your power supply to the Arduino is greater than 5V, or connect it to VIN if your input power supply to the Arduino is 5V. (Also found at the end of this document.) Connect the jumpers from the control board to the following pins.
LED MATRIX PANEL PDF
Copy the sample code found on the Kit Instructions PDF to test the LEDs.

There are pads for DataIn (DIN), Load, Clock (CLK), 5V (V+), and Ground (GND). Solder jumper wires to the pads on the back of the control board. I hooked up my matrix to an Arduino Uno, so if you have a different model, you may need to change the pins.
