Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.0 consolidation #67

Open
1 of 5 tasks
usefulthink opened this issue Nov 30, 2017 · 6 comments
Open
1 of 5 tasks

v1.0 consolidation #67

usefulthink opened this issue Nov 30, 2017 · 6 comments

Comments

@usefulthink
Copy link
Member

usefulthink commented Nov 30, 2017

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

  • dynamic DMA selection (would be awesome, but right now no idea how to do this: File System going read-only! With latest raspbian updates #61
  • implement legacy-api wrapper
  • all data visible to the user should be in 4-byte format (Int32BE), internally reformatted as appropriate for RGB and RGBW LEDs
  • Test across different node-versions
  • Test across different hw-versions

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="[email protected]:/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)

  • edit something
  • run npm run upload (see above)
  • on the pi: node-gyp build (if changes involved the .cc-file) and sudo node examples/new-api.js
@paulhayes
Copy link

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
Copy link

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
Copy link
Member Author

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
Copy link

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 [email protected])?

@usefulthink
Copy link
Member Author

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants