diff --git a/scripts/Test extension RPI.py b/scripts/Test extension RPI.py old mode 100644 new mode 100755 diff --git a/scripts/get_temp.sh b/scripts/get_temp.sh index c0c3c38..92747a3 100755 --- a/scripts/get_temp.sh +++ b/scripts/get_temp.sh @@ -13,5 +13,5 @@ else upper_byte=$((upper_byte & 0x0F)) let "temperature = ($upper_byte*100 * 16 + $lower_byte*100 / 4096)" fi -printf %.2f "$(($temperature))e-2" -echo +# printf %.2f "$(($temperature))e-2" +echo $temperature > toto; diff --git a/scripts/led.sh b/scripts/led.sh old mode 100644 new mode 100755 index 907b3ef..b1dc3c8 --- a/scripts/led.sh +++ b/scripts/led.sh @@ -1,12 +1,12 @@ #!/bin/bash gpio mode $1 out - -if [ gpio read $1 = 1 ] +let "out=`gpio read $1`" +if [ $out = 1 ] then gpio write $1 0 echo 0 else gpio write $1 1 echo 1 -fi \ No newline at end of file +fi diff --git a/scripts/temp.sh b/scripts/temp.sh old mode 100644 new mode 100755