digital-synapse / rpi-rgbledmatrix-glsl

hardware accelerated graphics rendering on RGB LED matrix and Raspberry PI
9 stars 0 forks source link

Incorrect mapping on Adafruit RGB Led Matrix 64x64 P3 with Raspberry Pi Zero #1

Open werls opened 1 month ago

werls commented 1 month ago

I have an Adafruit RGB Led Matrix, 64x64 P3, and I'm using the Adafruit HAT. I'm running the program on a Raspberry Pi Zero and having difficulties with the mapping, which seems to be incorrect.

This is the command I'm using:

sudo mono rpi-rgbledmatrix-glsl.exe -s -w 64 -h 64 --led-gpio-mapping=adafruit-hat --fragment-shader=shader/rings.frag

The result on the screen are modules 2x4, with repetitions and some black stripes:

IMG_20240515_145849539.jpg

I'm not sure if the issue is related with how I'm passing the parameters or if it's something with the library.

All demos from the rpi-rgb-led-matrix library run correctly on the led matrix.

werls commented 1 month ago

Now I got it... It's based on an old version of rpi-rgb-led-matrix, so to map a 64 cols led matrix I need to specify the chain length as 2. The command above works well:

sudo mono rpi-rgbledmatrix-glsl.exe -w 64 -h 64 -r 64 -c 2 --led-gpio-mapping=adafruit-hat --fragment-shader=shader/rings.frag