<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='CountLat' />
		<watch expr='CountLong' />
		<watch expr='FCV_F0' />
		<watch expr='FCV_F1' />
		<watch expr='FCV_F2' />
		<watch expr='FCV_F3' />
		<watch expr='FCV_F4' />
		<watch expr='i' />
		<watch expr='Lat' />
	</debug>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='52961915-f825-4a49-a37c-0a7b33b0787d' 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='Lat' type='f32' description='' isconst='0' isinit='1' usrinit='0.0' setinit='0.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='CountLat' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='OutputDisplay4' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='OutputDisplay3' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='OutputDisplay2' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='OutputDisplay1' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='OutputDisplay0' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CountLong' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Multipliceret' type='s32' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FCV_F4' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FCV_F3' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FCV_F2' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FCV_F1' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FCV_F0' 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='Long' type='f32' description='' isconst='0' isinit='1' usrinit='0.0' setinit='0.0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='i' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='EEPROM_READ' description='Read Float Value' >
						<command class_type='native' title='Read' ccode='    FloatUnion.AsByte[0] = FCV_F0;
    FloatUnion.AsByte[1] = FCV_F1;
    FloatUnion.AsByte[2] = FCV_F2;
    FloatUnion.AsByte[3] = FCV_F3;
    FloatUnion.AsByte[4] = FCV_F4;
    FCV_FLOATVAR = FloatUnion.AsFloat;' language='C' />
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Read' >
							<return exp='FCV_F0' />
							<argument exp='0' />
						</command>
						<command class_type='comment' title='' comment='How to read an array of EEPROM' textarea='12,0,12,0' />
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Read' >
							<return exp='FCV_F1' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Read' >
							<return exp='FCV_F2' />
							<argument exp='2' />
						</command>
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Read' >
							<return exp='FCV_F3' />
							<argument exp='3' />
						</command>
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Read' >
							<return exp='FCV_F4' />
							<argument exp='4' />
						</command>
						<command class_type='comment' title='' comment='How to write value to variable = Lat' textarea='12,0,12,0' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='Lat = FCV_F0 + FCV_F1 + FCV_F2 + FCV_F3 + FCV_F4' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='EEPROM_WRITE' description='Read bytes Value' >
						<command class_type='calculation' title='My Coordinats' >
							<exp exp='//Lat = 55.121522' />
							<exp exp='' />
							<exp exp='FCV_F0 = 55' />
							<exp exp='FCV_F1 = 46 // &quot;.&quot; ????' />
							<exp exp='FCV_F2 = 12' />
							<exp exp='FCV_F3 = 15' />
							<exp exp='FCV_F4 = 22' />
							<exp exp='' />
						</command>
						<command class_type='native' title='Write' ccode='    FloatUnion.AsFloat = FCV_FLOATVAR;
    FCV_F0 = FloatUnion.AsByte[0];
    FCV_F1 = FloatUnion.AsByte[1];
    FCV_F2 = FloatUnion.AsByte[2];
    FCV_F3 = FloatUnion.AsByte[3];
    FCV_F4 = FloatUnion.AsByte[4];' language='C' />
						<command class_type='comment' title='' comment='How to Write an array of EEPROM' textarea='12,0,12,0' />
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Write' >
							<argument exp='0' />
							<argument exp='FCV_F0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Write' >
							<argument exp='1' />
							<argument exp='FCV_F1' />
						</command>
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Write' >
							<argument exp='2' />
							<argument exp='FCV_F2' />
						</command>
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Write' >
							<argument exp='3' />
							<argument exp='FCV_F3' />
						</command>
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Write' >
							<argument exp='4' />
							<argument exp='FCV_F4' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<command class_type='calculation' title='My Coordinats' >
							<exp exp='//Lat = 55.121522' />
							<exp exp='' />
							<exp exp='//FCV_F0 = 55' />
							<exp exp='//FCV_F1 = 46 // &quot;.&quot; ????' />
							<exp exp='//FCV_F2 = 12' />
							<exp exp='//FCV_F3 = 15' />
							<exp exp='//FCV_F4 = 22' />
							<exp exp='' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_I2C1' macro='Start' />
						<command class_type='native' title='C Code' ccode='    typedef union
    {
      MX_FLOAT AsFloat;
      MX_UINT8  AsByte[4];
    } MX_FloatUnion;

    MX_FloatUnion FloatUnion;
' language='C' />
						<command class_type='call' title='Call Macro' macro='EEPROM_WRITE' />
						<command class_type='loop' title='Loop' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='Call Macro' macro='EEPROM_READ' />
								<command class_type='calculation' title='Calculation' >
									<exp exp='OutputDisplay0 = float2int (FCV_F0)' />
									<exp exp='OutputDisplay1 = float2int (FCV_F1)' />
									<exp exp='OutputDisplay2 = float2int (FCV_F2)' />
									<exp exp='OutputDisplay3 = float2int (FCV_F3)' />
									<exp exp='OutputDisplay4 = float2int (FCV_F4)' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_I2C1' macro='Cursor' >
									<argument exp='0' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_I2C1' macro='PrintNumber' >
									<argument exp='OutputDisplay0' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_I2C1' macro='Cursor' >
									<argument exp='2' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_I2C1' macro='PrintNumber' >
									<argument exp='OutputDisplay1' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_I2C1' macro='Cursor' >
									<argument exp='4' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_I2C1' macro='PrintNumber' >
									<argument exp='OutputDisplay2' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_I2C1' macro='Cursor' >
									<argument exp='6' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_I2C1' macro='PrintNumber' >
									<argument exp='OutputDisplay3' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_I2C1' macro='Cursor' >
									<argument exp='8' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_I2C1' macro='PrintNumber' >
									<argument exp='OutputDisplay4' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='bcd6a955-12c6-4ed4-a22f-f16eb62e0762' vmin='1' vmaj='1' codename='lcd_I2C1' x='-16' y='14.15' z='0' xsz='2' 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='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 class_type='ref' guid='dcbf571f-a6fa-402d-bdd4-be00cca4070f' vmin='1' vmaj='1' codename='eeprom1' x='-32' y='-32' z='0' xsz='20' ysz='20' zsz='20' 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='4096 byte' />
					<value target='EEbitdepth' data='8 bit' />
					<value target='InitialValues' data='0,1,0x2,0x03,&apos;A&apos;,&apos;b&apos;,&quot;Hello&quot;' />
					<value target='InitValsParsed' data='0,1,0x2,0x03,&apos;A&apos;,&apos;b&apos;,&apos;H&apos;,&apos;e&apos;,&apos;l&apos;,&apos;l&apos;,&apos;o&apos;' />
				</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='45' />
		<camera xe='0' ye='0' ze='250.156' 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---------------------wAAAAAUAAAApwMAAJsDAAA' zoom='75' scrollx='0' scrolly='461' flags='0' />
		<view type='0' name='EEPROM_READ' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAApwMAAJsDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='EEPROM_WRITE' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAApwMAAJsDAAA' zoom='75' scrollx='0' scrolly='30' flags='0' />
	</layout>
</document>
</root>
