This is the program that was used to illumate the LED when testing the effects of using the magnetic strip. This is demonstrated in the videos that will follow
-------------------------------------------------------
symbol Motor = 2
symbol LDR = 1
Main:
gosub Light
gosub Spin
goto main
Light:
if pin1 = 1 then
low 1
else pin1 = 0
high 1
endif
return
Spin:
high Motor
pause 200
low Motor
return
Tuesday, 23 March 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment