16
PICAXE
PIC
Flashing Crossing Lights
–Program 1:
–
–
–
–
–Notes:
–“start” is just a label telling the “goto” where to go
–the program remains in the chip’s memory until it is manually erased or overwritten.
–
–
–
high 1 ‘turn on LED 1 - pin out1
low 2 ‘turn off LED 2 - pin out2
start:
  pause 500 ‘wait ½ second
  toggle 1 ‘switch LED 1 on pin out1
  toggle 2 ‘switch LED 2 on pin out2
goto start: ‘do it again
Type in program and send to 08M – show lights flashing – OK to copy/paste

 ??show simulation??  YES!