File size: 300 Bytes
a2a15a2 |
1 2 3 4 5 6 7 8 9 10 11 12 |
10 REM "ReadAnalogVoltage from Arduino examples - integer version"
100 REM "setup() put your setup code here, to run once:"
200 REM "loop() put your main code here, to run repeatedly:"
210 FOR I
220 S=AREAD(AZERO)
230 V=S*5/1023
240 PRINT V;".";
250 S=S-V*1023/5
260 V=S*50/1023
270 PRINT V
280 NEXT
|