annotate py/setup_gpio.sh @ 639:89818a14648b
rust tip
- switch to using anyhow for errors, surf for http
runs but surf has problems
author |
Matt Johnston <matt@ucc.asn.au> |
date |
Thu, 28 Nov 2019 23:57:00 +0800 |
parents |
6e3b5bfa4b02 |
children |
|
rev |
line source |
148
|
1 #!/bin/sh |
|
2 |
|
3 # this must run as root |
|
4 |
268
|
5 |
239
|
6 PINS="17" |
148
|
7 |
155
|
8 for PIN in $PINS; do |
|
9 echo $PIN > /sys/class/gpio/export |
148
|
10 done |
281
|
11 |
|
12 chgrp gpio /sys/class/gpio/gpio17/direction /sys/class/gpio/gpio17/value |
|
13 chmod g+w /sys/class/gpio/gpio17/direction /sys/class/gpio/gpio17/value |