hello,
i have been trying to read out a temeprature from the DS18B20 with the picaxe 18X... then i send it to a display but i think i have to convert the value first... i used this basic test program
init: pause 500
i2cslave $C6,i2cslow,i2cbyte
writei2c 0,(254,1,255)
main: readtemp 1,b1
b2 = %1111 & b1
writei2c 0,(254,128,255)
pause 10
writei2c 0,("temp:",$b1,255)
end
i get "temp:" but then a realy strange symbol... anybody an idea how to get de decimal value?
Grtz
i have been trying to read out a temeprature from the DS18B20 with the picaxe 18X... then i send it to a display but i think i have to convert the value first... i used this basic test program
init: pause 500
i2cslave $C6,i2cslow,i2cbyte
writei2c 0,(254,1,255)
main: readtemp 1,b1
b2 = %1111 & b1
writei2c 0,(254,128,255)
pause 10
writei2c 0,("temp:",$b1,255)
end
i get "temp:" but then a realy strange symbol... anybody an idea how to get de decimal value?
Grtz