-
Notifications
You must be signed in to change notification settings - Fork 126
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
About usage on raspberry 3B #53
Comments
Could you give some more details? What were you trying, and what error did On Wed, Apr 6, 2016 at 1:31 PM, attacking [email protected] wrote:
Rakesh Pai |
var gpio = require('pi-gpio')
var errHandler = function (err){
console.log(err);
}
gpio.open(40, "output", errHandler )
while (1){
gpio.write(40, 0, errHandler)
console.log("Pin-40 : 0")
for(var i=0;i++;i<500000){}
gpio.write(40, 1, errHandler)
console.log("Pin-40 : 1")
for(var j=0;j++;j<250000){}
} Phenomenon: these console.log statements was executed, however voltage of pin-40 did not change and had nothing other. |
The underlying problem here is that Quick2Wire is really quite abandoned, it hasn’t been updated in 3 (!) years. This makes pi-gpio fundamentally unstable as long as it’s still based on Q2W. See PR #27 for some more details – the bottomline is: to keep up with new versions of the Raspberry Pi (and Node, etc.), pi-gpio needs to switch to another utility (as I did with that PR), as well as general maintenance (no one is doing that, as far as I can tell – I’m certainly not). |
it's right. And I gave up at last. Thanks, tjanson. |
I tried my best to control my 3B's GPIO by pi-gpio, however it has never worked. (I have successfully controlled the GPIO by python, so the question is not the GPIO)
I want to know if the pi-gpio and quick2wire-gpio-admin apply to controlling 3B.
The text was updated successfully, but these errors were encountered: