Go Down

Topic: 32x32 LED Project - Duplicating Values (Read 115 times) previous topic - next topic


May 16, 2018, 07:12 pm Last Edit: May 16, 2018, 07:22 pm by jdelisle Reason: Attaching resized image
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:

Code: [Select]
#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.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



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.
Code: [Select]
RGBmatrixPanel matrix(A, B, C, D, CLK, LAT, OE, false)


This looks quite odd.

Do you have a datasheet for ths module?


May 17, 2018, 01:59 pm Last Edit: May 17, 2018, 02:02 pm by PaulRB
Your code is only giving eight parameters.
Mike the 9th parameter for the 32x32 panel constructor has a default and it seems appropriate:
Code: [Select]
  // Constructor for 32x32 panel (adds 'd' pin):
  RGBmatrixPanel(uint8_t a, uint8_t b, uint8_t c, uint8_t d,
    uint8_t sclk, uint8_t latch, uint8_t oe, boolean dbuf, uint8_t width=32);

So what's my suggestion? I don't have one, sorry. That's why I posted the image and nothing more.

Go Up