adafruit / Adafruit_Protomatter

RGB matrix library for Arduino
57 stars 20 forks source link

Add support for panels with FM6126A chipset. Copied from SmartMat… #52

Closed colorama closed 1 year ago

colorama commented 1 year ago

Not sure if anyone needs it, but I have a bunch of these panels and now they work. Yay. The fix adds one function - copied from SmartMatrix. Have not tested with 'normal' panels - I don't have any. Might need to make this into an 'option'.

colorama commented 1 year ago

Perhaps #define for loops is not awesome - feel free to change ;-)

colorama commented 1 year ago

Also... I obviously have no idea what this code does - things like hardcoded maxLeds and the various offsets, etc w/o comments are not great. Regrettably, I don't have time to investigate further.

PaintYourDragon commented 1 year ago

Howdy. OK, startup/reset is simplified a bit, code’s in main branch but NOT Arduino lib manager yet. If you could check on the FM panels you have, and confirm whether it still works there, I’ll bump the version # which should send it out. Thx!

colorama commented 1 year ago

Pulled master and verified with Arduino - FM panels and "classic". All good 👍🏻

Related question: tried to verify with circuit python, so I pulled master of circuitpython and tried building for matrIxportal_m4 with: make BOARD=matrixportal_m4

After copying the firmware to the board (cp firmware.uf2 /Volumes/MATRIXPORTAL), the board reboots, but does not mount as CIRCUITPY.

Any pointers? Thanks!

PaintYourDragon commented 1 year ago

Woot, thanks.

Not sure what’s up with CircuitPython. Is this an artifact of the matrix code changes, or does this happen even with the prior code?

colorama commented 1 year ago

Yeah, that's with TOT code. I'll try pulling an earlier tag.

PaintYourDragon commented 1 year ago

Possibly related: changes were recently made for ESP-IDF 5.0.

colorama commented 1 year ago

Same difference with 7.3.3. I must be doing something wrong. Just following instructions here: https://learn.adafruit.com/building-circuitpython/build-circuitpython

PaintYourDragon commented 1 year ago

Probably not you. CircuitPython’s a bit beyond me, but you can try asking in the forums.