<root>
<document schema='101' license='1,Grant Ferens,ZFMR14' title='' description='' target='PIC.18F.18F45K50' >
	<config data='!0,22!8,22!10,5f!18,3c!20,0!28,d1!30,a5!38,ff!40,f!48,c0!50,f!58,e0!60,f!68,40%0,0%1,1%3,0%5,1%8,2%d,1%e,0%f,0%10,1%11,3%13,3%16,1%18,0%1a,f%28,1%29,0%2c,1%2e,1%2f,1%30,1%32,1%35,1%36,0%37,1%40,1%41,1%42,1%43,1%4e,1%4f,1%50,1%51,1%52,1%53,1%5d,1%5e,1%5f,1%60,1%61,1%62,1%63,1%6e,1' clkspd='48000000' 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='1000' />
			<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='1' />
			<data name='ictrate' value='1000' />
			<data name='ictmask' value='-1' />
			<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='27bd91d6-60f3-4814-9a40-a442e9eae7ba' 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='0' 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='read_y' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='read_x' 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='y' type='u8' description='' 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='true' type='b1' description='' isconst='1' isinit='1' usrinit='1' setinit='1' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='Not currently used- set to outputs/low

A0, A1, B5 connected directly to MCU2

A2, C1, D5, D6 have pull down resistors

