blob: d730c68447e19aaad5cd0f4d830106d73fa3d3a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh
GPIO=$1
trap "" INT HUP
echo $GPIO > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio${GPIO}/direction
while true; do
echo 1 > /sys/class/gpio/gpio${GPIO}/value
sleep 1
echo 0 > /sys/class/gpio/gpio${GPIO}/value
sleep 180
done
|