microsoft / ExpressivePixels

ExpressivePixels is an embedded prototype platform for ambient LED based displays that allows for the rapid assembly, authoring and control of animations and lighting sequences.
MIT License
71 stars 15 forks source link

64 x 64 Matrix Address Pins Problem #15

Open sjpiper145 opened 3 years ago

sjpiper145 commented 3 years ago

I love the Expressive Pixels app and what your team has built with the interface. My 64 x 64 LED matrix purchased from Adafruit isn't displaying Express pixels very well as 5 Address Pin Matrixes haven't been included as yet. See picture here: https://imgur.com/a/yCVBIzJ

This problem has been fixed in the code for the Animated GIF Player using the Protomatter Library with NUM_ADDR_PINS. I've tried to integrate the code into the Arduino config for Expresive Pixels but I'm not having any luck.

if defined(DISPLAY_MATRIX64x32)

uint8_t rgbPins[] = {7, 8, 9, 10, 11, 12}; uint8_t addrPins[] = {17, 18, 19, 20, 21}; // 16/32/64 pixels tall uint8_t clockPin = 14; uint8_t latchPin = 15; uint8_t oePin = 16;

if DISPLAYARRAY_HEIGHT == 16

define NUM_ADDR_PINS 3

elif DISPLAYARRAY_HEIGHT == 32

define NUM_ADDR_PINS 4

elif DISPLAYARRAY_HEIGHT == 64

define NUM_ADDR_PINS 5

elif DISPLAYARRAY_HEIGHT == 128

define NUM_ADDR_PINS 5

endif

Adafruit_Protomatter matrix(DISPLAYARRAY_WIDTH, 6, 1, rgbPins, NUM_ADDR_PINS, addrPins, clockPin, latchPin, oePin, true);

Any help with this would be deeply appreciated.

Cheers, Steph

Kingfrankbob commented 2 years ago

I dont know if you still check this or have already solved it. I would try the following