beyondscreen / node-rpi-ws281x-native

native bindings to drive WS2811 (or WS2812) LED-Controllers on a Raspberry Pi
MIT License
224 stars 101 forks source link

v1.0 consolidation #67

Open usefulthink opened 6 years ago

usefulthink commented 6 years ago

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:

UPLOAD_DEST="martin@raspberrypi.local:/home/martin/rpi-ws281x-dev" npm run upload

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)

paulhayes commented 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!

paulhayes commented 6 years ago

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!

usefulthink commented 6 years ago

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...).

shaunjacobsen commented 6 years ago

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)?

usefulthink commented 6 years ago

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 :)

ecdeveloper commented 4 years ago

How are the things going with this rc? Any chance we get that merged/released any time soon?