Script qui allume bien python après parce que c'est quand même foutrement plus pratique
This commit is contained in:
parent
249d3941d6
commit
72ade7d689
1 changed files with 6 additions and 2 deletions
|
@ -1,11 +1,15 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
|
trap "boucle=false" INT
|
||||||
|
trap "boucle=false" TERM
|
||||||
|
boucle=true
|
||||||
|
|
||||||
stty -F /dev/ttyACM0 115200 raw -echo -echoe -echok
|
stty -F /dev/ttyACM0 115200 raw -echo -echoe -echok
|
||||||
|
|
||||||
rm -f ./serialOutput/serialOutput.csv
|
rm -f ./serialOutput/serialOutput.csv
|
||||||
touch ./serialOutput/serialOutput.csv
|
touch ./serialOutput/serialOutput.csv
|
||||||
|
|
||||||
while true; do
|
while $boucle; do
|
||||||
read line < /dev/ttyACM0
|
read line < /dev/ttyACM0
|
||||||
echo $line >> ./serialOutput/serialOutput.csv
|
echo $line >> ./serialOutput/serialOutput.csv
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Reference in a new issue