I am trying to print text on my 32x32 LED Matrix. Everything I print is being duplicated and I'm not sure why. See attachment for a simple example.
Any help would be greatly appreciated.
I am using the following code:
#include <Adafruit_GFX.h> // Core graphics library
#include <RGBmatrixPanel.h> // Hardware-specific library
#define CLK 8
#define OE 9
#define LAT 10
#define A A0
#define B A1
#define C A2
#define D A3
RGBmatrixPanel matrix(A, B, C, D, CLK, LAT, OE, false);
void setup() {
matrix.begin();
matrix.setCursor(0, 0); // start at top left, with one pixel of spacing
matrix.setTextSize(1); // size 1 == 8 pixels high
matrix.setTextWrap(false); // Don't wrap at end of line - will do ourselves
matrix.setTextColor(matrix.Color333(7,7,7));
matrix.print('3');
}
That phantom figure is displaced in the X direction by 16 pixels. That libiary can handle both 32by 16 and 32by32 panels.
From looking at the libiary code it looks like you are giving the wrong number of parameters to the initialisation line. You need seven for a 32by16 and nine for a 32by32.
Your code is only giving eight parameters.
RGBmatrixPanel matrix(A, B, C, D, CLK, LAT, OE, false)