annotate py/setup_gpio.sh @ 578:358293768234

fix missing on_time variable
author Matt Johnston <matt@ucc.asn.au>
date Sat, 28 Nov 2015 08:42:33 +0800
parents f93290b37abf
children 6e3b5bfa4b02
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
447
8fdf86ea41e7 few updates, seems to run
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1 #!/bin/sh
8fdf86ea41e7 few updates, seems to run
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
2
8fdf86ea41e7 few updates, seems to run
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
3 # this must run as root
8fdf86ea41e7 few updates, seems to run
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
4
567
f93290b37abf chown gpio files too
Matt Johnston <matt@ucc.asn.au>
parents: 535
diff changeset
5 chgrp gpio /sys/class/gpio/gpio17/direction /sys/class/gpio/gpio17/value
f93290b37abf chown gpio files too
Matt Johnston <matt@ucc.asn.au>
parents: 535
diff changeset
6 chmod g+w /sys/class/gpio/gpio17/direction /sys/class/gpio/gpio17/value
f93290b37abf chown gpio files too
Matt Johnston <matt@ucc.asn.au>
parents: 535
diff changeset
7
535
3a514fbb88eb ds18b20 works
Matt Johnston <matt@ucc.asn.au>
parents: 454
diff changeset
8 PINS="17"
447
8fdf86ea41e7 few updates, seems to run
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
9
454
dce9f7841696 rough touch sensor
Matt Johnston <matt@ucc.asn.au>
parents: 447
diff changeset
10 for PIN in $PINS; do
dce9f7841696 rough touch sensor
Matt Johnston <matt@ucc.asn.au>
parents: 447
diff changeset
11 echo $PIN > /sys/class/gpio/export
447
8fdf86ea41e7 few updates, seems to run
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
12 done