annotate py/setup_gpio.sh @ 599:f71cf1ad745f rust

updated toml serde works OK
author Matt Johnston <matt@ucc.asn.au>
date Tue, 07 Feb 2017 22:35:29 +0800
parents 6e3b5bfa4b02
children
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
268
4632018d1c80 chown gpio files too
Matt Johnston <matt@ucc.asn.au>
parents: 239
diff changeset
5
239
659953f2ee03 ds18b20 works
Matt Johnston <matt@ucc.asn.au>
parents: 155
diff changeset
6 PINS="17"
148
b32e5a11a4cb few updates, seems to run
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
7
155
d03157c7ad60 rough touch sensor
Matt Johnston <matt@ucc.asn.au>
parents: 148
diff changeset
8 for PIN in $PINS; do
d03157c7ad60 rough touch sensor
Matt Johnston <matt@ucc.asn.au>
parents: 148
diff changeset
9 echo $PIN > /sys/class/gpio/export
148
b32e5a11a4cb few updates, seems to run
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
10 done
281
6e3b5bfa4b02 fix gpio chown script
Matt Johnston <matt@ucc.asn.au>
parents: 268
diff changeset
11
6e3b5bfa4b02 fix gpio chown script
Matt Johnston <matt@ucc.asn.au>
parents: 268
diff changeset
12 chgrp gpio /sys/class/gpio/gpio17/direction /sys/class/gpio/gpio17/value
6e3b5bfa4b02 fix gpio chown script
Matt Johnston <matt@ucc.asn.au>
parents: 268
diff changeset
13 chmod g+w /sys/class/gpio/gpio17/direction /sys/class/gpio/gpio17/value