Open usefulthink opened 6 years ago
I'm so happy, with a bit of tweaking the new-api.js worked great for me! I might do a pull request, but I'm so glad it's working with me rgbw LED strip!
ps I noticed you have an ar-drone project on github from ages ago, me too!
FYI rather than the npm upload. I use sshfs which I find to be a great way of using GUI editor for code on my pi!
Updated the README with the new API. Please let me know if you like it or if there are any things I can improve in the API-Design (that will likely stay for the foreseeable future...).
Hi! I am working on a project and would like to use this library with an RGBW ring. Will the 1.0 version be available soon on npm (e.g. using npm install rpi-ws281x-native@1.0)?
Right now it is available for testing via npm install rpi-ws281x-native@next
(docs here).
There may be some things that do not fully work yet. If you encounter any problems please be so kind to report back here :)
How are the things going with this rc? Any chance we get that merged/released any time soon?
A rewrite of the library with adjusted API and rewritten native bindings is on it's way and did just pass some initial testing.
The new code can be found here: https://github.com/beyondscreen/node-rpi-ws281x-native/tree/v1.x
This issue is used to consolidate all open issues that are resolved by these changes.
TODOs
Adventurous? Here's how to play with it..
For this early stage where you might actually need to fiddle with the code, I'd recommend cloning the repository to your workstation, checking out the v1.x-branch and and using the
upload
-script to get the files over to you raspberry-pi for testing.For me that looks like this:
where
UPLOAD_DEST
is the destination-argument to an rsync-call (this requires that you have ssh setup using a private key instead of password).My current workflow (two terminals open, one locally in my project and one on the raspi in
~/rpi-ws281x-dev
)npm run upload
(see above)node-gyp build
(if changes involved the .cc-file) andsudo node examples/new-api.js