<root>
<document schema='101' license='-1,88263627,K38DMR' title='' description='' target='AVR.ATMEGA.Arduino Mega 2560 R3' >
	<config data='' clkspd='16000000' simspd='4' 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='19f2403c-3860-4bf6-a6e7-2238f0a35f38' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='Misc' 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='etatViolet' type='b1' description='1 interrupteur si bouton violet enclenché' 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='ShapeBleu' type='u8' description='Valeur Bleu de scotch' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ShapeVert' type='u8' description='Valeur Vert du scotch' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='etatJaune' type='b1' description='1 interrupteur si bouton jaune enclenché' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Blanc' type='u16' description='Lumière blanche' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ValeurRouge' type='u16' description='Frequence Rouge' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ValeurBleu' type='u16' description='Frequence Bleu' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ShapeRouge' type='u8' description='Valeur Rouge du scotch' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ValeurVert' type='u16' description='Frequence vert' 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='Moteurs' type='b1' description='1 si moteur en fonctionnement' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='TestJaune' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Entrees' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='input' title='Interrupteur jaune' mode='1' port='1048576' mask='2' exp='etatJaune' />
						<command class_type='input' title='interrupteur violet' mode='1' port='1048576' mask='1' exp='etatViolet' />
					</flowline>
				</macro>
				<macro >
					<flowline name='TestViolet' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Appel de la Routine Composant' component='EBM018_ColourSensor1' macro='Initialise' />
						<command class_type='calculation' title='Calcul' >
							<exp exp='ShapeBleu = 125' />
							<exp exp='ShapeRouge = 125' />
							<exp exp='ShapeVert = 0' />
						</command>
						<command class_type='sim' title='Appel de la Routine Composant' macro='Component.Property.SetColor' >
							<argument exp='shape1' />
							<argument exp='ShapeRouge' />
							<argument exp='ShapeVert' />
							<argument exp='ShapeBleu' />
						</command>
						<command class_type='call' title='Appel de la Routine Composant' component='lcd_eb005' macro='Start' />
						<command class_type='call' title='Appel de la Routine Composant' component='EBM018_ColourSensor1' macro='SetFrequencyRange' >
							<argument exp='2' />
						</command>
						<command class_type='call' title='Appel de la Routine Composant' component='EBM018_ColourSensor1' macro='SetLEDOn' />
						<command class_type='call' title='Appel de la Routine Composant' component='EBM018_ColourSensor1' macro='SetFilter' >
							<argument exp='1' />
						</command>
						<command class_type='call' title='Appel de la Routine Composant' textarea='36,4,36,4' component='EBM018_ColourSensor1' macro='GetFrequency' >
							<return exp='ValeurVert' />
						</command>
						<command class_type='call' title='Appel de la Routine Composant' component='EBM018_ColourSensor1' macro='SetFilter' >
							<argument exp='0' />
						</command>
						<command class_type='call' title='Appel de la Routine Composant' component='EBM018_ColourSensor1' macro='GetFrequency' >
							<return exp='ValeurRouge' />
						</command>
						<command class_type='call' title='Appel de la Routine Composant' component='EBM018_ColourSensor1' macro='SetFilter' >
							<argument exp='2' />
						</command>
						<command class_type='call' title='Appel de la Routine Composant' component='EBM018_ColourSensor1' macro='GetFrequency' >
							<return exp='ValeurBleu' />
						</command>
						<command class_type='call' title='Appel de la Routine Composant' component='EBM018_ColourSensor1' macro='SetLEDOff' />
						<command class_type='call' title='Appel d&apos;une Macro' macro='LCD' />
						<command class_type='decision' title='Décision' exp='0 &lt; ValeurVert &lt; 30' swap='0' >
							<flowline >
								<command class_type='decision' title='Décision' exp='120 &lt; ValeurRouge &lt; 150' swap='0' >
									<flowline >
										<command class_type='decision' title='Décision' exp='120 &lt; ValeurBleu &lt; 150' swap='0' >
											<flowline />
											<flowline />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Violet' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
					</flowline>
				</macro>
				<macro >
					<flowline name='LCD' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Appel de la Routine Composant' component='lcd_eb005' macro='Clear' />
						<command class_type='call' title='Appel de la Routine Composant' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot;W: &quot;' />
						</command>
						<command class_type='call' title='Appel de la Routine Composant' component='lcd_eb005' macro='PrintNumber' >
							<argument exp='Blanc' />
						</command>
						<command class_type='call' title='Appel de la Routine Composant' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot;  R: &quot;' />
						</command>
						<command class_type='call' title='Appel de la Routine Composant' component='lcd_eb005' macro='PrintNumber' >
							<argument exp='ValeurRouge' />
						</command>
						<command class_type='call' title='Appel de la Routine Composant' component='lcd_eb005' macro='Cursor' >
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Appel de la Routine Composant' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot;V: &quot;' />
						</command>
						<command class_type='call' title='Appel de la Routine Composant' component='lcd_eb005' macro='PrintNumber' >
							<argument exp='ValeurVert' />
						</command>
						<command class_type='call' title='Appel de la Routine Composant' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot;   B: &quot;' />
						</command>
						<command class_type='call' title='Appel de la Routine Composant' component='lcd_eb005' macro='PrintNumber' >
							<argument exp='ValeurBleu' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Jaune' 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='loop' title='Boucle' type='0' exp='1' >
							<flowline >
								<command class_type='output' title='Sortie' mode='1' port='1048579' mask='1' exp='1' />
								<command class_type='call' title='Définir entrées' macro='Entrees' />
								<command class_type='decision' title='Décision' exp='etatViolet = 1' swap='0' >
									<flowline >
										<command class_type='output' title='Sortie' mode='1' port='1048579' mask='2' exp='1' />
										<command class_type='output' title='Sortie' mode='1' port='1048579' mask='4' exp='0' />
										<command class_type='call' title='Appel d&apos;une Macro' macro='TestViolet' />
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Décision' exp='etatJaune = 1' swap='0' >
									<flowline >
										<command class_type='output' title='Sortie' mode='1' port='1048579' mask='4' exp='1' />
										<command class_type='output' title='Sortie' mode='1' port='1048579' mask='2' exp='0' />
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='e8f04af0-03d9-4b1c-83d3-9d0b1dc0f80a' vmin='1' vmaj='1' codename='sw_toggle_mtl_pnl1' x='0' y='16' z='15.0785' xsz='1.35593' ysz='1.25984' 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='000' />
					<value target='debounce' data='10' />
					<value target='operation' data='001' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='e8f04af0-03d9-4b1c-83d3-9d0b1dc0f80a' vmin='1' vmaj='1' codename='sw_toggle_mtl_pnl2' x='24' y='16' z='15.5497' xsz='1.35593' ysz='1.25984' 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.1' />
					<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='7fdaec78-394e-4ec9-a578-4f1a12a12076' vmin='1' vmaj='1' codename='led_5mm_clip2' x='0' y='40' z='9.42407' 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='$PORTD.1' />
					<value target='polarity' data='001' />
					<value target='on_color' data='12583075' />
					<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='7fdaec78-394e-4ec9-a578-4f1a12a12076' vmin='1' vmaj='1' codename='led_5mm_clip3' x='24' y='40' z='8.95287' 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='$PORTD.2' />
					<value target='polarity' data='001' />
					<value target='on_color' data='65535' />
					<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='4edcb163-5216-44c4-99d9-d6b24869f341' vmin='1' vmaj='1' codename='motor_simple1' x='-40' y='40' z='21.6754' 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='1' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTD.0' />
					<value target='speed' data='250.000000' />
					<value target='acceleration' data='0.000000' />
					<value target='deceleration' data='0.000000' />
					<value target='show_actuator' data='1' />
					<value target='target_object' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='749afd05-ce22-42cb-b17e-3f424cbca6b0' vmin='0' vmaj='1' codename='EBM018_ColourSensor1' x='-8' y='-32' z='11.5041' 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='1' >
				<resources />
				<properties />
				<values >
					<value target='SDA' data='$PORTG.0' />
					<value target='SCL' data='$PORTG.1' />
					<value target='OP' data='$PORTC.0' />
					<value target='FRQ' data='004' />
					<value target='FILTER' data='008' />
					<value target='LED' data='032' />
					<value target='SAMPLE' data='002' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='shape' codename='shape1' x='-8' y='-16' z='29.5558' xsz='32' ysz='40' zsz='28.6472' 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='  0' />
					<value target='Color' data='8192125' />
					<value target='Outline' data='0' />
					<value target='Thickness' data='0' />
					<value target='Image' data='' />
					<value target='Model' data='' />
					<value target='Unit' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='d29dda88-17de-4008-991a-c881890d4c57' vmin='1' vmaj='1' codename='lcd_eb005' x='-16' y='-88' z='7.0435' 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_0' data='$PORTF.3' />
					<value target='Pin_Data_1' data='$PORTF.4' />
					<value target='Pin_Data_2' data='$PORTF.5' />
					<value target='Pin_Data_3' data='$PORTF.6' />
					<value target='Pin_RS' data='$PORTF.7' />
					<value target='Pin_E' data='$PORTF.0' />
				</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='20' ye='31' ze='325.985' xt='20' yt='31' 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='137.642' ye='-230.118' ze='106.358' xt='-8.92448' yt='-26.8936' zt='2.41033' xquat='-0.528461' yquat='-0.170685' zquat='-0.2556' wquat='0.791369' />
	</panel3d>
	<layout >
		<view type='0' name='TestViolet' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAVgMAALcBAAA' zoom='60' scrollx='0' scrolly='446' flags='0' />
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAVgMAALcBAAA' zoom='45' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Entrees' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAVgMAALcBAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='LCD' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAVgMAALcBAAA' zoom='75' scrollx='0' scrolly='378' flags='0' />
		<view type='0' name='Jaune' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAVgMAALcBAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='TestJaune' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAVgMAALcBAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Violet' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAVgMAALcBAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
