-
Notifications
You must be signed in to change notification settings - Fork 296
gpio input not working #101
Comments
What’s the output of |
ls gives: gpio export (command not found?? Why is there a gpiochip0 only? |
I’m not familiar with this part of the code. Looks like it was simply forgotten. I’ll look into it. |
Maybe it works if you change line 80 in gpio.setDirection(parseInt(item.pin), "input", function(err) { to gpio.open(parseInt(item.pin), "input", function(err) { I have no time to test it now, but i think this could be the problem. |
I'm working on a fix. I'll rewrite the pi-gpio library. Seems drastic, but it's overdue. Switching the underlying export mechanism |
Here’s what I’ve been working on: tjanson/heimcontrol.js@ad79484 (which uses a rewritten version of pi-gpio, which uses a wrapper of Wiring Pi gpio util). Feel free to give it a try. I’ll write a PR once I have some feedback here: rakeshpai/pi-gpio#25. |
Gpio input shows as down.
It doesnt go up.
raspberry pi revision 0000d
The text was updated successfully, but these errors were encountered: