bs2 homework board ? Traffic light
amelecsol2000
Posts: 4
············ I am experimenting with traffic signal code.( 3 led's )
·············I can't seem to get anywhere with a code.
············ I would like to know if someone could tell me how to write the code for the traffic· signal one side,·I will then experiment to ·modify it to control 4 sides.
············ I just need to get the initial 3 led's working.
············ Any advice or input would be appreciated.
·············Thank you
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·········· If you believe you can't·, you are absolutely right!!!!
·············I can't seem to get anywhere with a code.
············ I would like to know if someone could tell me how to write the code for the traffic· signal one side,·I will then experiment to ·modify it to control 4 sides.
············ I just need to get the initial 3 led's working.
············ Any advice or input would be appreciated.
·············Thank you
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·········· If you believe you can't·, you are absolutely right!!!!
Comments
' {$STAMP BS2}
' {$PBASIC 2.5}
DO
· HIGH 14
· LOW 13
· LOW 12
· PAUSE 2000
· LOW 12
· LOW 14
· HIGH 13
· PAUSE 2000
· HIGH 12
· LOW 13
· LOW·14
· PAUSE 900
LOOP
END
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Have Fun
TR
http://forums.parallax.com/showthread.php?p=641686
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·········· If you believe you can't·, you are absolutely right!!!!