<root>
<document schema='101' license='1,Monie Jacobsen,A663VK' 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='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 >
		<watch expr='FLIP' />
		<watch expr='KEY' />
		<watch expr='NUMARRAY' />
		<watch expr='OLDKEY' />
		<watch expr='PTR' />
		<watch expr='StringTest' />
		<watch expr='StrLength' />
		<watch expr='idx' />
		<watch expr='Lat' />
	</debug>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='' 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='PTR' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Lat' type='f32' description='' isconst='0' isinit='1' usrinit='0.0' setinit='0.0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='NUMARRAY' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='KEY' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='LatFloatOutut' type='f32' description='' isconst='0' isinit='1' usrinit='0.0' setinit='0.0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='OLDKEY' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='x_cursor' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='idx' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='StringTest' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FLIP' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='rem' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='StrLength' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Plus' description='' >
						<command class_type='calculation' title='Calculation' >
							<exp exp='FLIP = 0' />
						</command>
						<command class_type='loop' title='Loop' type='1' exp='KEY &lt;&gt; 255' start='0' >
							<flowline >
								<command class_type='label' title='Connection Point' labelid='5' labelname='F' />
								<command class_type='call' title='Læsning tastaturinput' component='keypad0' macro='GetNumber' >
									<return exp='KEY' />
								</command>
								<command class_type='decision' title='Decision' exp='KEY = 10' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' component='lcd_I2C1' macro='Cursor' >
											<argument exp='4' />
											<argument exp='1' />
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='FLIP = NOT FLIP' />
										</command>
										<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='FLIP = 0' swap='1' >
											<flowline >
												<command class_type='call' title='Call Component Macro' component='lcd_I2C1' macro='PrintString' >
													<argument exp='&quot;+&quot;' />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='NUMARRAY[0] = &apos;+&apos;' />
												</command>
											</flowline>
											<flowline >
												<command class_type='call' title='Call Component Macro' component='lcd_I2C1' macro='PrintString' >
													<argument exp='&quot;-&quot;' />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='NUMARRAY[0] = &apos;-&apos;' />
												</command>
											</flowline>
										</command>
										<command class_type='delay' title='Delay' textarea='36,0,511,300' exp='250' type='1' />
										<command class_type='goto' title='Goto Connection Point' labelid='5' labelname='' />
									</flowline>
									<flowline />
								</command>
								<command class_type='comment' title='' comment='STOP' textarea='12,0,12,0' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<command class_type='call' title='boot Display' textarea='36,0,511,300' component='lcd_I2C1' macro='Start' />
						<command class_type='call' title='Call Component Macro' component='lcd_I2C1' macro='Clear' />
						<command class_type='delay' title='Delay' textarea='36,0,511,300' exp='100' type='1' />
						<command class_type='call' title='Flyt markøren til 2. linje' textarea='36,0,511,300' component='lcd_I2C1' macro='Cursor' >
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Display 1. linje' component='lcd_I2C1' macro='PrintString' >
							<argument exp='&quot;Write number&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_I2C1' macro='Cursor' >
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_I2C1' macro='PrintString' >
							<argument exp='&quot;Lat:&quot;' />
						</command>
						<command class_type='calculation' title='Definition af variable og array' >
							<exp exp='x_cursor = 5' />
							<exp exp='rem = 0' />
							<exp exp='PTR = 0' />
							<exp exp='OLDKEY = 42' />
							<exp exp='NUMARRAY[0] = 0' />
						</command>
						<command class_type='call' title='Call Macro' macro='Plus' />
						<command class_type='label' title='Forbindelsespunkt' textarea='36,0,511,300' labelid='0' labelname='A' />
						<command class_type='delay' title='Delay' textarea='36,0,511,300' exp='10' type='1' />
						<command class_type='call' title='Læsning tastaturinput' component='keypad0' macro='GetNumber' >
							<return exp='KEY' />
						</command>
						<command class_type='decision' title='Ingen tastetryk?' textarea='36,0,511,300' exp='KEY = 255' swap='0' >
							<flowline />
							<flowline >
								<command class_type='decision' title='Det er det samme forrige nøgle?' exp='KEY = OLDKEY' swap='0' >
									<flowline >
										<command class_type='goto' title='At linke vil pege' textarea='36,0,511,300' labelid='0' labelname='' />
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='ENTER  &quot; #&quot;' textarea='36,0,511,300' exp='KEY = 11' swap='0' >
									<flowline >
										<command class_type='comment' title='' comment='ENTER Tryk
' textarea='12,0,487,300' />
										<command class_type='calculation' title='Cálculo' >
											<exp exp='NUMARRAY[PTR] = 0' />
										</command>
										<command class_type='call' title='Chamar Macro de Componente' disable='1' component='lcd_I2C1' macro='PrintNumber' >
											<argument exp='KEY' />
										</command>
										<command class_type='goto' title='VaiPara Ponto de ligação ' textarea='36,0,511,300' labelid='1' labelname='' />
										<command class_type='comment' title='' comment='Nummer taget OK