D4 is connected to aux input' textarea='12,0,12,0' />
						<command class_type='output' title='Output' mode='2' port='1048577' mask='11' exp='0' />
						<command class_type='output' title='Output' mode='1' port='1048577' mask='16' exp='1' />
						<command class_type='output' title='Output' mode='2' port='1048580' mask='7' exp='0' />
						<command class_type='output' title='Output' mode='2' port='1048576' mask='15' exp='0' />
						<command class_type='output' title='Output' mode='2' port='1048578' mask='198' exp='0' />
						<command class_type='output' title='Output' mode='1' port='1048579' mask='16' exp='1' />
						<command class_type='output' title='Output' mode='2' port='1048579' mask='111' exp='0' />
						<command class_type='output' title='Output' mode='1' port='1048577' mask='4' exp='1' />
						<command class_type='comment' title='' comment='Aux input' textarea='12,0,12,0' />
						<command class_type='call' title='Call Component Macro' component='sw_slide_sub_pcb3' macro='ReadState' />
						<command class_type='output' title='Output' mode='1' port='1048578' mask='1' exp='0' />
						<command class_type='call' title='Call Component Macro' component='led_5mm_clip7' macro='TurnOff' />
						<command class_type='output' title='Output' mode='1' port='1048579' mask='128' exp='1' />
						<command class_type='comment' title='' comment='Start of Test' textarea='12,0,195,0' />
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Read' >
							<return exp='read_x' />
							<argument exp='30' />
						</command>
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Read' >
							<return exp='read_y' />
							<argument exp='52' />
						</command>
						<command class_type='decision' title='Decision' exp='(read_x &gt; 0) AND (read_y &gt; 0)' swap='0' >
							<flowline >
								<command class_type='comment' title='' comment='Flash Red' textarea='12,0,12,0' />
								<command class_type='loop' title='Loop' type='2' exp='2' >
									<flowline >
										<command class_type='call' title='Call Component Macro' component='led_5mm_clip5' macro='TurnOn' />
										<command class_type='delay' title='Delay' exp='100' type='1' />
										<command class_type='call' title='Call Component Macro' component='led_5mm_clip5' macro='TurnOff' />
										<command class_type='delay' title='Delay' exp='100' type='1' />
										<command class_type='call' title='Call Component Macro' component='led_5mm_clip5' macro='TurnOn' />
										<command class_type='delay' title='Delay' exp='100' type='1' />
										<command class_type='call' title='Call Component Macro' component='led_5mm_clip5' macro='TurnOff' />
										<command class_type='delay' title='Delay' exp='1' type='2' />
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Call Component Macro' component='basic_switch1' macro='WaitUntilLow' />
						<command class_type='loop' title='Loop' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Write' >
									<argument exp='30' />
									<argument exp='x' />
								</command>
								<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Write' >
									<argument exp='52' />
									<argument exp='y' />
								</command>
								<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Read' >
									<return exp='read_x' />
									<argument exp='30' />
								</command>
								<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Read' >
									<return exp='read_y' />
									<argument exp='52' />
								</command>
								<command class_type='decision' title='Decision' exp='(read_x = x) AND (read_y = y)' swap='0' >
									<flowline >
										<command class_type='comment' title='' comment='Flash Green' textarea='12,0,12,0' />
										<command class_type='loop' title='Loop' type='2' exp='2' >
											<flowline >
												<command class_type='call' title='Call Component Macro' component='led_5mm_clip7' macro='TurnOn' />
												<command class_type='delay' title='Delay' exp='100' type='1' />
												<command class_type='call' title='Call Component Macro' component='led_5mm_clip7' macro='TurnOff' />
												<command class_type='delay' title='Delay' exp='100' type='1' />
												<command class_type='call' title='Call Component Macro' component='led_5mm_clip7' macro='TurnOn' />
												<command class_type='delay' title='Delay' exp='100' type='1' />
												<command class_type='call' title='Call Component Macro' component='led_5mm_clip7' macro='TurnOff' />
												<command class_type='delay' title='Delay' exp='1' type='2' />
											</flowline>
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='x = x + 1' />
									<exp exp='y = y + 1' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='dcbf571f-a6fa-402d-bdd4-be00cca4070f' vmin='1' vmaj='1' codename='eeprom1' x='72' y='56' z='0.424846' xsz='64' ysz='56' zsz='6.84751' 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='EESize' data='256 byte' />
					<value target='EEbitdepth' data='8 bit' />
					<value target='InitialValues' data='' />
					<value target='InitValsParsed' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='7fdaec78-394e-4ec9-a578-4f1a12a12076' vmin='1' vmaj='1' codename='led_5mm_clip7' x='-8' y='160' z='-3.85' xsz='2.05128' ysz='2.05128' 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='$PORTA.5' />
					<value target='polarity' data='000' />
					<value target='on_color' data='49152' />
					<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='7a287a58-cba5-42ad-b8a5-58694d7f678a' vmin='2' vmaj='1' codename='sw_slide_sub_pcb3' x='104' y='152' z='1.75' xsz='1.72414' ysz='1.85185' 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='$PORTB.5' />
					<value target='polarity' data='001' />
					<value target='debounce' data='10' />
					<value target='operation' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='a31b1f0a-4221-490d-ae25-027868688f0b' vmin='0' vmaj='1' codename='basic_switch1' x='19.2076' y='120' z='3' xsz='3' ysz='2.90323' 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='$PORTD.7' />
					<value target='polarity' data='001' />
					<value target='debounce' data='' />
					<value target='operation' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='7fdaec78-394e-4ec9-a578-4f1a12a12076' vmin='1' vmaj='1' codename='led_5mm_clip5' x='-34.6163' y='160' z='-3.85' xsz='2.05128' ysz='2.05128' 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='$PORTA.4' />
					<value target='polarity' data='000' />
					<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='7a287a58-cba5-42ad-b8a5-58694d7f678a' vmin='2' vmaj='1' codename='sw_slide_sub_pcb1' x='72' y='152' z='1.75' xsz='1.72414' ysz='1.85185' 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='$PORTB.3' />
					<value target='polarity' data='001' />
					<value target='debounce' data='10' />
					<value target='operation' data='000' />
				</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='1' lighting='2' brightness='256' perspective='0' >
		<background rgb='8409120' img='' style='4' />
		<table rgb='13816530' img='' style='0' size='37' />
		<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---------------------wAAAAAUAAAA3wQAAFgDAAA' zoom='75' scrollx='0' scrolly='1893' flags='0' />
	</layout>
</document>
</root>
