Skip to content

gpio numbering inconsistent?? #14

@andig

Description

@andig

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??

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions