Mercurial > templog
view py/setup_gpio.sh @ 166:5d5424acfed0
- use the fridge temperature for control too, keep it in a 6deg band
- ignore params beginning with _
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 18 Feb 2013 23:31:32 +0800 |
parents | d03157c7ad60 |
children | 659953f2ee03 |
line wrap: on
line source
#!/bin/sh # this must run as root PINS="17 7 24 25" GROUP=fridgeio 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