<root>
<document schema='101' license='1,Default Flowcode Name,EA6R55' title='' description='' target='PIC.16F.16F1938' >
	<config data='!0,fe4!10,1633%0,4%3,0%5,1%6,1%7,1%8,1%9,3%b,1%c,0%d,0%10,3%14,3%18,0%19,1%1a,1%1c,1%1d,0' clkspd='32000000' simspd='1' usewdt='0' constif='0' />
	<plugins >
		<dll_dbg_icd enabled='0' >
			<data name='debug' value='1' />
			<data name='userpins' value='0' />
			<data name='speed' value='0' />
			<data name='usev9' value='0' />
			<data name='breaks' value='8' />
			<data name='stacks' value='8' />
			<data name='clkport' value='1' />
			<data name='clkbit' value='6' />
			<data name='dataport' value='1' />
			<data name='databit' value='7' />
			<data name='ghostype' value='0' />
			<data name='monitor' value='1' />
			<data name='ictloop' value='0' />
			<data name='ictrate' value='20000' />
			<data name='ictmask' value='0' />
			<data name='anlpres' value='255' />
			<data name='digmask1' value='-1' />
			<data name='digmask2' value='-1' />
		</dll_dbg_icd>
		<dll_models enabled='1' />
		<dll_upgrader enabled='1' />
		<dll_webhelp enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug />
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='635931ab-c2b2-4bf3-ae94-1c9edb2799e2' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='0' iconpath='' />
		<component class_type='root' codename='panel' x='0' y='0' z='8' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
			<resources />
			<properties />
			<values />
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='Ghosty' type='u8' description='Swap Witch' isconst='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Ghostx' type='u8' description='' isconst='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Warmup' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='false' type='b1' description='' isconst='1' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='GhostDetected' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Runtime' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='sec' type='u8' description='Seconds counter out side of Timer_int' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='First_Run' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Ghost' type='u8' description='When a Ghost triggers Beam' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='X' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TimerTick' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TMRO_Tick' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='seconds' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Loop' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Update' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='true' type='b1' description='' isconst='1' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Time' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Down' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Relay' description='Driver Code' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<local name='Ghosty' type='u8' description='To switch Ghost' isconst='0' isinit='1' usrinit='1' setinit='1' />
						<command class_type='delay' title='Delay' exp='1' type='2' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='Loop = 0' />
						</command>
						<command class_type='loop' title='Loop' type='1' exp='Ghost &gt; 1' >
							<flowline >
								<command class_type='delay' title='Delay' exp='1' type='1' />
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Clear' />
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
									<argument exp='0' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot;Waiting Ghost&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
									<argument exp='0' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot;Count=&quot;' />
								</command>
								<command class_type='loop' title='Loop' type='1' exp='Loop = 500' >
									<flowline >
										<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
											<argument exp='0' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
											<argument exp='&quot;Waiting Ghost&quot;' />
										</command>
										<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
											<argument exp='13' />
											<argument exp='1' />
										</command>
										<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
											<argument exp='&quot;500&quot;' />
										</command>
										<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
											<argument exp='6' />
											<argument exp='1' />
										</command>
										<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintNumber' >
											<argument exp='Loop' />
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='Loop = Loop + 1' />
										</command>
										<command class_type='delay' title='Delay' exp='600' type='1' />
									</flowline>
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='Ghost = 4' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Call Component Macro' disable='1' component='lcd_eb005' macro='ClearLine' >
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot;Ghost Not Here&quot;' />
						</command>
						<command class_type='delay' title='Delay' exp='1' type='2' />
						<command class_type='switch' title='Switch' textarea='36,200,36,200' exp='Ghost' >
							<case >
								<flowline />
							</case>
							<case exp='4' >
								<flowline >
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
										<argument exp='&quot;1st Fog&quot;' />
									</command>
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='ClearLine' >
										<argument exp='0' />
									</command>
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
										<argument exp='0' />
										<argument exp='0' />
									</command>
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
										<argument exp='&quot;No Ghost Detect&quot;' />
									</command>
									<command class_type='delay' title='Delay' exp='1' type='2' />
									<command class_type='output' title='Output Fog 2' mode='1' port='1048576' mask='4' exp='0' />
									<command class_type='delay' title='Delay' exp='2' type='1' />
									<command class_type='output' title='Output Fog 2' mode='1' port='1048576' mask='4' exp='1' />
									<command class_type='output' title='Output - POP UP' mode='1' port='1048576' mask='16' exp='0' />
									<command class_type='delay' title='Delay' exp='1' type='2' />
									<command class_type='output' title='Output - POP UP' mode='1' port='1048576' mask='16' exp='1' />
									<command class_type='output' title='Output - Pumking' mode='1' port='1048576' mask='128' exp='0' />
									<command class_type='output' title='Output - Pumpking Head - ON' mode='1' port='1048578' mask='16' exp='0' />
									<command class_type='output' title='Output - Strobe' mode='1' port='1048578' mask='4' exp='0' />
									<command class_type='output' title='Output - TREE' mode='1' port='1048576' mask='64' exp='0' />
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
										<argument exp='0' />
										<argument exp='1' />
									</command>
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
										<argument exp='&quot;10 Sec Delay&quot;' />
									</command>
									<command class_type='delay' title='Delay' exp='10' type='2' />
									<command class_type='output' title='Output - Pumking' mode='1' port='1048576' mask='128' exp='1' />
									<command class_type='output' title='Output - TREE' mode='1' port='1048576' mask='64' exp='0' />
									<command class_type='output' title='Output - Strobe' mode='1' port='1048578' mask='4' exp='1' />
									<command class_type='delay' title='Delay' exp='15' type='1' />
									<command class_type='output' title='Output - TREE' mode='1' port='1048576' mask='64' exp='1' />
									<command class_type='output' title='Output - Pumpking Head - OFF' mode='1' port='1048578' mask='16' exp='1' />
									<command class_type='calculation' title='Calculation' >
										<exp exp='Ghost = 0' />
									</command>
									<command class_type='delay' title='Delay' exp='1' type='1' />
								</flowline>
							</case>
						</command>
						<command class_type='delay' title='Delay' exp='1' type='2' />
						<command class_type='output' title='Output' mode='1' port='1048578' mask='2' exp='0' />
						<command class_type='call' title='Call Component Macro' disable='1' component='lcd_eb005' macro='ClearLine' >
							<argument exp='1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Relay2' description='2nd generation' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='output' title='Output' mode='1' port='1048578' mask='2' exp='1' />
						<command class_type='call' title='Call Component Macro' disable='1' component='lcd_eb005' macro='Clear' />
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot;Ghost BOO&quot;' />
						</command>
						<command class_type='delay' title='Delay' exp='1' type='2' />
						<command class_type='output' title='Output - Ghost Alarm ON' mode='1' port='1048578' mask='128' exp='0' />
						<command class_type='delay' title='Delay' exp='500' type='1' />
						<command class_type='output' title='Output - Ghost Alarm OFF' mode='1' port='1048578' mask='128' exp='1' />
						<command class_type='delay' title='Delay' exp='1' type='1' />
						<command class_type='output' title='Output' mode='1' port='1048578' mask='4' exp='0' />
						<command class_type='output' title='Output' mode='1' port='1048576' mask='2' exp='0' />
						<command class_type='delay' title='Delay' exp='10' type='1' />
						<command class_type='output' title='Output' mode='1' port='1048576' mask='4' exp='0' />
						<command class_type='delay' title='Delay' exp='10' type='1' />
						<command class_type='output' title='Output' mode='1' port='1048576' mask='8' exp='0' />
						<command class_type='delay' title='Delay' exp='10' type='1' />
						<command class_type='output' title='Output' mode='1' port='1048576' mask='2' exp='1' />
						<command class_type='output' title='Output' mode='1' port='1048576' mask='4' exp='1' />
						<command class_type='output' title='Output' mode='1' port='1048576' mask='8' exp='1' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='Ghost = 1' />
						</command>
						<command class_type='label' title='Connection Point' labelid='0' labelname='A' />
						<command class_type='switch' title='Switch' textarea='36,200,36,200' exp='Ghost' >
							<case >
								<flowline />
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='comment' title='' comment='Fog 1' textarea='12,0,12,0' />
									<command class_type='call' title='Call Component Macro' disable='1' component='lcd_eb005' macro='ClearLine' >
										<argument exp='0' />
									</command>
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
										<argument exp='0' />
										<argument exp='0' />
									</command>
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
										<argument exp='&quot;1st Fog&quot;' />
									</command>
									<command class_type='delay' title='Delay' exp='1' type='2' />
									<command class_type='output' title='Output - Pumking' mode='1' port='1048576' mask='128' exp='0' />
									<command class_type='output' title='Output Fog 1' mode='1' port='1048576' mask='2' exp='0' />
									<command class_type='output' title='Output - POP UP' mode='1' port='1048576' mask='16' exp='0' />
									<command class_type='delay' title='Delay' exp='200' type='1' />
									<command class_type='output' title='Output Fog 1' mode='1' port='1048576' mask='2' exp='1' />
									<command class_type='output' title='Output - POP UP' mode='1' port='1048576' mask='16' exp='1' />
									<command class_type='output' title='Output - Witch' mode='1' port='1048576' mask='32' exp='0' />
									<command class_type='output' title='Output - Pumpking Head - ON' mode='1' port='1048578' mask='16' exp='0' />
									<command class_type='calculation' title='Calculation' >
										<exp exp='Ghost = 2' />
									</command>
									<command class_type='goto' title='Goto Connection Point' labelid='0' labelname='' />
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='comment' title='' comment='Fog 2' textarea='12,0,12,0' />
									<command class_type='call' title='Call Component Macro' disable='1' component='lcd_eb005' macro='ClearLine' >
										<argument exp='0' />
									</command>
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
										<argument exp='0' />
										<argument exp='0' />
									</command>
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
										<argument exp='&quot;2nd Fog&quot;' />
									</command>
									<command class_type='delay' title='Delay' exp='1' type='2' />
									<command class_type='output' title='Output Fog 2' mode='1' port='1048576' mask='4' exp='0' />
									<command class_type='delay' title='Delay' exp='1' type='1' />
									<command class_type='output' title='Output Fog 2' mode='1' port='1048576' mask='4' exp='1' />
									<command class_type='output' title='Output - TREE' mode='1' port='1048576' mask='64' exp='0' />
									<command class_type='output' title='Output - Ghost' mode='1' port='1048578' mask='1' exp='0' />
									<command class_type='calculation' title='Calculation' >
										<exp exp='Ghost = 3' />
									</command>
									<command class_type='goto' title='Goto Connection Point' labelid='0' labelname='' />
								</flowline>
							</case>
							<case exp='3' >
								<flowline >
									<command class_type='comment' title='' comment='Fog 3' textarea='12,0,12,0' />
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='ClearLine' >
										<argument exp='0' />
									</command>
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
										<argument exp='0' />
										<argument exp='0' />
									</command>
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
										<argument exp='&quot;3rd loop&quot;' />
									</command>
									<command class_type='delay' title='Delay' exp='1' type='2' />
									<command class_type='output' title='Output Fog 2' mode='1' port='1048576' mask='8' exp='0' />
									<command class_type='delay' title='Delay' exp='1' type='1' />
									<command class_type='output' title='Output Fog 2' mode='1' port='1048576' mask='8' exp='1' />
									<command class_type='output' title='Output - Want Out' mode='1' port='1048578' mask='8' exp='0' />
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='ClearLine' >
										<argument exp='1' />
									</command>
									<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
										<argument exp='&quot;20 Sec Delay&quot;' />
									</command>
									<command class_type='comment' title='' comment='Original 20 seconds' textarea='12,0,12,0' />
									<command class_type='delay' title='Delay' exp='2' type='2' />
									<command class_type='output' title='Output - Pumpkin' mode='1' port='1048576' mask='128' exp='1' />
									<command class_type='output' title='Output - Want Out' mode='1' port='1048578' mask='8' exp='1' />
									<command class_type='output' title='Output - TREE' mode='1' port='1048576' mask='64' exp='1' />
									<command class_type='output' title='Output - Ghost' mode='1' port='1048578' mask='1' exp='1' />
									<command class_type='output' title='Output - Witch' mode='1' port='1048576' mask='32' exp='1' />
									<command class_type='output' title='Output- Strobe' mode='1' port='1048578' mask='4' exp='1' />
									<command class_type='output' title='Output - Pumpking Head - OFF' mode='1' port='1048578' mask='16' exp='1' />
									<command class_type='calculation' title='Calculation' >
										<exp exp='Ghost = 0' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='delay' title='Delay' exp='1' type='1' />
						<command class_type='output' title='Output' mode='1' port='1048578' mask='2' exp='0' />
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Clear' />
						<command class_type='delay' title='Delay' exp='1' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='INTOISR' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='GhostDetected = 1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Timer2ISR' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Decision' exp='TimerTick &lt; 125' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='TimerTick = TimerTick + 1' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='TimerTick = 0' />
									<exp exp='' />
								</command>
								<command class_type='decision' title='Decision' exp='sec &lt; 300' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='sec = sec + 1' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Start' description='Used to Define values' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='Ghost = 0' />
							<exp exp='Loop = 0' />
							<exp exp='Time = 0' />
							<exp exp='TMRO_Tick = 0' />
							<exp exp='seconds = 0' />
							<exp exp='First_Run = 0' />
							<exp exp='Runtime = 0' />
							<exp exp='Warmup = 300' />
							<exp exp='TimerTick = 0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Trigger' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='output' title='Output' mode='1' port='1048578' mask='2' exp='1' />
						<command class_type='call' title='Call Component Macro' disable='1' component='lcd_eb005' macro='ClearLine' >
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot;Trigger&quot;' />
						</command>
						<command class_type='delay' title='Delay' exp='1' type='1' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='Ghost = 1' />
							<exp exp='' />
						</command>
						<command class_type='call' title='Call Macro' macro='Relay2' />
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot;Waiting Ghost&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Clear' />
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot;Count=&quot;' />
						</command>
						<command class_type='delay' title='Delay' exp='1' type='1' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='Loop = 1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='native' title='C Code' textarea='36,0,511,300' ccode='osccon=0xf0;
//iocbp=0Xff;' language='C' />
						<command class_type='calculation' title='Initialise count values' textarea='436,67,436,188' >
							<exp exp='Time = 0' />
							<exp exp='TMRO_Tick = 0' />
							<exp exp='seconds = 0' />
							<exp exp='First_Run = 0' />
							<exp exp='Runtime = 0' />
						</command>
						<command class_type='call' title='Call Macro' macro='Start' />
						<command class_type='output' title='Output' mode='1' port='1048578' mask='2' exp='0' />
						<command class_type='interrupt' title='Interrupt' enable='1' name='INT0' call='INTOISR' >
							<settings timer='0' prescale='-1' postscale='-1' rollover='-1' bitcount='-1' trigger='1' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='0' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='interrupt' title='Interrupt' enable='1' name='TMR2' call='Timer2ISR' >
							<settings timer='1' prescale='16' postscale='16' rollover='250' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='2' />
								<option value='15' />
								<option value='250' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Start' />
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot;Version&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot;Timer3A 2018&quot;' />
						</command>
						<command class_type='delay' title='Delay' exp='1' type='2' />
						<command class_type='output' title='Output' mode='1' port='1048576' mask='2' exp='1' />
						<command class_type='output' title='Output' mode='1' port='1048576' mask='4' exp='1' />
						<command class_type='output' title='Output' mode='1' port='1048576' mask='8' exp='1' />
						<command class_type='output' title='Output' mode='1' port='1048576' mask='16' exp='1' />
						<command class_type='output' title='Output' mode='1' port='1048576' mask='32' exp='1' />
						<command class_type='output' title='Output' mode='1' port='1048576' mask='64' exp='1' />
						<command class_type='output' title='Output' mode='1' port='1048576' mask='128' exp='1' />
						<command class_type='output' title='Output' mode='1' port='1048578' mask='1' exp='1' />
						<command class_type='output' title='Output' mode='1' port='1048578' mask='4' exp='1' />
						<command class_type='output' title='Output' mode='1' port='1048578' mask='8' exp='1' />
						<command class_type='output' title='Output' mode='1' port='1048578' mask='16' exp='1' />
						<command class_type='output' title='Output' mode='1' port='1048578' mask='32' exp='1' />
						<command class_type='output' title='Output' mode='1' port='1048578' mask='64' exp='1' />
						<command class_type='output' title='Output' mode='1' port='1048578' mask='128' exp='1' />
						<command class_type='output' title='Output' mode='1' port='1048577' mask='1' exp='0' />
						<command class_type='delay' title='Delay' exp='1' type='1' />
						<command class_type='loop' title='Loop' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Clear' />
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot;Sec=&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintNumber' >
									<argument exp='sec' />
								</command>
								<command class_type='decision' title='Decision' exp='Sec = 300' swap='0' >
									<flowline >
										<command class_type='output' title='Output' mode='1' port='1048578' mask='1' exp='1' />
										<command class_type='calculation' title='No Ghost Detected' >
											<exp exp='Ghost = 4' />
											<exp exp='seconds = 0' />
										</command>
										<command class_type='call' title='Call Macro' macro='Relay' />
									</flowline>
									<flowline />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
									<argument exp='0' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot;Ghost=&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintNumber' >
									<argument exp='GhostDetected' />
								</command>
								<command class_type='decision' title='Decision' exp='GhostDetected = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='Ghost = 1' />
											<exp exp='seconds = 0' />
										</command>
										<command class_type='call' title='Call Macro' macro='Trigger' />
										<command class_type='call' title='Call Macro' macro='Relay2' />
									</flowline>
									<flowline />
								</command>
								<command class_type='comment' title='' comment='Original 10ms' textarea='12,0,12,0' />
								<command class_type='delay' title='Delay' exp='10' type='1' />
							</flowline>
						</command>
						<command class_type='call' title='Call Macro' disable='1' macro='Relay' />
					</flowline>
				</macro>
				<macro >
					<flowline name='timer_int' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
							<exp exp='TMRO_Tick = TMRO_Tick + 1' />
							<exp exp='' />
						</command>
						<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='TMRO_Tick &gt;= 300' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
									<exp exp='TMRO_Tick = 0' />
									<exp exp='Seconds = Seconds + 1' />
									<exp exp='Update = 1' />
								</command>
								<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='(First_Run = 1) &amp;&amp; (Seconds &lt; 5)' swap='0' >
									<flowline />
									<flowline >
										<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
											<exp exp='First_Run = 0' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='Runtime &lt; 32766' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
											<exp exp='Runtime = Runtime + 1' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='d29dda88-17de-4008-991a-c881890d4c57' vmin='1' vmaj='1' codename='lcd_eb005' x='28' y='46.15' z='0' xsz='1.9' ysz='1.5427' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Pin_Data_0' data='$PORTB.1' />
					<value target='Pin_Data_1' data='$PORTB.2' />
					<value target='Pin_Data_2' data='$PORTB.3' />
					<value target='Pin_Data_3' data='$PORTB.4' />
					<value target='Pin_RS' data='$PORTB.5' />
					<value target='Pin_E' data='$PORTB.6' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='7fdaec78-394e-4ec9-a578-4f1a12a12076' vmin='1' vmaj='1' codename='led_5mm_clip1' x='-63.9' y='39.9' z='0' xsz='3.07692' ysz='3.07692' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTC.1' />
					<value target='polarity' data='001' />
					<value target='on_color' data='255' />
					<value target='show_label' data='002' />
					<value target='label_property' data='pin' />
					<value target='label_color' data='16777215' />
					<value target='label_scale' data='1.000000' />
					<value target='label_auto_scale' data='0' />
					<value target='label_position' data='003' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='5c1da48f-ce54-4622-bdd9-fc812e373696' vmin='0' vmaj='1' codename='sw_push_rnd_pnl1' x='-63.0178' y='82.4953' z='-0.551875' xsz='1.70213' ysz='1.70213' zsz='2.00728' xang='-19.6328' yang='17.4271' zang='1.24098' xquat='-0.17013' yquat='0.147443' zquat='0.0363747' wquat='0.973649' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTB.0' />
					<value target='polarity' data='000' />
					<value target='debounce' data='10' />
					<value target='operation' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='63177601-e8e2-4330-89d3-a4c5a7e228f5' vmin='1' vmaj='1' codename='led_array_pcb1' x='9.69025' y='-1.05' z='2.24237' xsz='1.35593' ysz='1.35593' zsz='1.35593' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='1' >
				<resources />
				<properties />
				<values >
					<value target='count' data='8' />
					<value target='polarity' data='000' />
					<value target='port' data='011' />
					<value target='pin0' data='$PORTA.1' />
					<value target='pin1' data='$PORTA.2' />
					<value target='pin2' data='$PORTA.3' />
					<value target='pin3' data='$PORTA.4' />
					<value target='pin4' data='$PORTA.5' />
					<value target='pin5' data='$PORTA.6' />
					<value target='pin6' data='$PORTA.7' />
					<value target='pin7' data='$PORTC.0' />
					<value target='full_port' data='' />
					<value target='align' data='000' />
					<value target='spacing' data='7.000000' />
					<value target='reverse' data='0' />
					<value target='show_labels' data='003' />
					<value target='color_led0' data='65280' />
					<value target='label_color' data='16777215' />
					<value target='bitmask' data='255' />
					<value target='inv_bitmask' data='-256' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label1' x='56' y='-8.8' z='0' xsz='8' ysz='8' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='0' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='A1 - A3 is Fog Machine' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label2' x='48' y='-16' z='0.25' xsz='8' ysz='8' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='0' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='A4 = The monster rising' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label3' x='32' y='-24' z='0' xsz='8' ysz='8' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='0' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='A5 to C0 is for the witches battery action' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='63177601-e8e2-4330-89d3-a4c5a7e228f5' vmin='1' vmaj='1' codename='led_array_pcb2' x='9.69025' y='-40' z='15.0771' xsz='1.35593' ysz='1.35593' zsz='1.35593' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='1' >
				<resources />
				<properties />
				<values >
					<value target='count' data='8' />
					<value target='polarity' data='000' />
					<value target='port' data='011' />
					<value target='pin0' data='$PORTC.2' />
					<value target='pin1' data='$PORTC.3' />
					<value target='pin2' data='$PORTC.4' />
					<value target='pin3' data='$PORTC.5' />
					<value target='pin4' data='$PORTC.6' />
					<value target='pin5' data='$PORTC.7' />
					<value target='pin6' data='$PORTC.2' />
					<value target='pin7' data='$PORTC.3' />
					<value target='full_port' data='' />
					<value target='align' data='000' />
					<value target='spacing' data='7.000000' />
					<value target='reverse' data='0' />
					<value target='show_labels' data='003' />
					<value target='color_led0' data='65280' />
					<value target='label_color' data='16777215' />
					<value target='bitmask' data='255' />
					<value target='inv_bitmask' data='-256' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label4' x='44.6294' y='11.2487' z='0' xsz='8' ysz='5' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='16777193' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='F1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label5' x='34.7309' y='11.2487' z='0' xsz='8' ysz='5' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='16777193' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='F2' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label6' x='24.9847' y='11.6548' z='0' xsz='8' ysz='5' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='16777193' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='F3' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label7' x='14.8324' y='10.8426' z='0' xsz='8' ysz='5' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='16777193' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='P' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label8' x='4.6801' y='10.8426' z='0' xsz='8' ysz='5' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='16777193' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='W' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label9' x='-4.66001' y='11.2487' z='0' xsz='8' ysz='5' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='16777193' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='T' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label10' x='-13.594' y='11.2487' z='0' xsz='8' ysz='5' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='16777193' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='PK' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label11' x='-23.3402' y='11.6548' z='0' xsz='8' ysz='5' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='16777193' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='G' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label12' x='43.2588' y='-47.2285' z='0' xsz='8' ysz='5' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='16777193' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='S' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label13' x='-5.21841' y='-50.8833' z='0' xsz='8' ysz='5' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='16777193' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='Ghost' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='shape' codename='shape1' x='-3.65483' y='-43.4518' z='-8' xsz='32' ysz='10' zsz='32' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Shape' data='150' />
					<value target='Color' data='192' />
					<value target='Outline' data='0' />
					<value target='Thickness' data='0.320000' />
					<value target='Image' data='' />
					<value target='Model' data='' />
					<value target='Unit' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label14' x='34.1725' y='-48.0407' z='0' xsz='8' ysz='5' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='16777193' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='W' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label15' x='23.6141' y='-47.2285' z='0' xsz='8' ysz='5' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='16777193' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='PH' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='9737364' img='' style='0' />
		<camera xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel2d>
	<panel3d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='25' />
		<camera xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel3d>
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAANQUAAHkCAAA' zoom='75' scrollx='0' scrolly='2718' flags='0' />
		<view type='0' name='Relay2' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAANQUAAHkCAAA' zoom='25' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Timer2ISR' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAANQUAAHkCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='INTOISR' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAANQUAAHkCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Relay' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAANQUAAHkCAAA' zoom='25' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Start' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAANQUAAHkCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Trigger' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAANQUAAHkCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='timer_int' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAANQUAAHkCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
