2dom / PxMatrix

Adafruit GFX compatible graphics driver for LED matrix panels
BSD 3-Clause "New" or "Revised" License
828 stars 170 forks source link

Old RGB matrix scan mode #266

Open outsoder opened 3 years ago

outsoder commented 3 years ago

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

include

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); }

kingkumar32 commented 3 years ago

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

buxtronix commented 1 year ago

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