I think I may be a little stupid, ive read various posts regarding readtemp12 negative temps but I still can't seem to follow how to write the code.
This is what i'm using at present for positive temps to 1 decimal place: (copied from somewhere but I cant remember where, although I do follow it somewhat.)
readtemp12 1,w0
w1=w0*10
w2=w1/16
b0=w2/10
b1=w2//10
Can someone please explain the negative bit (excuse the pun) in simple terms please?
This is what i'm using at present for positive temps to 1 decimal place: (copied from somewhere but I cant remember where, although I do follow it somewhat.)
readtemp12 1,w0
w1=w0*10
w2=w1/16
b0=w2/10
b1=w2//10
Can someone please explain the negative bit (excuse the pun) in simple terms please?