Flashing Crossing Lights
–Software modification
–
start:
low 1 ‘turn off LED 1
low 2 ‘turn off LED 2
if pin3 = 0 then start2: ‘if switch hit start
goto start: ‘if no switch start over
start2:
  high 1 ‘LED 1 on
  low 2 ‘LED 2 off
for b0= 1 to 10 ‘do this 10 times
  pause 500 ‘wait ½ second
  toggle 1:toggle 2 ‘switch lights
next b0 ‘do next of 5 loops
goto start: ‘start from very top