annotate py/setup_gpio.sh @ 571:ccfaa4351fd8
scale integrate by delay time
namedtuple for StepIntegrator
author |
Matt Johnston <matt@ucc.asn.au> |
date |
Wed, 11 Nov 2015 21:58:38 +0800 |
parents |
f93290b37abf |
children |
6e3b5bfa4b02 |
rev |
line source |
447
|
1 #!/bin/sh |
|
2 |
|
3 # this must run as root |
|
4 |
567
|
5 chgrp gpio /sys/class/gpio/gpio17/direction /sys/class/gpio/gpio17/value |
|
6 chmod g+w /sys/class/gpio/gpio17/direction /sys/class/gpio/gpio17/value |
|
7 |
535
|
8 PINS="17" |
447
|
9 |
454
|
10 for PIN in $PINS; do |
|
11 echo $PIN > /sys/class/gpio/export |
447
|
12 done |