'{$STAMP BS2}
'Blinks an LED on P0

'-------------------------------------------------------------
'I/O Definitions
'-------------------------------------------------------------

'LED connected to pin 0

LEDpin CON 0


'-------------------------------------------------------------
'Constants
'-------------------------------------------------------------

'delay time in milliseconds

DelayTime CON 500


'-------------------------------------------------------------
'Program Code
'-------------------------------------------------------------


Main:


'turn LED on

HIGH LEDpin

'pause for length of DelayTime
PAUSE DelayTime

'turn LED off
LOW LEDpin

'pause while off
PAUSE DelayTime

'do it again by going back to main
GOTO Main

END