-
Notifications
You must be signed in to change notification settings - Fork 115
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
Cannot open pin for read #53
Comments
Ok, error was that pin 6 i GND. GPIO6 is actually mapped to pin 22. Setting 22 solved the isue. Is there a way to name pins in a form other than the physical pin? I´m using a custom expansion board and this is hell :( |
There is a fork of this repo that has MODE_RAW. https://github.com/timelapseplus/node-linux-gpio |
sorry, I'm new to github, how can I choose to install the forked version? and.. what's the mode RAW ? in the link u sent me there is nothing about it.. :( |
To install the forked repo run If you use function getPinRaw(channel) {
return channel + '';
}; |
can you gimme an example of "channel" ? |
Take a look at this, https://pinout.xyz/pinout/pin3_gpio2 |
By default this library uses the physical pin values, |
My pi is 1 rev 2, I only have 26 pins so the graph is not fitting my setup. Anyhow, what's the raw name I have to enter to access GPIO6 ? |
Im running raspi Model B Rev 2 512MB, I installed the module and succesfully opened a pin for writing on it. Succesfully made a LED blink.
Then I try to open a port for reading and I get and error
This the relevant part of the code.
Any clue ??
The text was updated successfully, but these errors were encountered: