This is a simple program, I think this program will show delays as it is very simple and the case statement will need to be changed according to the light at the moment of testing.
main:
readadc 1, b1
readadc 2, b2
select case b1
case 66 to 258
low 2
high 1
case 0 to 65 ; light sensing
high 2
low 1
end select
select case b2
case 66 to 258 ; no light sensing
low 4
high 3
case 0 to 65
high 4
low 3
end select
debug b1
debug b2
goto main
Friday, 23 April 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment