<root>
<document schema='101' license='1,Boterman,W8VHHU' title='' description='' target='AVR.ATMEGA.Arduino Mega 2560 R3' >
	<config data='' clkspd='16000000' 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='19' />
			<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='5c4660da-36b1-43fb-8d8d-4c5b387af033' 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='Motor_sluiten' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</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='Preval' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' >
						<array size='10' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='A8' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Motor_open' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='A7' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='A6' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='A5' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Val' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' >
						<array size='10' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='A4' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='A3' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='A2' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='A1' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Verandering' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' >
						<array size='10' />
					</def>
				</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='Alles_op_nul' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='output' title='Output' cmdcolor='6320581' cmdcolor_sec='6320581' mode='1' port='1048580' mask='8' exp='0' />
						<command class_type='output' title='Output' cmdcolor='6320581' cmdcolor_sec='6320581' mode='1' port='1048582' mask='32' exp='0' />
						<command class_type='output' title='Output' cmdcolor='6320581' cmdcolor_sec='6320581' mode='1' port='1048583' mask='8' exp='0' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Error' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='12474781' cmdcolor_sec='12474781' >
							<exp exp='Val[0] = 0' />
							<exp exp='Val[1] = 0' />
							<exp exp='Val[2] = 0' />
							<exp exp='Val[3] = 0' />
							<exp exp='Val[4] = 0' />
							<exp exp='Val[5] = 0' />
							<exp exp='Val[6] = 0' />
							<exp exp='Val[7] = 0' />
							<exp exp='Val[8] = 0' />
							<exp exp='Val[9] = 0' />
							<exp exp='Preval[0] = 0' />
							<exp exp='Preval[1] = 0' />
							<exp exp='Preval[2] = 0' />
							<exp exp='Preval[3] = 0' />
							<exp exp='Preval[4] = 0' />
							<exp exp='Preval[5] = 0' />
							<exp exp='Preval[6] = 0' />
							<exp exp='Preval[7] = 0' />
							<exp exp='Preval[8] = 0' />
							<exp exp='Preval[9] = 0' />
						</command>
						<command class_type='call' title='Startup LCD' cmdcolor='7787475' cmdcolor_sec='7787475' component='gLCD_EBM001' macro='Initialise' />
						<command class_type='call' title='Set foreground to Black' cmdcolor='7787475' cmdcolor_sec='7787475' component='gLCD_EBM001' macro='SetForegroundColour' >
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='13680750' cmdcolor_sec='13680750' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='Call Macro' cmdcolor='7787475' cmdcolor_sec='7787475' macro='Alles_op_nul' />
								<command class_type='delay' title='Delay' cmdcolor='12474781' cmdcolor_sec='12474781' exp='2' type='1' />
								<command class_type='output' title='Output' cmdcolor='6320581' cmdcolor_sec='6320581' mode='1' port='1048580' mask='8' exp='1' />
								<command class_type='output' title='Output' cmdcolor='6320581' cmdcolor_sec='6320581' mode='1' port='1048582' mask='32' exp='1' />
								<command class_type='delay' title='Delay' cmdcolor='12474781' cmdcolor_sec='12474781' exp='2' type='2' />
								<command class_type='output' title='Output' cmdcolor='6320581' cmdcolor_sec='6320581' mode='1' port='1048583' mask='8' exp='1' />
								<command class_type='delay' title='Delay' cmdcolor='12474781' cmdcolor_sec='12474781' exp='20' type='1' />
								<command class_type='call' title='Call Macro' cmdcolor='7787475' cmdcolor_sec='7787475' macro='CHECK' />
								<command class_type='delay' title='Delay' cmdcolor='12474781' cmdcolor_sec='12474781' exp='2' type='1' />
								<command class_type='decision' title='Decision' cmdcolor='13680750' cmdcolor_sec='13680750' exp='Verandering[9] = 1' swap='0' >
									<flowline >
										<command class_type='call' title='Print Menu1' cmdcolor='7787475' cmdcolor_sec='7787475' component='gLCD_EBM001' macro='Print' >
											<argument exp='&quot;Optie 0&quot;' />
											<argument exp='15' />
											<argument exp='3' />
											<argument exp='3' />
											<argument exp='1' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='CHECK' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='12474781' cmdcolor_sec='12474781' >
							<exp exp='Preval[0] = val[0]' />
							<exp exp='Preval[1] = val[1]' />
							<exp exp='Preval[2] = val[2]' />
							<exp exp='Preval[3] = val[3]' />
							<exp exp='Preval[4] = val[4]' />
							<exp exp='Preval[5] = val[5]' />
							<exp exp='Preval[6] = val[6]' />
							<exp exp='Preval[7] = val[7]' />
							<exp exp='Preval[8] = val[8]' />
							<exp exp='Preval[9] = val[9]' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='12474781' cmdcolor_sec='12474781' exp='2' type='1' />
						<command class_type='input' title='Input' cmdcolor='6802312' cmdcolor_sec='6802312' mode='1' port='1048578' mask='4' exp='Val[0]' />
						<command class_type='input' title='Input' cmdcolor='6802312' cmdcolor_sec='6802312' mode='1' port='1048577' mask='4' exp='Val[1]' />
						<command class_type='input' title='Input' cmdcolor='6802312' cmdcolor_sec='6802312' mode='1' port='1048587' mask='1' exp='Val[2]' />
						<command class_type='input' title='Input' cmdcolor='6802312' cmdcolor_sec='6802312' mode='1' port='1048587' mask='4' exp='Val[3]' />
						<command class_type='input' title='Input' cmdcolor='6802312' cmdcolor_sec='6802312' mode='1' port='1048587' mask='16' exp='Val[4]' />
						<command class_type='input' title='Input' cmdcolor='6802312' cmdcolor_sec='6802312' mode='1' port='1048587' mask='64' exp='Val[5]' />
						<command class_type='input' title='Input' cmdcolor='6802312' cmdcolor_sec='6802312' mode='1' port='1048582' mask='1' exp='Val[6]' />
						<command class_type='input' title='Input' cmdcolor='6802312' cmdcolor_sec='6802312' mode='1' port='1048582' mask='4' exp='Val[7]' />
						<command class_type='input' title='Input' cmdcolor='6802312' cmdcolor_sec='6802312' mode='1' port='1048578' mask='1' exp='Val[8]' />
						<command class_type='input' title='Input' cmdcolor='6802312' cmdcolor_sec='6802312' mode='1' port='1048577' mask='1' exp='Val[9]' />
						<command class_type='delay' title='Delay' cmdcolor='12474781' cmdcolor_sec='12474781' exp='2' type='1' />
						<command class_type='calculation' title='Calculation' cmdcolor='12474781' cmdcolor_sec='12474781' >
							<exp exp='Verandering[0] = Val[0] XOR Preval[0]' />
							<exp exp='Verandering[1] = Val[1] XOR Preval[1]' />
							<exp exp='Verandering[2] = Val[2] XOR Preval[2]' />
							<exp exp='Verandering[3] = Val[3] XOR Preval[3]' />
							<exp exp='Verandering[4] = Val[4] XOR Preval[4]' />
							<exp exp='Verandering[5] = Val[5] XOR Preval[5]' />
							<exp exp='Verandering[6] = Val[6] XOR Preval[6]' />
							<exp exp='Verandering[7] = Val[7] XOR Preval[7]' />
							<exp exp='Verandering[8] = Val[8] XOR Preval[8]' />
							<exp exp='Verandering[9] = Val[9] XOR Preval[9]' />
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='5a6d2f2e-da92-49b4-ad5c-71f51e8fe24b' vmin='6' vmaj='1' codename='gLCD_EBM001' x='-19.2674' y='57.58' z='0' xsz='1.12208' ysz='1.07428' 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='pixel_height' data='160' />
					<value target='pixel_width' data='128' />
					<value target='monochrome' data='0' />
					<value target='foreground_colour' data='0' />
					<value target='background_colour' data='16777215' />
					<value target='colour_bit_depth' data='16' />
					<value target='red_bit_depth' data='5' />
					<value target='green_bit_depth' data='6' />
					<value target='blue_bit_depth' data='5' />
					<value target='FGCOL' data='0' />
					<value target='BGCOL' data='65535' />
					<value target='data_pin' data='$PORTG.1' />
					<value target='clock_pin' data='$PORTD.7' />
					<value target='chip_sel_pin' data='$PORTC.1' />
					<value target='a0_pin' data='$PORTC.3' />
					<value target='reset_pin' data='$PORTC.5' />
					<value target='led_pin' data='$PORTC.7' />
					<value target='DisplayMethod' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='e8f04af0-03d9-4b1c-83d3-9d0b1dc0f80a' vmin='1' vmaj='1' codename='sw_toggle_mtl_pnl1' x='-20' y='10' 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 >
					<value target='pin' data='$PORTB.0' />
					<value target='polarity' data='000' />
					<value target='debounce' data='10' />
					<value target='operation' data='001' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='d92e8259-f3a8-4176-a8c4-fe7ca42b2c3f' vmin='1' vmaj='1' codename='led_5mm1' x='-30' y='10' 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 >
					<value target='pin' data='$PORTA.0' />
					<value target='polarity' data='001' />
					<value target='on_color' data='10551200' />
					<value target='length' data='4.000000' />
					<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>
	</components>
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='2105930' 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='-20.2093' ye='46.8287' ze='64.7195' xt='-20.2093' yt='46.8287' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey0 xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey1 xe='-3.67394e-14' ye='0' ze='-300' xt='0' yt='0' zt='0' xquat='0' yquat='1' zquat='0' wquat='6.12323e-17' />
		<camerakey2 xe='0' ye='-300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.707107' yquat='0' zquat='0' wquat='0.707107' />
		<camerakey3 xe='-3.67394e-14' ye='300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-4.32978e-17' yquat='0.707107' zquat='0.707107' wquat='4.32978e-17' />
		<camerakey4 xe='-300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='0.5' zquat='0.5' wquat='0.5' />
		<camerakey5 xe='300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='-0.5' zquat='-0.5' wquat='0.5' />
		<camerakey6 xe='-173.205' ye='-173.205' ze='173.205' xt='0' yt='0' zt='0' xquat='-0.424708' yquat='0.17592' zquat='0.339851' wquat='0.820473' />
	</panel3d>
	<layout >
		<view type='0' name='CHECK' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAuwMAAPsCAAA' zoom='70' scrollx='0' scrolly='567' flags='0' />
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAuwMAAPsCAAA' zoom='75' scrollx='0' scrolly='887' flags='0' />
		<view type='0' name='Alles_op_nul' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAuwMAAPsCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Error' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAuwMAAPsCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
