Mercurial > templog
view py/setup_gpio.sh @ 273:74c3ae4e3307
syntax fixes, doesn't make sense yet for asyncio
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 17 Nov 2015 22:26:00 +0800 |
parents | 4632018d1c80 |
children | 6e3b5bfa4b02 |
line wrap: on
line source
#!/bin/sh # this must run as root 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 PINS="17" for PIN in $PINS; do echo $PIN > /sys/class/gpio/export done