BARRAUX Arthur
2 years ago
2 changed files with 10 additions and 13 deletions
@ -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 |
@ -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…
Reference in new issue