This is a very simple Arduino project which control the 16x32 RGB LED Matrix Panel via an 16pin IDC cable. The Arduino will continuously sending 5 set colours (Red, Green, Blue, White, Black) to the LED Matrix Panel that allow the technician to find out which part of the LED Matrix Panel is malfunction.
To control the RGB LED Matrix Panel, you need to include the Adafruit RGB Matrix Panel library which is available at GitHub. This is an Arduino library for 16x32 and 32x32 RGB LED matrix panels, you can get more information on how to use the library on the Adafruit web site.
Here is the test code example for this project.
#include "Adafruit_GFX.h" // Core graphics library
#include "RGBmatrixPanel.h" // Hardware-specific library
#define CLK 8 // MUST be on PORTB!
#define LAT A3
#define OE 9
#define A A0
#define B A1
#define C A2
// Last parameter = 'false' disable double-buffering
RGBmatrixPanel matrix(A, B, C, CLK, LAT, OE, false);
void setup() {
matrix.begin();
}
void loop() {
// fill the screen with red
matrix.fillRect(0, 0, 32, 16, matrix.Color333(7, 0, 0));
delay(1000);
// fill the screen with green
matrix.fillRect(0, 0, 32, 16, matrix.Color333(0, 7, 0));
delay(1000);
// fill the screen with blue
matrix.fillRect(0, 0, 32, 16, matrix.Color333(0, 0, 7));
delay(1000);
// fill the screen with white
matrix.fillRect(0, 0, 32, 16, matrix.Color333(7, 7, 7));
delay(1000);
// fill the screen with black
matrix.fillScreen(matrix.Color333(0, 0, 0));
delay(1000);
}
This is the 16x32 RGB LED Matrix schematic, I get it from the China website.
You can download a higher resolution schematic (PDF file) from my personal website
http://www.ediy.com.my/index.php/projects/item/109...