Created
August 16, 2015 23:48
-
-
Save jffry/b19a921b0c4d5f1eae2f to your computer and use it in GitHub Desktop.
Raspberry Pi: GPIO (Raspbian)
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
# controlling RPI GPIO pins | |
# has to be run as root | |
echo -ne 19 > /sys/class/gpio/export | |
echo -ne out > /sys/class/gpio/gpio19/direction | |
echo -ne 1 > /sys/class/gpio/gpio19/value | |
echo -ne 0 > /sys/class/gpio/gpio19/value | |
echo -ne 19 > /sys/class/gpio/unexport |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment