-
Notifications
You must be signed in to change notification settings - Fork 120
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
Does not work anymore on Node v4.5.0 (ARM) #54
Comments
What type of ARM machine is being used? |
yes, its a armv7, i just updated node from v4.4.x to v4.5.0 |
I can't reproduce the error with the sample program posted above using Node.js 4.5.0 and GPIO4 on an ARMv7 Raspberry Pi 2:
Is Node.js the only thing that was updated or were other things updated, for example, the operating system? If the operating system was updated, is it possible that the GPIO driver was updated and that the old driver supported interrupt detection on GPIO239 but the new driver doesn't? |
What type of computer is being used? As in Raspberry Pi, BeagleBone, CHIP, ... |
I use an ARM A20 CPU, like the CHIP uses. its very strange, because it seems that the
.. any hints? |
OK - I know what triggers the problem. I did already export the gpio in my application - now when I start my test above, the watch function almost never works. however if I run Maybe it make sense to add an option that onoff should not touch the gpio config? Update: So I see this solution:
|
I can't reproduce the error by running an app that exports the GPIO and a second app that uses the GPIO. Here's the app that exports the GPIO: const GpioOnOff = require('onoff').Gpio;
const button = new GpioOnOff(4, 'in', 'both');
setInterval(function () {
console.log('Hello, World!');
}, 1000); Here's the test app that uses the GPIO: const GpioOnOff = require('onoff').Gpio;
const button = new GpioOnOff(4, 'in', 'both');
button.watch(function(err, value) {
console.log('jo');
console.log(err, value);
}); Some questions posted above haven't been answered:
The title of this issue is "Does not work anymore on Node v4.5.0 (ARM)". This title implies that it did work in the past. I'm almost certain that the update from Node.js v4.4.x to Node V4.5.0 didn't cause the issue and that something else was also modified but not mentioned yet. In order to move forward sample code to reproduce the error is needed. |
Yes you're right, this bug report is completely borked. I create a new one. |
The latest onoff version does not work anymore on my arm machine. this is the simple code is use:
-> the button watch function is never triggered.
when reading directly
cat /sys/class/gpio/gpio239/value
is see that the values are populated correctly.any hints?
The text was updated successfully, but these errors were encountered: