Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 10 @ARUN'IoTキット
- 20 SWITCH 1,10
- 30 WAIT 60:CLS
- 40 ?"IoTキット"
- 50 SWITCH1,10
- 100 POKE#700,0,#5E
- 110 R=I2CW(#48,#700,1):'temp1
- 115 R=I2CR(#48,#702,2)
- 120 R=I2CW(#4B,#700,1):'temp2
- 125 R=I2CR(#4B,#704,2)
- 126 R=I2CW(#40,#701,1)
- 127 R=I2CR(#40,#706,2)
- 130 T=PEEK(#702)<<8+PEEK(#703):U=PEEK(#704)<<8+PEEK(#705)
- 140 D=PEEK(#706)<<4+PEEK(#707)
- 143 LC 0,0:?"***IoTエッジキット***";
- 144 LC0,1
- 145 PRINT "オンド1= ";T/128;".";(T+6)%128*10/128;" "
- 146 PRINT "オンド2= ";U/128;".";(U+6)%128*10/128;" "
- 147 PRINT "キョリ = ";D/64;" ";
- 150 WAIT 60
- 160 GOTO 100
- OK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement