File size: 332 Bytes
a2a15a2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 10 REM "AnalogInput from Arduino examples"
20 REM "S is the analog sensor input, L the LED pin"
30 S=AZERO
40 L=13
50 V=0
100 REM "setup() put your setup code here, to run once:"
110 PINM L, 1
200 REM "loop() put your main code here, to run repeatedly:"
210 FOR I
220 V=AREAD(S)
230 DWRITE L, 1
240 DELAY V
250 DWRITE L, 0
260 NEXT
|