rm-hull / luma.led_matrix

Python module to drive LED Matrices & 7-segment displays (MAX7219) and RGB NeoPixels (WS2812 / APA102)
https://luma-led-matrix.readthedocs.io
MIT License
520 stars 157 forks source link

Add support for RPi RGB LED Matrix displays #275

Open chrisys opened 2 years ago

chrisys commented 2 years ago

@rm-hull I have been using luma.oled for some time on my train departure display project. Recently someone asked if I could add support for larger LED matrix panels.

I'd worked with this library before: https://github.com/hzeller/rpi-rgb-led-matrix

Not wanting to completely rewrite my project to support a different library, I went about looking to see if I could connect it with luma.led_matrix. It turned out to be pretty straightforward and works exactly as I'd hoped.

Before doing any further work on this though I wanted to get your guidance on contributing this functionality, and if it's even desirable for the project.

Screenshot 2022-03-23 at 16 38 39
rm-hull commented 2 years ago

Excellent work! The class you wrote is just a simple bridge/adapter between the two implementations and is how I would’ve tackled it too. I like the fact you import inside the class, but it might be worth catching ImportError and then printing a useful message indicating that an external dependency needs installing.

as to whether it should be included in this project .. it would need some documentation and tests if we want to include it. Presumably it doesn’t need to be declared inside the project for it to work? Personally though I’d be happy to accept it - what do you think @thijstriemstra ?

thijstriemstra commented 2 years ago

+1!

chrisys commented 2 years ago

OK cool, since you guys are on board I will develop it more, add documentation and look at adding tests too (although I may need some guidance here, but I'll take a look and come back if I have any specific questions).

thijstriemstra commented 2 years ago

any news @chrisys?

chrisys commented 6 months ago

Sorry guys some stuff came up; I still have all the hardware for this and do intend to get back to it one day!