Mercurial > templog
diff py/setup_gpio.sh @ 299:358c50004679
merge
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 27 Feb 2017 23:20:07 +0800 |
parents | 6e3b5bfa4b02 |
children |
line wrap: on
line diff
--- a/py/setup_gpio.sh Mon Feb 20 23:23:57 2017 +0800 +++ b/py/setup_gpio.sh Mon Feb 27 23:20:07 2017 +0800 @@ -2,8 +2,12 @@ # this must run as root + PINS="17" for PIN in $PINS; do echo $PIN > /sys/class/gpio/export done + +chgrp gpio /sys/class/gpio/gpio17/direction /sys/class/gpio/gpio17/value +chmod g+w /sys/class/gpio/gpio17/direction /sys/class/gpio/gpio17/value