20
PICAXE
PIC
Flashing Crossing Lights
–Program 3: modified to flash 5 seconds on each button push
start:
low 1 ‘turn off LED 1
low 2 ‘turn off LED 2
if pin3 = 1 then start: ‘if switch off go to top
flash:
  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
Modify code and program 08M  - demo and pass around display unit on board with reed switch  #3
OK to copy/paste