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

GPIO pin assignment is for Version 1 of Raspberry Pi #19

Closed
JohnNavratil opened this issue Jun 29, 2014 · 2 comments
Closed

GPIO pin assignment is for Version 1 of Raspberry Pi #19

JohnNavratil opened this issue Jun 29, 2014 · 2 comments

Comments

@JohnNavratil
Copy link

The 'pinMapping' object in 'pi-gpio.js' is for the version 1 of the pi. For version 2, change to...

"3": 2,
"5": 3,
...
"13": 27,

If would seem a method to select board revision may be in order. Otherwise, version 2 has been out for quite a while, the pins are not expected to change, so these values should be the default.

Thanks!

@rakeshpai
Copy link
Owner

Hey @JohnNavratil, these changes are already in the latest version of the module. You can find the code here: https://github.com/rakeshpai/pi-gpio/blob/master/pi-gpio.js#L35-L39 Is this not what you see?

@JohnNavratil
Copy link
Author

Thank you,

I am new to github so I didn't know if you got my email of if I should
post into 'issues'.

I appreciate the change.

-- John

On 06/30/2014 08:53 AM, Rakesh Pai wrote:

Hey @JohnNavratil https://github.com/JohnNavratil, these changes are
already in the latest version of the module. You can find the code
here:
https://github.com/rakeshpai/pi-gpio/blob/master/pi-gpio.js#L35-L39 Is
this not what you see?


Reply to this email directly or view it on GitHub
#19 (comment).

@tjanson tjanson closed this as completed Oct 25, 2014
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

3 participants