If you are staying tuned into the world of Sparkly stuff, Adafruit just released a new product called DotStar that is the successor to the NeoPixel. The TL;DR: they are SPI controlled (2-wire) instead of the asynchronous variable bit width (1-wire), and have a much faster refresh rate on the PWM controller. That combined with the fast serial protocol make them perfect for POV displays and smooth lighting for light painting projects!
I also ported the Adafruit DotStar Library for the Spark Core and Photon this morning (Update:all Particle devices are supported now). Made sure everything looked like it was working from my logic analyzer running on a Spark Core (as compared to Arduino UNO). It supports Hardware and Software SPI. NeoPixel examples should be compatible, just make sure to name your base Class object instance the same (i.e. “strip”).
Got my DotStar strip today, and the proof that it works is in the pudding (oh wait I ate the pudding)… the proof is in the fact that I’m now blind from sparkly stuff.
Here’s my first DotStar project share:
The only thing that was wrong with the library was the Blue and Green colors were swapped, but that’s the way I got it from Adafruit… easy to fix though. I’ll have to submit a Pull Request for them, and rev the submitted Spark library to v0.0.2. Will update again when that happens.
Thanks for fixing this library but now I’m more confused than before. At the time while the library was brocken in the web ide I tried some work arounds on your git repo and particle-cli and it doesn’t work(the flashing and building succeded but not the program). So I thought I’m blind to find the error. Now I’m building the example with the web ide andwith the new version all works fine. With the particle-cli and your repo it doesn’t work. Can you give me a hint why this is working with flashing from web ide and not with particle-cli?
It’s probably related to how the files are organized for Particle Libaries vs. how they need to be organized for the CLI. If you clone locally, you need to create a folder, and put the Dotstar.cpp and Dotstar.h in there, then copy just one example file in there as well (some libraries have multiple examples). In the example, change the #include “dotstar/dotstar.h” to just #include “dotstar.h”. Then back out of that directory and type:
Just updated the DotStar library to fix a bug and also added support the RedBear Duo device
If you have an old app in Build that you are migrating to a Particle Photon, P1, Electron, Spark Core or RedBear Duo please remove the DotStar library from your app and re-apply it to update the included library to v0.0.4. If you are creating a new app, simply add the DotStar library to your app and you will have the latest v0.0.4.
Just updated the DotStar library to add support for Particle Mesh devices Argon, Boron and Xenon!
If you have an old app that you would like to update please remove the DotStar library from your app and re-apply it to update the included library to v0.0.5. If you are creating a new app, simply add the DotStar library to your app and you will have the latest v0.0.5.