DedeHai / NeoPixelPainter

Arduino library for easy creation of LED strip animations, based on the NeoPixel library.
Other
31 stars 9 forks source link

APA102 / DotStar Coverage? #1

Open yairhorowitz opened 6 years ago

yairhorowitz commented 6 years ago

Your library is fantastic. Thank you for making it public!

Any chance of extending coverage to other chipsets, APA102 in particular?

DedeHai commented 6 years ago

Thank you, I am glad you like my work The code is entangled with the adafruit neopixel library for the WS281x pixels. I just checked the library they have for the dotstars (i.e. APA102) and it is almost identical. It should be easy to extend the library to support both, at least for the RGB versions. I do not own any APA102 pixels so I cannot test it once I adapt it.

DedeHai commented 6 years ago

it was a little more complicated than I thought... ran into an issue with how arduino compiles libraries. Its just not possible to have the library support multiple versions at the same time. So I just made a new library: https://github.com/DedeHai/DotStarPainter It may take a few days before it will appear in the Arduino library manager so you may have to manually install it. Its basically the very same code with the NeoPixel library replaced by the DotStar library. Please test if it works and report back. Also I would love to see what you are using it for. Did you make any new animations?

yairhorowitz commented 6 years ago

Hey Damian!

I'm sorry for the delay in getting back to you. Yes! The DotStar Painter works just as expected. Love it! I'll try to take a video of it in action tomorrow.

In the meantime, here is one thing your Neopixel Painter demo script has been doing for the past week or so: https://youtu.be/EuAM0I36iNk. People seem to dig it.

Have you explored the FastLED library? With the huge caveat that this is coming from someone who can barely program a decent Hello World, It's unusual to see someone who clearly knows what they are doing and is into addressable LEDs stick around the Neopixel Library for long. (There's a very active and strong community for FastLED users over at Google Groups. For a library intro I recommend checking out an example or two (DemoReel100 is really neat) and then looking at Andrew Tuline's github repo. Tuline has a handful of sound reactive effects which I think could work very well with your library and the demo you wrote. In fact, parts of his general approach seem to overlap with yours. (I like them both!)

Alas, I did not write any new effects in Neopixel Painter I am more of a builder of things than a programmer of them and un/fortunately I have been able to get by with barely-rudimentary programming knowledge by piecing together / modifying others' publicly shared code to suit my needs.

Oh, and as far as LED chipsets are concerned, APA102 >> WS2812B. Not being self-clocked they can be driven at wicked fast speed by a relatively wimpy microprocessor - without needing to disable interrupts. Ever since I build a set of POV batons with APA102s - Neopixels were far too slow - I've been sold on them (https://youtu.be/pytnC2zHP84). Their manufacturer also sells the LEDs in a 2020 package, managing to cram 200 LEDs per meter onto a commercially available LED strip!l

::end of ramble::

Thanks again for sharing your library and for the APA102 chipset coverage! Cheers!

On Jul 16, 2017, at 11:56 AM, Damian Schneider notifications@github.com wrote:

it was a little more complicated than I thought... ran into an issue with how arduino compiles libraries. Its just not possible to have the library support multiple versions at the same time. So I just made a new library: https://github.com/DedeHai/DotStarPainter Its basically the very same code with the NeoPixel library replaced by the DotStar library. Please test if it works and report back. Also I would love to see what you are using it for. Did you make any new animations?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.