2dom/PxMatrix

Help with 32x16 2s pattern

Ushoplias opened this issue · 0 comments

The module is labeled "P10-3535-2S-3216-SHL 2,0". Running Arduino nano with PxMatrix version 1.8.2 ,
Pattern test:
20211101_153846-ANIMATION
and the code:
#include <PxMatrix.h>
#include <avr/pgmspace.h>
// 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(32,16,P_LAT, P_OE,P_A,P_B);
uint16_t myRED = display.color565(255, 0, 0);
unsigned long start_time=0;

void setup() {
// put your setup code here, to run once:
display.begin(2);
display.setMuxPattern(STRAIGHT); // .setMuxPattern(BINARY) lits 2 diodes
display.setScanPattern(LINE);
display.clearDisplay();
}

void loop() {
display.drawPixel(0,0, myRED);
start_time = millis();
while((millis()-start_time)<5000)
display.display(20);
}

display.drawPixel(0,0, myRED), none of the patterms works as expexted:
LINE
1
ZIGZAG
2
ZZAGG
3
ZAGGIZ
4
ZAGZIG
5
and so on ... (I have not make all the pictures)
Tried also with display.setBlockPattern(DBCA).