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 numbering inconsistent?? #14

Open
andig opened this issue Dec 18, 2012 · 1 comment
Open

gpio numbering inconsistent?? #14

andig opened this issue Dec 18, 2012 · 1 comment

Comments

@andig
Copy link

andig commented Dec 18, 2012

Drogon writes on his site

gpio -g …
The optional -g flag causes pin numbers to be interpreted as native BCM-GPIO pin numbers rather than wiringPi pin numbers.

This would imply that omitting -g would using wiringPi numbers. Yet, when I do

gpio export 5 out

then

ls /sys/class/gpio

shows that

/sys/class/gpio/gpio5

exists but not

/sys/class/gpio/gpio24

which would be the correct BCM number according to https://projects.drogon.net/raspberry-pi/wiringpi/pins/.

I'm probably missing something obvious here- but what??

@gordonDrogon
Copy link

the man page has this to say:

   export Export a GPIO pin in the /sys/class/gpio directory. Use like the mode com‐
          mand above however only in and out are supported at this time.  Note  that
          the pin number is the BCM_GPIO number and not the wiringPi number.

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

2 participants