@ -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;
@ -1,8 +1,8 @@
#!/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