view 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
line wrap: on
line source

#!/bin/sh

# this must run as root


PINS="17"

for PIN in $PINS; do
    echo $PIN > /sys/class/gpio/export
done

chgrp gpio /sys/class/gpio/gpio17/direction /sys/class/gpio/gpio17/value
chmod g+w /sys/class/gpio/gpio17/direction /sys/class/gpio/gpio17/value