adafruit / Adafruit_NeoMatrix

Adafruit_GFX-compatible library for NeoPixel grids
GNU Lesser General Public License v3.0
185 stars 74 forks source link

Big Adafruit GFX Demo for NeoMatrix #9

Closed marcmerlin closed 7 years ago

marcmerlin commented 7 years ago

I spent quite a bit of time writing an Adafruit GFX demo for Neomatrix, and was able to port it trivially to RGB-matrix-Panel. Please see this video of the demo https://www.youtube.com/watch?v=9yGZLtewmfI , jump to 3:25 to see the demo on the RGB-matrix-Panel

This page describes the demo in more details, with screenshots: http://marc.merlins.org/perso/arduino/post_2017-04-24_Adafruit-GFX-on-NeoMatrix-and-RGB-Matrix-Panel-Demo.html

image

The demo is able to adjust to the display size and do things relevant to each size: image

This was tested on:

This demo depends on https://github.com/adafruit/Adafruit-GFX-Library/pull/39 which is the only way to display multicolor pixmaps in a backend independent way.

marcmerlin commented 7 years ago

By the way, I need to credit @ladyada for some of the code that originally came from Adafruit_LED_Backpack/examples/bicolor8x8 but was heavily modified/improved/supplemented over the years. I just felt it was a shame that your newer matrix libraries did not provide such a demo, so that's why I took it, heavily improved it, and I'm now contributing it back.

marcmerlin commented 7 years ago

By the way, @ladyada while this wasn't the point of this PR, if you'd like to take my video/and or blog post to put on your G+ feed as a demo of what can be done with your library code and some of your hardware ( I made it work on your RGB panel too: https://github.com/adafruit/RGB-matrix-Panel/pull/32 ), feel free. Cheers.

marcmerlin commented 7 years ago

Thanks @PaintYourDragon for your upstream merge in GFX lib. I've now updated this demo to work with its interface and re-tested it. Hopefully you'll like it as a more featureful example for this lib (and example for those new methods in GFX)

marcmerlin commented 7 years ago

Howdy again, assuming you don't have time to review this, since it doesn't change any other code, do you mind integrating it as is?

marcmerlin commented 7 years ago

Hi @PaintYourDragon are you the person who can help with this standalone demo merge, or could you recommend someone else?

marcmerlin commented 7 years ago

@PaintYourDragon or @ladyada thanks for merging https://github.com/adafruit/RGB-matrix-Panel/pull/32 . This patch is exactly the same demo for neomatrix. Would you be able to merge it here too, especially since more people are probably using neomatrix nowadays?

marcmerlin commented 7 years ago

@PaintYourDragon @ladyada howdy. Happy 4th! sorry to bug you again, I just had another person ask about this demo and I had to point them to the unmerged patch. I know you maintain way too many trees and have limited time to review patches, but given that this doesn't touch anything existing and adds a much better demo than anything included with the library, could you do a merge like you did on RGB-matrix-panel?

marcmerlin commented 7 years ago

Thanks a mil!