annotate py/setup_gpio.sh @ 291:f7261dd970da

- replace ssl client certs with cookies - remove unused ssh code - add /set?fake=1 test mode
author Matt Johnston <matt@ucc.asn.au>
date Sat, 06 Jul 2019 16:32:16 +0800
parents 659953f2ee03
children 4632018d1c80
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
148
b32e5a11a4cb few updates, seems to run
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1 #!/bin/sh
b32e5a11a4cb few updates, seems to run
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
2
b32e5a11a4cb few updates, seems to run
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
3 # this must run as root
b32e5a11a4cb few updates, seems to run
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
4
239
659953f2ee03 ds18b20 works
Matt Johnston <matt@ucc.asn.au>
parents: 155
diff changeset
5 PINS="17"
148
b32e5a11a4cb few updates, seems to run
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
6
155
d03157c7ad60 rough touch sensor
Matt Johnston <matt@ucc.asn.au>
parents: 148
diff changeset
7 for PIN in $PINS; do
d03157c7ad60 rough touch sensor
Matt Johnston <matt@ucc.asn.au>
parents: 148
diff changeset
8 echo $PIN > /sys/class/gpio/export
148
b32e5a11a4cb few updates, seems to run
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
9 done