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