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

Simplifiy useage of Node:PiBrella #679

Open
stretchyboy opened this issue Mar 9, 2014 · 3 comments
Open

Simplifiy useage of Node:PiBrella #679

stretchyboy opened this issue Mar 9, 2014 · 3 comments

Comments

@stretchyboy
Copy link
Member

Would like to move to better library for the PiBrella than onoff (which doesn't allow for PWM and means pullup/down needs to be set in a bash script) . But in meantime we need the gpio variables setup before or as we use them. so users don't have to worry about setting up.
Either need

  • a PiBrella node module which uses getters to create GPIO vars as needed
  • an object with the GPIO variables already built
@dethe
Copy link
Member

dethe commented Mar 12, 2014

Are you asking for someone to write a better Node module for PiBrella or do you know that there are better libraries out there?

@stretchyboy
Copy link
Member Author

Neither,
A proper module for it would rely on a better GPIO module (one that can do
PWM etc) and so is not practical at the moment.
A quick wrapper module is possible and I can do it but ...
I have implemented the quick array version and am looking to see if that is
good enough branch 679_PiBrella_simplilfy is currently trying this
approach.

However all of this is a work around for not being able to write in Python
(now bug #678). But you may have noticed branch 678_python were I have
started implementing a brainwave I had in the shower on Monday morning,and
I'm now generating properly indented python code (It's not been tested yet
as I haven't got enough blocks yet to make an a program that affects the
real world) but I should get something in the next few days.

On 12 March 2014 04:48, Dethe Elza [email protected] wrote:

Are you asking for someone to write a better Node module for PiBrella or
do you know that there are better libraries out there?

Reply to this email directly or view it on GitHubhttps://github.com//issues/679#issuecomment-37375288
.

Regards,

Martyn

https://twitter.com/#!/stretchyboy

@dethe
Copy link
Member

dethe commented Mar 12, 2014

The first option in #684 should help with indented python code. Splitting scripts into arrays would be fairly trivial, getting the indentation right would still take some effort.

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

2 participants