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 names different to spec #8

Closed
ukBaz opened this issue Nov 13, 2015 · 2 comments
Closed

GPIO names different to spec #8

ukBaz opened this issue Nov 13, 2015 · 2 comments

Comments

@ukBaz
Copy link

ukBaz commented Nov 13, 2015

Slightly pedantic maybe ...

The spec uses (-) and the python bindings use underscores (_)

So should:
GPIO_A = GPIO.gpio_id('GPIO_A')

be:
GPIO_A = GPIO.gpio_id('GPIO-A')

@doanac
Copy link

doanac commented Nov 18, 2015

The underlying library actually supports both dash and underscore:

https://github.com/96boards/96BoardsGPIO/blob/master/lib/gpio.c#L58

On Fri, Nov 13, 2015 at 4:12 PM, Barry Byford notifications@github.com
wrote:

Slightly pedantic maybe ...

The spec
https://www.96boards.org/wp-content/uploads/2015/02/96BoardsCESpecificationv1.0-EA1.pdf
uses (-) and the python bindings use underscores (_)

So should:
GPIO_A = GPIO.gpio_id('GPIO_A')

be:
GPIO_A = GPIO.gpio_id('GPIO-A')


Reply to this email directly or view it on GitHub
#8.

@ukBaz
Copy link
Author

ukBaz commented Nov 25, 2015

Thanks @doanac . You are correct, both underscore and dash work. I'll close the issue

@ukBaz ukBaz closed this as completed Nov 25, 2015
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