Created
January 13, 2018 11:23
-
-
Save boochow/8181085ed3c2bbfc5eb6278b13bc1e00 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pi@pi-zero-w:~ $ echo 4 > /sys/class/gpio/export | |
pi@pi-zero-w:~ $ ls /sys/class/gpio/ | |
export gpio4 gpiochip0 unexport | |
pi@pi-zero-w:~ $ echo out > /sys/class/gpio/gpio4/direction | |
pi@pi-zero-w:~ $ echo 1 > /sys/class/gpio/gpio4/value | |
pi@pi-zero-w:~ $ echo 0 > /sys/class/gpio/gpio4/value | |
pi@pi-zero-w:~ $ echo 4 > /sys/class/gpio/unexport | |
pi@pi-zero-w:~ $ ls /sys/class/gpio/ | |
export gpiochip0 unexport | |
pi@pi-zero-w:~ $ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment