' -----------------------------------------------
' Pulse generator with selectable frequency
' -----------------------------------------------

' Keyboard keys are used to select the frequency

Key 1 Goto 1 	' press key 1 for 1 Hz 
Key 2 Goto 2 	' press key 2 for 2 Hz
Key 3 Goto 3 	' press key 3 for 5 Hz
Key 4 Goto 4 	' press key 3 for 10 Hz

Option Speed 9 		' Set the max execution speed

Label 1
	Slot(1) = 1000
	Wait Seconds 0.005
	Slot(1) = 0
	Wait Seconds 0.995 
Goto 1

Label 2
	Slot(1) = 1000
	Wait Seconds 0.005
	Slot(1) = 0
	Wait Seconds 0.495
Goto 2

Label 3
	Slot(1) = 1000
	Wait Seconds 0.005
	Slot(1) = 0
	Wait Seconds 0.195
Goto 3

Label 4
	Slot(1) = 1000
	Wait Seconds 0.005
	Slot(1) = 0
	Wait Seconds 0.095
Goto 4

