PxMatrix icon indicating copy to clipboard operation
PxMatrix copied to clipboard

Old RGB matrix scan mode

Open outsoder opened this issue 4 years ago • 2 comments

Hello!

There is a problem connecting the old DIP RGB matrix. I can not find the right scan pattern. The only close enough scan mode is ZIGZAG, but the first upper 4 bit block is displayed flipped.

20210419_161859

20210419_161918

When using display.displayTestPixel(80); the order is like this (sorry, i could not upload any video)

image

Maybe there is a solution with editing library?

The code i used:

#include <PxMatrix.h> #include <Ticker.h> Ticker display_ticker; #define P_LAT 16 #define P_A 5 #define P_B 4 #define P_C 15 #define P_OE 2

// Pins for LED MATRIX PxMATRIX display(32,16,P_LAT, P_OE,P_A,P_B,P_C);

// ISR for display refresh void display_updater() { //display.displayTestPattern(80); //display.displayTestPixel(80); display.display(40); }

uint16_t myBLUE = display.color565(0, 255, 255); uint16_t myWH = display.color565(255, 255, 255); void setup() { // put your setup code here, to run once: Serial.begin(9600); display.begin(4); display.setScanPattern(ZIGZAG); display.flushDisplay(); display.setTextColor(myWH); display.setCursor(1,1); display.print("12345"); display.setTextColor(myBLUE); display.setCursor(1,9); display.print("54321"); Serial.println("hello");

display_ticker.attach(0.004, display_updater);

delay(100); } void loop() { delay(10); }

outsoder avatar Apr 19 '21 13:04 outsoder

i am also having the same problem if you find the solution please share here

kingkumar32 avatar May 07 '21 10:05 kingkumar32

I had weird scanning like this on a vaery similar display, and solved with display.begin(4) and display.setScanPattern(ZAGGIZ).

buxtronix avatar Jan 06 '23 02:01 buxtronix