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 naming #4

Closed
ohanssen opened this issue Sep 29, 2015 · 3 comments
Closed

GPIO pin naming #4

ohanssen opened this issue Sep 29, 2015 · 3 comments

Comments

@ohanssen
Copy link

When setting up GPIO for PTT Direwolf expects a number. This doesn't work on the Cubieboard where gpio pins are named differently. E.g. GPIO pin 61 is mapped to the device name gpio61_pi13 instead of just gpio61. To activate a pin, one still use just the number. E.g. "echo 61 > /sys/class/gpio/export".

Is it possible to support these boards by configuring using a name instead of just a number, or is there a workaround?

@wb2osz
Copy link
Owner

wb2osz commented Mar 5, 2017

This might have been fixed by 58c2707 on the 'dev' branch but I don't have a CubieBoard to verify. See comments in ptt.c for details.
Would someone like to test this and report the results?
Just use the pin number like 61. If the device name like gpio61 is not found, it will look for something like gpio61_*

@wb2osz
Copy link
Owner

wb2osz commented Apr 1, 2017 via email

@wb2osz
Copy link
Owner

wb2osz commented May 10, 2017

This should be fixed in the most recent version. (1.4)

I don’t have a CubieBoard to test it.

Can you verify?

Thanks.

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