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

Fixed #8; GPIO set pull down|up|disable modes (bananapro) #10

Merged
merged 1 commit into from
Nov 23, 2015

Conversation

savageautomate
Copy link
Contributor

I have tested this fix on the latest Raspbian distribution on the BananaPro platform.
Prior to this change the "pull" state for a GPIO pin reported as "unknown" for some of the attempted pull states.

The following commands now works as expected:

bananapi@bpipro /sys/class/gpio/gpio4 $ cat pull
disable

bananapi@bpipro /sys/class/gpio/gpio4 $ gpio mode 7 up && cat pull
up

bananapi@bpipro /sys/class/gpio/gpio4 $ gpio mode 7 down && cat pull
down

bananapi@bpipro /sys/class/gpio/gpio4 $ gpio mode 7 off && cat pull
disable

bananapi@bpipro /sys/class/gpio/gpio4 $ gpio mode 7 up && cat pull
up

bananapi@bpipro /sys/class/gpio/gpio4 $ gpio mode 7 tri && cat pull
disable

Tony-HIT added a commit that referenced this pull request Nov 23, 2015
Fixed #8; GPIO set pull down|up|disable modes (bananapro)
@Tony-HIT Tony-HIT merged commit b9f78ef into LeMaker:bananapro Nov 23, 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

Successfully merging this pull request may close these issues.

2 participants