Enjoy programming more!
Kidspod is a post site which supports young programmers.
First step to join us.
Register as a member
For members

2016/05/28 07:13:09

MixJuice GET URL : kidspod.club/mj/84

ADT7410温度計

I2C温度センサADT7410で取得した温度を表示します

  • No registered tag exist.

SOURCE CODE

1 'オント゛ケイ
10 POKE #700,0
20 A=I2CR(#48,#700,1,#702,2)
30 '?A
50 T=(PEEK(#702)<<8+PEEK(#703))>>3
60 LC 12,10:?T/16;".";
70 IF T%16*10/16=0 ?"0";
80 ?T%16*100/16;"゜C"
90 WAIT60:GOTO20

COMMENT