Hey guys,
I got the pics in and realized that my flash disk has given up. its one of those viruses I've seen before on my friends disks. It basically cleans up a major part of the disk space.
Anyway
Heres the code:
main:
pause 750
readtemp 1,b1
readtemp 0,b2
readtemp 7,b3
if b1 < 127 and b2 < 127 and b3 < 127 then gosub out
if b1 > 127 then gosub negb1 ' check for negitive value
if b2 > 127 then gosub negb2
if b3 > 127 then gosub negb3
let b9 = 0
goto main
out:
if b2 = b1 then gosub buzz
if b9 = 1 then back
sertxd ("Temp1: ",#b1, ", Temp2: ",#b2, ", Temp3: ",#b3, cr,lf)
return
negb1:
let b1 = b1 - 128
sertxd ("Temp1: -",#b1, ", Temp2: ",#b2, ", Temp3: ",#b3, cr,lf)
return
negb2:
let b2 = b2 - 128
sertxd ("Temp1: ",#b1, ", Temp2: -",#b2, ", Temp3: ",#b3, cr,lf)
return
negb3:
let b3 = b3 - 128
sertxd ("Temp1: ",#b1, ", Temp2: ",#b2, ", Temp3: -",#b3, cr,lf)
return
buzz:
Sound 2,(125,50)
sertxd ("Temp1: ",#b1, ", Temp2: ",#b2, ", Temp3: ",#b3, cr,lf)
let b9 = 1
return
back:
return
Hope it can be useful to someone. Its probably not the best code but im learning. Any ideas on this are welcome.