BARRAUX Arthur
2 years ago
6 changed files with 10 additions and 4 deletions
@ -1,5 +1,11 @@ |
|||
#!/bin/bash |
|||
gpio mode $1 out |
|||
let "out=`gpio read $1`" |
|||
gpio write $1 $out |
|||
echo $out |
|||
if [ $out = 0 ] |
|||
then |
|||
gpio write $1 1 |
|||
echo 1 |
|||
else |
|||
gpio write $1 0 |
|||
echo 0 |
|||
fi |
|||
|
Loading…
Reference in new issue