Browse Source

3.14159265

master
BARRAUX Arthur 2 years ago
parent
commit
64ec135d02
  1. 13
      scripts/blink.sh
  2. 10
      scripts/led.sh

13
scripts/blink.sh

@ -1,13 +0,0 @@
#!/bin/bash
gpio mode 7 out
for i in `seq 1 10`
do
if [ $(($i%2)) == 0 ]
then
gpio write 7 0
else
gpio write 7 1
fi
sleep 1
done

10
scripts/led.sh

@ -0,0 +1,10 @@
#!/bin/bash
gpio mode $1 out
if [ gpio read $1 = 1 ]
then
gpio write $1 0
else
gpio write $1 1
fi
Loading…
Cancel
Save