diff py/setup_gpio.sh @ 535:3a514fbb88eb

ds18b20 works
author Matt Johnston <matt@ucc.asn.au>
date Tue, 19 May 2015 15:07:57 +0000
parents dce9f7841696
children 4632018d1c80
line wrap: on
line diff
--- a/py/setup_gpio.sh	Tue May 05 21:29:19 2015 +0800
+++ b/py/setup_gpio.sh	Tue May 19 15:07:57 2015 +0000
@@ -2,15 +2,8 @@
 
 # this must run as root
 
-PINS="17 7 24 25"
-GROUP=fridgeio
+PINS="17"
 
 for PIN in $PINS; do
     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
 done