' textarea='12,0,12,104' />
										<command class_type='comment' title='' comment='Gå til slutningen af makro' textarea='12,0,12,0' />
									</flowline>
									<flowline >
										<command class_type='call' title='Læsning tastaturinput' component='keypad0' macro='GetNumber' >
											<return exp='KEY' />
										</command>
										<command class_type='decision' title='Decision' exp='KEY = 10' swap='0' >
											<flowline >
												<command class_type='decision' title='Decision' exp='KEY = 10' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' >
															<exp exp='rem = 1' />
															<exp exp='NUMARRAY[PTR] = &apos;.&apos;' />
														</command>
														<command class_type='call' title='Call Component Macro' component='lcd_I2C1' macro='PrintString' >
															<argument exp='&quot;.&quot;' />
														</command>
													</flowline>
													<flowline >
														<command class_type='calculation' title='Guard knappen i cellen matrix' >
															<exp exp='NUMARRAY[PTR] = KEY' />
														</command>
														<command class_type='calculation' title='Øger celle pointer' >
															<exp exp='PTR = PTR + 1' />
														</command>
														<command class_type='call' title='Viser tæt knap på LCD' component='lcd_I2C1' macro='PrintNumber' >
															<argument exp='KEY' />
														</command>
														<command class_type='delay' title='Delay' textarea='36,0,511,300' exp='250' type='1' />
													</flowline>
												</command>
											</flowline>
											<flowline >
												<command class_type='decision' title='Decision' exp='KEY = 10' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' >
															<exp exp='x_cursor = x_cursor + 1' />
															<exp exp='NUMARRAY[PTR] = NUMARRAY[PTR] + 1' />
														</command>
													</flowline>
													<flowline >
														<command class_type='calculation' title='Guard knappen i cellen matrix' >
															<exp exp='NUMARRAY[PTR] = KEY' />
														</command>
														<command class_type='calculation' title='Øger celle pointer' >
															<exp exp='PTR = PTR + 1' />
														</command>
														<command class_type='call' title='Viser tæt knap på LCD' component='lcd_I2C1' macro='PrintNumber' >
															<argument exp='KEY' />
														</command>
													</flowline>
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='delay' title='Delay' textarea='36,0,511,300' exp='250' type='1' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='x_cursor = x_cursor + 1' />
							<exp exp='NUMARRAY[PTR] = NUMARRAY[PTR] + 1' />
						</command>
						<command class_type='calculation' title='Set old key up' textarea='36,0,511,300' >
							<exp exp='OLDKEY = KEY' />
						</command>
						<command class_type='delay' title='forsinkelse' textarea='36,0,511,300' exp='10' type='1' />
						<command class_type='goto' title='At linke vil pege' textarea='36,0,511,300' labelid='0' labelname='' />
						<command class_type='label' title='Forbindelsespunkt' textarea='36,0,511,300' labelid='1' labelname='B' />
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='lcd_I2C1' macro='Clear' />
						<command class_type='call' title='Call Component Macro' component='lcd_I2C1' macro='PrintString' >
							<argument exp='&quot;SLUT&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_I2C1' macro='Cursor' >
							<argument exp='0' />
							<argument exp='2' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_I2C1' macro='PrintString' >
							<argument exp='&quot;Lat:&quot;' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='idx = 0' />
							<exp exp='StrLength = Length$ (NUMARRAY)' />
						</command>
						<command class_type='loop' title='Loop' type='0' exp='idx &lt; StrLength' >
							<flowline >
								<command class_type='comment' title='' comment='How converters String [idx] to a float variable?
Or do you have a better solution?
Results should be a Float variable = 10.551286' textarea='12,0,12,0' />
								<command class_type='calculation' title='Calculation' >
									<exp exp='StringTest[idx] = NUMARRAY[idx]' />
									<exp exp='idx = idx + 1' />
									<exp exp='Lat = StringToFloat$ (StringTest)' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_I2C1' macro='PrintNumber' >
									<argument exp='idx' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_I2C1' macro='PrintNumber' >
									<argument exp='NUMARRAY[idx]' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='StringTest[idx] = 0' />
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='b07090da-50a4-41ed-97d8-99016c092a14' vmin='0' vmaj='1' codename='keypad0' x='-39.8037' y='-39.1403' z='0' xsz='1.62005' ysz='1.45665' 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='port' data='005' />
					<value target='pin_col1' data='$PORTK.0' />
					<value target='pin_col2' data='$PORTK.1' />
					<value target='pin_col3' data='$PORTK.2' />
					<value target='pin_row1' data='$PORTK.4' />
					<value target='pin_row2' data='$PORTK.5' />
					<value target='pin_row3' data='$PORTK.6' />
					<value target='pin_row4' data='$PORTK.7' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='bcd6a955-12c6-4ed4-a22f-f16eb62e0762' vmin='1' vmaj='1' codename='lcd_I2C1' x='2.10108' y='55.9256' z='0' xsz='2.62011' ysz='2.15335' 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='Channel' data='000' />
					<value target='SDA' data='$PORTD.1' />
					<value target='SCL' data='$PORTD.0' />
					<value target='Address' data='32' />
					<value target='Rows' data='004' />
					<value target='Columns' data='020' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<keymap />
	<panel2d shadows='1' lighting='2' brightness='51' 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='0' brightness='51' perspective='0' >
		<background rgb='13816530' img='' style='0' />
		<table rgb='13816530' img='' style='0' size='39' />
		<camera xe='0' ye='0' ze='264.908' 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---------------------wAAAAAUAAAAPgcAAJsDAAA' zoom='75' scrollx='0' scrolly='2303' flags='0' />
		<view type='0' name='Plus' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAPgcAAJsDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
