hzeller / rpi-rgb-led-matrix

Controlling up to three chains of 64x64, 32x32, 16x32 or similar RGB LED displays using Raspberry Pi GPIO
GNU General Public License v2.0
3.63k stars 1.15k forks source link

add proper support for boards with FM6126A chips #807

Open marcmerlin opened 5 years ago

marcmerlin commented 5 years ago

More panels are using those chips now, it would be nice if they were natively supported without a reset script like in https://github.com/hzeller/rpi-rgb-led-matrix/issues/746 and the issue of resetting boards on multiple strings with an active-3 board (as described in that bug).

I'm guessing that they an probably be reset properly as long as the reset code is sent to all 3 ports in parallel?

marcmerlin commented 5 years ago

Ok, I did the above and it seems to work fine Hopefully this can be included in the actual driver instead of being an out of band reset script

Here is one script that resets on 3 ports in parallel and another one that works on the adafruit board: resetmatrix_active3.py.txt resetmatrix_adafruit.py.txt

FelBraSil commented 5 years ago

I'm using the init script but the panel just displays white lines, and they don't change, my previous panels work perfectly so wire problems are discarded That new chip seems to be very problematic, wonder why they are switching to this one ...

hyamanieu commented 5 years ago

@marcmerlin thanks for your script on active3. It worked for initiating 4 panels on a single chain, and 2 panel in parallel on chains 1 & 2. nb to all: you need to sudo apt install python3-gpiozero if you have lite raspian

edit : it works only for up to 4 panels per channel (so max 12). Beyond that, the script must be changed.

marcmerlin commented 4 years ago

and just to make sure things are too simple, FM6127 seems not fully compatible with FM6126A despite a patch to support them. I opened a new bug to track that: https://github.com/hzeller/rpi-rgb-led-matrix/issues/1103