ds1621溫度傳感器仿真程序:
rem Main.bas file generated by New Project wizard
rem
rem Created: 周三 10月 25 2023
rem Processor: ATmega88
rem Compiler: BASCOM-AVR
rem Write your code here
'判斷溫度值正負符號
if i2ctemp<=255 and i2ctemp>=201 then gosub fwd
if i2ctemp>=0 and i2ctemp<=128 then gosub zwd
if i2ctemp=0 then gosub zxz
Waitms 25
gosub xswd:
Waitms 25
Loop
end
'******************************************************