
; blink_LED.EZ
; Foxonix / Metre Ideas and Design
; www.foxonix.com

; Program: Will Sakran
; Created: 02.26.14
; Public - Modify and share this program as you wish.

; Program description
;	Turn an LED on for one second and then off for one second

; Hardware OUTPUTS
; 	LED connected to pin P3.3


; Set the device name
[device]
SNC21030


; Specify the number of pins to be used as inputs.
; At lease one input must be defined even if it is not used.
[key]
direct=1


; Define the various input states for the program.
; This describes which pins will have buttons, switches, or
; other inputs attached to them, and defines when those
; inputs will be active and inactive. At least one input
; state must be defined even if it is not used.
[input_states]
; Port.Pin		P1.0
locked_out:		x


; Define the various output states for the program.
; Outputs are used to drive LEDs, motor circuits, or any
; other output device.
[output_states]
led_on:		P3=[1 x x x]		; sets pin P3.3 to 1
led_off:	P3=[0 x x x]		; sets pin P3.3 to 0


; Define the routines (paths) that the program will use.
; The init path is always called first on power up and reset.
[paths]
init:
	& loop			; jump to the loop: label


; loop forever
loop:
	& led_on		; set the LED_ON output state
	& delay(1.0)		; wait one second
	& led_off		; set the LED_OFF output state
	& delay(1.0)		; wait one second
	& loop			; jump to the loop: label

