Mercurial > templog
view py/setup_gpio.sh @ 450:cea8ec101c6b
lcd works
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 18 Dec 2012 22:20:47 +0800 |
parents | 8fdf86ea41e7 |
children | d03157c7ad60 |
line wrap: on
line source
#!/bin/sh # this must run as root PIN=17 GROUP=fridgeio echo $PIN > /sys/class/gpio/export for f in direction value; do fn=/sys/devices/virtual/gpio/gpio$PIN/$f chgrp $GROUP $fn chmod g+rw $fn done