jadesteffen
New Member
I'm learning how to progam the picaxe, and I just built a simple circuit. it has one light sensor on input 1, and one led on output 4. I typed in my code and downloaded it. The led remains off. I bring it under ythe light and its still off. then i unplug the serial cable and all of a sudden the led turns on?! please help!
heres my code:
symbol res=b1
loop:
readadc 1,res
if res>100 then ledon
if res<100 then ledoff
goto loop
ledon:
High 4
goto loop
ledoff:
low 4
goto loop
Edited by - jadesteffen on 9/29/2005 9:28:31 PM
heres my code:
symbol res=b1
loop:
readadc 1,res
if res>100 then ledon
if res<100 then ledoff
goto loop
ledon:
High 4
goto loop
ledoff:
low 4
goto loop
Edited by - jadesteffen on 9/29/2005 9:28:31 PM