<root>
<document scada='0' schema='102' license='1,79829088,X1MNCF' title='' description='' fcversion='590336' target='ARD.ATMEGA.Arduino Uno R3 PDIP' >
	<config data='' clkspd='16000000' simspd='0' usewdt='0' constif='0' Use3V3='0' />
	<plugins >
		<dll_models enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug >
		<watch expr='Split.found' />
		<watch expr='Split.i' />
		<watch expr='Split.line' />
		<watch expr='Split.start' />
		<watch expr='Split.x' />
		<watch expr='display' />
	</debug>
	<traces />
	<ghost >
		<FK2 >
			<data name='FK2D0' port='4294967295' pin='4294967295' />
			<data name='FK2D1' port='4294967295' pin='4294967295' />
			<data name='FK2D2' port='4294967295' pin='4294967295' />
			<data name='FK2D3' port='4294967295' pin='4294967295' />
			<data name='FK2D4' port='4294967295' pin='4294967295' />
			<data name='FK2D5' port='4294967295' pin='4294967295' />
			<data name='FK2D6' port='4294967295' pin='4294967295' />
			<data name='FK2D7' port='4294967295' pin='4294967295' />
			<data name='FK2D8' port='4294967295' pin='4294967295' />
			<data name='FK2D9' port='4294967295' pin='4294967295' />
			<data name='FK2D10' port='4294967295' pin='4294967295' />
			<data name='FK2D11' port='4294967295' pin='4294967295' />
			<data name='FK2D12' port='4294967295' pin='4294967295' />
			<data name='FK2D13' port='4294967295' pin='4294967295' />
			<data name='FK2D14' port='4294967295' pin='4294967295' />
			<data name='FK2D15' port='4294967295' pin='4294967295' />
			<data name='FK2A0' port='4294967295' pin='4294967295' />
			<data name='FK2A1' port='4294967295' pin='4294967295' />
			<data name='FK2A2' port='4294967295' pin='4294967295' />
			<data name='FK2A3' port='4294967295' pin='4294967295' />
			<data name='FK2A4' port='4294967295' pin='4294967295' />
			<data name='FK2A5' port='4294967295' pin='4294967295' />
		</FK2>
		<ICD >
			<data name='AnalogPrescaleValue' value='19' />
			<data name='DigitalSampleRate' value='100000' />
			<data name='BreakpointCount' value='8' />
			<data name='CallStackDepthCount' value='8' />
			<data name='ClockPort' value='3' />
			<data name='ClockPin' value='1' />
			<data name='DataPort' value='3' />
			<data name='DataPin' value='0' />
			<data name='UseDefaultPins' value='1' />
			<data name='WrapEnabled' value='1' />
			<data name='CommsDelayOverridden' value='0' />
			<data name='CommsDelay' value='11' />
			<data name='CalculatedCommsDelay' value='11' />
			<data name='AnalogEB2PrescaleValue' value='2' />
			<data name='DigitalEB2SampleRate' value='100000' />
		</ICD>
		<pins >
			<digital A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
			<analog A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
		</pins>
	</ghost>
	<components >
		<settings autoimg='0' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='7605c8d2-eaf9-4f71-91a7-429115ec3853' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' category2='' category3='' bIs2dOnly='0' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='1' scadaCompatible='0' embeddedCompatible='1' iconpath='' />
		<gdiopts FullContainer='1' FullTransparency='1' ShowGdi='1' ShowOpengl='1' />
		<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' scadavisible='1' interactive='1' solid='1' layer='0' poslock='0' comp2dType='0' >
			<resources />
			<properties />
			<values />
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='false' type='b1' description='' isconst='1' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='display' type='T8' description='Display data for output' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='4' />
						<array size='21' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='true' type='b1' description='' isconst='1' isHidden='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Split' description='Splits a string into 4 x 20 lines respecting word boundaries. Return index of last character' statediag='0' >
						<return name='Return' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='str' type='T8*' description='Input string to be split over 4 x 20 lines of display' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='80' />
						</param>
						<local name='line' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='x' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='found' type='b1' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='start' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='i' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='First &apos;break point&apos; in string' cmdcolor='4198239' cmdcolor_sec='10777539' cmdcolor_txt='16777215' cmdgradient='2' cmdopacity='1' >
							<exp exp='.x = 0' />
							<exp exp='.start = 0' />
						</command>
						<command class_type='loop' title='For 4 lines' cmdcolor='1336547' cmdcolor_sec='7915775' cmdcolor_txt='16777215' cmdgradient='2' cmdopacity='1' type='2' forvar='.line' exp='4' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4198239' cmdcolor_sec='10777539' cmdcolor_txt='16777215' cmdgradient='2' cmdopacity='1' >
									<exp exp='.found = false' />
									<exp exp='.x = .start + 20' />
								</command>
								<command class_type='loop' title='Find start of &apos;current&apos; word' cmdcolor='1336547' cmdcolor_sec='7915775' cmdcolor_txt='16777215' cmdgradient='2' cmdopacity='1' type='1' exp='.found OR .x = .start' start='0' >
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='1336547' cmdcolor_sec='7915775' cmdcolor_txt='16777215' cmdgradient='2' cmdopacity='1' exp='.str[.x] = &apos; &apos;' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='4198239' cmdcolor_sec='10777539' cmdcolor_txt='16777215' cmdgradient='2' cmdopacity='1' >
													<exp exp='.found = true' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='4198239' cmdcolor_sec='10777539' cmdcolor_txt='16777215' cmdgradient='2' cmdopacity='1' >
													<exp exp='.x = .x - 1' />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
								<command class_type='loop' title='Copy to display line' cmdcolor='1336547' cmdcolor_sec='7915775' cmdcolor_txt='16777215' cmdgradient='2' cmdopacity='1' type='2' forvar='.i' exp='.x - .start' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='4198239' cmdcolor_sec='10777539' cmdcolor_txt='16777215' cmdgradient='2' cmdopacity='1' >
											<exp exp='display[.line][.i] = .str[.start + .i]' />
										</command>
									</flowline>
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='4198239' cmdcolor_sec='10777539' cmdcolor_txt='16777215' cmdgradient='2' cmdopacity='1' >
									<exp exp='display[.line][.x - .start] = 0' />
									<exp exp='.start = .x + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='4198239' cmdcolor_sec='10777539' cmdcolor_txt='16777215' cmdgradient='2' cmdopacity='1' >
							<exp exp='.Return = .X' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='i' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Component Macro' cmdcolor='1967002' cmdcolor_sec='8546302' cmdcolor_txt='16777215' cmdgradient='2' cmdopacity='1' component='LCDAdafruitOLED4x20' macro='Start' />
						<command class_type='call' title='User Macro' cmdcolor='1967002' cmdcolor_sec='8546302' cmdcolor_txt='16777215' cmdgradient='2' cmdopacity='1' macro='Split' >
							<argument exp='&quot;1222234 2345 3456 7890 8901 9010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024&quot;' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='1336547' cmdcolor_sec='7915775' cmdcolor_txt='16777215' cmdgradient='2' cmdopacity='1' type='2' forvar='.i' exp='4' >
							<flowline >
								<command class_type='call' title='Component Macro' cmdcolor='1967002' cmdcolor_sec='8546302' cmdcolor_txt='16777215' cmdgradient='2' cmdopacity='1' component='LCDAdafruitOLED4x20' macro='Cursor' >
									<argument exp='0' />
									<argument exp='.i' />
								</command>
								<command class_type='call' title='Component Macro' cmdcolor='1967002' cmdcolor_sec='8546302' cmdcolor_txt='16777215' cmdgradient='2' cmdopacity='1' component='LCDAdafruitOLED4x20' macro='PrintString' >
									<argument exp='display[.i]' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='913991df-9bcb-475a-ae49-d9eb611b0d71' vmin='10' vmaj='1' codename='LCDAdafruitOLED4x20' x='0' y='0' z='0' xsz='80' ysz='36.3' zsz='7.15' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='d0_pin' data='$PORTB.0' />
					<value target='d1_pin' data='$PORTB.1' />
					<value target='d2_pin' data='$PORTB.2' />
					<value target='d3_pin' data='$PORTB.3' />
					<value target='rs_pin' data='$PORTB.4' />
					<value target='rw_pin' data='$PORTB.5' />
					<value target='enable_pin' data='$PORTB.6' />
					<value target='Rows' data='4' />
					<value target='Columns' data='20' />
					<value target='BackgroundColor' data='4720649' />
					<value target='LineColor' data='8388608' />
					<value target='TextColor' data='16776960' />
					<value target='Font' data='Arial' />
					<value target='CursorPosX' data='19' />
					<value target='CursorPosY' data='3' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<scadaresourcelookup />
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' >
		<background rgb='197379' img='' style='0' />
		<camera xe='-6.78218' ye='-1.68893' ze='196.579' xt='-6.78218' yt='-1.68893' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<viewport dx='676' dy='599' zoom='416.098' fix_topleft='0' />
		<page x='1000' y='1000' show='0' rgb='7360576' />
	</panel2d>
	<panel3d shadows='0' lighting='2' brightness='0' perspective='1' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='0' />
		<camera xe='0' ye='0' ze='781.66' xt='0' yt='0' 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='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAiwMAADkDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Split' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAiwMAADkDAAA' zoom='75' scrollx='0' scrolly='336' flags='0' />
	</layout>
</document>
</root>
