@ -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"
# printf %.2f "$(($temperature))e-2"
echo
echo $temperature > toto;
@ -1,8 +1,8 @@
#!/bin/bash
gpio mode $1 out
let "out=`gpio read $1`"
if [ gpio read $1 = 1 ]
if [ $out = 1 ]
then
gpio write $1 0
echo 0