Skip to content

Instantly share code, notes, and snippets.

@jffry
Created August 16, 2015 23:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jffry/b19a921b0c4d5f1eae2f to your computer and use it in GitHub Desktop.
Save jffry/b19a921b0c4d5f1eae2f to your computer and use it in GitHub Desktop.
Raspberry Pi: GPIO (Raspbian)
# 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