2dom/PxMatrix

P10 FM6124 -> weird displayTestPattern() behaviour

Closed this issue · 0 comments

Hi, i'm trying to write static strings on multiple modules (nothing change if one or many, anyway).
During debug procedures, by invoking displayTestPattern() the pattern which is actually using is wrong. Each module are identical 32x16.
I do expect a line each 16 pixels, instead of the one each 8pixels like in the photo!
What am i doing wrong?
Here is my code:

#include <PxMatrix.h>
#include <Fonts/FreeSans9pt7b.h>
#define PxMATRIX_MAX_HEIGHT 16
#define PxMATRIX_MAX_WIDTH 32
// Pins for LED MATRIX
#define P_A 2
#define P_B 3
#define P_C 4
#define P_D 5
#define P_E 6
#define P_LAT 7
#define P_OE 8


PxMATRIX display(128,32,P_LAT, P_OE,P_A,P_B,P_C,P_D,P_E);

// Some standard colors
uint16_t myRED = display.color565(255, 0, 0);
uint16_t myGREEN = myRED;
uint16_t myBLUE = myRED;
uint16_t myWHITE = myRED;
uint16_t myYELLOW = myRED;
uint16_t myCYAN = myRED;
uint16_t myMAGENTA =myRED;
uint16_t myBLACK = display.color565(0, 0, 0);


void setup() {
 Serial.begin(9600);
  // Define your display layout here, e.g. 1/8 step, and optional SPI pins begin(row_pattern, CLK, MOSI, MISO, SS)
  display.begin(4);

  // Set the multiplex pattern {LINE, ZIGZAG,ZZAGG, ZAGGIZ, WZAGZIG, VZAG, ZAGZIG} (default is LINE)
  display.setScanPattern(LINE);

  // Set the multiplex implemention {BINARY, STRAIGHT} (default is BINARY)
  display.setMuxPattern(BINARY);

  // Set the number of panels that make up the display area width (default is 1)
  display.setPanelsWidth(4);

  // Set driver chip type
  display.setDriverChip(FM6124);
  //display.setFastUpdate(true);
  //display.setBrightness(255);
  //display.invertDisplay(true);
display.setBlockPattern(DBCA);
  display.clearDisplay();
}

void loop() {
 display.displayTestPattern(50);
}

-Here is the result:
photo_5895554487865686683_y

Running: latest PxMatrix version on arduino mega.

Usually I do not ask for help, but I'm stuck!