view py/setup_gpio.sh @ 616:a85c0c9bc1fa rust

hide epoch in ParamWaiter make_request handles the buffer too
author Matt Johnston <matt@ucc.asn.au>
date Wed, 08 Mar 2017 23:08:14 +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