<root>
<document scada='0' schema='102' license='1,mnfisher,5YZWG2' title='' description='' fcversion='524802' target='ARD.ATMEGA.Arduino Uno R3 PDIP' >
	<config data='' clkspd='16000000' simspd='2' usewdt='0' constif='0' commport='4' Use3V3='0' />
	<plugins >
		<dll_models enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug >
		<watch expr='PinChange.pulse' />
		<watch expr='pos' />
	</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='58f32e38-8e22-4275-88f1-9b98e8043fa2' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='1' scadaCompatible='0' embeddedCompatible='1' 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' scadavisible='1' interactive='1' solid='1' layer='0' poslock='0' >
			<resources />
			<properties >
				<property name='pinD2' target='pinD2' typeid='5' hidden='0' locked='0' info='' />
			</properties>
			<values >
				<value target='pinD2' data='$PORTD.2' />
			</values>
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='READ1' type='s16' description='' isconst='1' isinit='1' usrinit='7' setinit='7' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='READ0' type='u8' description='' isconst='1' isinit='1' usrinit='9' setinit='9' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='IDLE' type='s16' description='' isconst='1' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='END' type='s16' description='' isconst='1' isinit='1' usrinit='10' setinit='10' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='EOF' type='s16' description='' isconst='1' isinit='1' usrinit='66' setinit='66' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='length' type='u16' description='Length of pulse in sim' 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='DATA' type='s16' description='' isconst='1' isinit='1' usrinit='6' setinit='6' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='state' type='u8' description='' isconst='0' isinit='1' usrinit='1' setinit='IDLE' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='rcvd' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='4' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ERROR' type='s16' description='' isconst='1' isinit='1' usrinit='33' setinit='33' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='START' type='u8' description='' isconst='1' isinit='1' usrinit='4' setinit='4' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='POST' type='s16' description='' isconst='1' isinit='1' usrinit='77' setinit='77' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='bit_n' type='u8' description='Current pulse to receive' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Preamble' type='s16' description='' isconst='1' isinit='1' usrinit='5' setinit='5' />
				</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='PinChange' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<local name='pulse' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='i' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='dat' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='index' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='...............' cmdcolor='1879295' cmdcolor_sec='5751039' component='Timer1' macro='GetCountMicroSeconds' >
							<return exp='.pulse' />
						</command>
						<command class_type='call' title='Component Macro' ccode='// Name: Component Macro
FCD_026e1_Timer1__ResetCounter();' cmdcolor='1879295' cmdcolor_sec='5751039' component='Timer1' macro='ResetCounter' />
						<command class_type='switch' title='Handle pulse..' textarea='36,25,36,25' cmdcolor='12615680' cmdcolor_sec='15376912' exp='state' >
							<case >
								<flowline />
							</case>
							<case exp='START' >
								<flowline >
									<command class_type='decision' title='After a 350us pulse look for a long low ' cmdcolor='12615680' cmdcolor_sec='15376912' exp='(.pulse &gt;= 300) &amp;&amp; (.pulse &lt; 400)' swap='0' >
										<flowline >
											<command class_type='calculation' title='Clear data' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='bit_n = 0' />
												<exp exp='rcvd[0] = 0' />
												<exp exp='rcvd[1] = 0' />
												<exp exp='rcvd[2] = 0' />
												<exp exp='' />
											</command>
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='state = Preamble' />
											</command>
										</flowline>
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='state = IDLE' />
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
							<case exp='Preamble' >
								<flowline >
									<command class_type='decision' title='Need a 31 pulse  space .to start' cmdcolor='12615680' cmdcolor_sec='15376912' exp='(.pulse &gt;= 30 * 350) &amp;&amp; (.pulse &lt; 32 * 350)' swap='0' >
										<flowline >
											<command class_type='calculation' title='............' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='state = DATA' />
											</command>
										</flowline>
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='state = ERROR' />
											</command>
										</flowline>
									</command>
									<command class_type='comment' title='' comment='End of Preamble' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
								</flowline>
							</case>
							<case exp='DATA' >
								<flowline >
									<command class_type='comment' title='' comment='After Preamble 
will be always 1st
High pulse.' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
									<command class_type='decision' title='3 x pulse us pulse is start of ONE bit' cmdcolor='12615680' cmdcolor_sec='15376912' exp='(.pulse &gt; 900) &amp;&amp; (.pulse &lt; 1200)' swap='0' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='state = READ1' />
											</command>
										</flowline>
										<flowline >
											<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='(.pulse &gt;= 280) &amp;&amp; (.pulse &lt;= 420)' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='state = READ0' />
													</command>
												</flowline>
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='state = ERROR' />
													</command>
												</flowline>
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
							<case exp='READ0' >
								<flowline >
									<command class_type='decision' title='Long gap = 10' cmdcolor='12615680' cmdcolor_sec='15376912' exp='(.pulse &gt; 900) &amp;&amp; (.pulse &lt; 1200)' swap='0' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='state = DATA' />
												<exp exp='bit_n = bit_n + 1' />
											</command>
										</flowline>
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='state = ERROR' />
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
							<case exp='IDLE' >
								<flowline >
									<command class_type='calculation' title='Expect start 350us  pulse' cmdcolor='16760919' cmdcolor_sec='16760832' >
										<exp exp='state = START' />
									</command>
									<command class_type='call' title='Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Timer1' macro='StartCounter' >
										<argument exp='true' />
									</command>
								</flowline>
							</case>
							<case exp='READ1' >
								<flowline >
									<command class_type='decision' title='Short gap = 1 ' cmdcolor='12615680' cmdcolor_sec='15376912' exp='(.pulse &gt; 300) &amp;&amp; (.pulse &lt; 400)' swap='0' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='.index = bit_n &gt;&gt; 3' />
												<exp exp='.dat = rcvd[.index]' />
											</command>
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='.dat = .dat | (0x80 &gt;&gt; (bit_n % 8))' />
											</command>
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='rcvd[.index] = .dat' />
												<exp exp='state = DATA' />
												<exp exp='bit_n = bit_n + 1' />
											</command>
										</flowline>
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='state = ERROR' />
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='decision' title='Read 3 bytes?' cmdcolor='12615680' cmdcolor_sec='15376912' exp='bit_n = 24' swap='0' >
							<flowline >
								<command class_type='calculation' title='Got a data frame' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='state = END' />
								</command>
								<command class_type='call' title='Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Timer1' macro='StopCounter' />
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Did we hit an error?' cmdcolor='12615680' cmdcolor_sec='15376912' exp='state = ERROR' swap='0' >
							<flowline >
								<command class_type='calculation' title='Go back to idle maybe check pin is low first?' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='state = IDLE' />
								</command>
								<command class_type='call' title='Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Timer1' macro='StopCounter' />
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='InitSsd1306' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='SSD1306_78' macro='Initialise' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='SSD1306_78' macro='Print' >
							<argument exp='&quot;Ssd1306 Init OK&quot;' />
							<argument exp='2' />
							<argument exp='2' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='1' type='2' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='ssd1306_78' macro='Print' >
							<argument exp='&quot;                 &quot;' />
							<argument exp='2' />
							<argument exp='2' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='InitPorts' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='0' port='1048577' mask='0' exp='0' />
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='0' port='1048579' mask='0' exp='0' />
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='0' port='1048578' mask='0' exp='0' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<local name='i' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='addr' type='u8' description='Data to Send' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='cmd' type='u8' description='Data to Send' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='UART1' macro='Initialise' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='UART1' macro='SendString' >
							<argument exp='&quot;Hello\r\n\n&quot;' />
						</command>
						<command class_type='call' title='Call Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' macro='InitPorts' />
						<command class_type='call' title='Call Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' macro='InitSsd1306' />
						<command class_type='calculation' title='Must be up' disable='1' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='pinD2 = 1' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='1' type='2' />
						<command class_type='calculation' title='Calculation' disable='1' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='pinD2 = 0' />
						</command>
						<command class_type='interrupt' title='Connected to Int0 pin D2' ccode='// Name: Pretend only have interrupt on falling or rising edge (not both)
EICRA |= (1 &lt;&lt; ISC01);
EICRA &amp;= ~(1 &lt;&lt; ISC00);
sei();
EIMSK |= (1 &lt;&lt; INT0);
' cmdcolor='17151' cmdcolor_sec='355583' enable='1' name='INT0' call='PinChange' >
							<settings timer='0' prescale='-1' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='2' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='1' >
							<flowline >
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='100' type='1' />
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='state = END' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' component='SSD1306_78' macro='Print' >
											<argument exp='&quot;End of packet&quot;' />
											<argument exp='2' />
											<argument exp='52' />
											<argument exp='0' />
											<argument exp='0' />
										</command>
										<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='1' type='2' />
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='UART1' macro='SendString' >
											<argument exp='&quot;Got\t&quot;' />
										</command>
										<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='2' forvar='.i' exp='3' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='UART1' macro='SendNumber' >
													<argument exp='rcvd[.i]' />
												</command>
												<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' component='SSD1306_78' macro='Print' >
													<argument exp='rcvd' />
													<argument exp='2' />
													<argument exp='22' />
													<argument exp='0' />
													<argument exp='0' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='UART1' macro='SendChar' >
													<argument exp='&apos;\t&apos;' />
												</command>
											</flowline>
										</command>
										<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='300' type='1' />
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='UART1' macro='SendString' >
											<argument exp='&quot;\r\n&quot;' />
										</command>
										<command class_type='calculation' title='Reset buffer' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='bit_n = 0' />
											<exp exp='state = IDLE' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='For B5 LED' disable='1' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='pinD2 = 0' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='24ad2718-c70b-4088-aeda-3949dfdba740' vmin='1' vmaj='1' codename='Timer1' x='180' y='-377.5' z='0' xsz='18.0769' ysz='17.0455' zsz='25' 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' >
				<resources />
				<properties />
				<values >
					<value target='Timer' data='000' />
					<value target='BitDepth' data='8' />
					<value target='InstructionRate' data='16000000' />
					<value target='InstructionTime' data='0.000063' />
					<value target='RolloverFreq' data='62500.000000' />
					<value target='RolloverTime' data='0.000016' />
					<value target='RegHighUsed' data='0' />
					<value target='Instance' data='1' />
					<value target='DeviceBits' data='8' />
					<value target='CountRegLow' data='TCNT0' />
					<value target='CountRegHigh' data='' />
					<value target='EnableCode' data='sei(); TIMSK0 |= (1 &lt;&lt; TOIE0);  TCCR0B &amp;= 0xf8; TCCR0B |= 0x01; ' />
					<value target='DisableCode' data='TIMSK0 &amp;= ~(1 &lt;&lt; TOIE0); ' />
					<value target='HandlerCode' data='ISR(TIMER0_OVF_vect) {  TIM_1_INC }' />
					<value target='MaxTimeMeasurement' data='268.435455' />
					<value target='Family' data='ARD' />
					<value target='TimerDelay' data='50' />
					<value target='DecimalPoints' data='3' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='c73616d1-7ad0-45d9-aada-69ccfa4c5efc' vmin='0' vmaj='2' codename='UART1' x='-172' y='148.198' z='148.386' xsz='360' ysz='328.395' zsz='298.302' 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' >
				<resources />
				<properties />
				<values >
					<value target='cal_uart::CHANNEL' data='001' />
					<value target='cal_uart::BAUD_LIST' data='004' />
					<value target='cal_uart::BAUD' data='9600' />
					<value target='cal_uart::DBITS' data='008' />
					<value target='cal_uart::RETURN' data='000' />
					<value target='cal_uart::ECHO' data='000' />
					<value target='cal_uart::UseTX' data='1' />
					<value target='cal_uart::TX' data='$PORTD.1' />
					<value target='cal_uart::OutputPins' data='007' />
					<value target='cal_uart::TXAlt' data='0' />
					<value target='cal_uart::UseRX' data='1' />
					<value target='cal_uart::RX' data='$PORTD.0' />
					<value target='cal_uart::InputPins' data='013' />
					<value target='cal_uart::RXAlt' data='0' />
					<value target='cal_uart::FLOWEN' data='000' />
					<value target='cal_uart::RTS' data='$PORTB.2' />
					<value target='cal_uart::CTS' data='$PORTB.1' />
					<value target='label' data='UART' />
					<value target='cal_uart::ScopeTraces' data='0' />
					<value target='cal_uart::ConsoleData' data='1' />
					<value target='cal_uart::ConsoleFormat' data='000' />
					<value target='cal_uart::ConsoleColumns' data='64' />
					<value target='cal_uart::DataSource' data='000' />
					<value target='cal_uart::com_port' data='000' />
					<value target='cal_uart::Injector' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label1' x='146.259' y='1091' z='0' xsz='14.3' ysz='16.25' zsz='0' 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' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='1975743' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='Rx pin = D2' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label2' x='182.843' y='811' z='0.25' xsz='14.3' ysz='16.25' zsz='0' 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' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='1975743' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='Int0 is used-15Hz/Sec' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='7fdaec78-394e-4ec9-a578-4f1a12a12076' vmin='1' vmaj='1' codename='B5' x='343.9' y='116.1' z='0' xsz='30.7692' ysz='25.641' 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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTB.5' />
					<value target='polarity' data='001' />
					<value target='on_color' data='8453975' />
					<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='a31b1f0a-4221-490d-ae25-027868688f0b' vmin='0' vmaj='1' codename='swB5' x='200' y='472.25' z='0' xsz='27' ysz='19.3548' 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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTD.2' />
					<value target='polarity' data='000' />
					<value target='debounce' data='' />
					<value target='operation' data='001' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label3' x='442.843' y='431' z='3.25' xsz='14.3' ysz='16.25' zsz='0' 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' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='1975743' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='D2' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='f6ab6074-68ba-4cd4-9274-f973102f8518' vmin='8' vmaj='1' codename='SSD1306_78' x='37.319' y='-952.992' z='0' xsz='43.8751' ysz='51.3699' 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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pixel_height' data='64' />
					<value target='pixel_width' data='128' />
					<value target='Interlaced' data='1' />
					<value target='monochrome' data='1' />
					<value target='foreground_colour' data='16777215' />
					<value target='background_colour' data='0' />
					<value target='colour_bit_depth' data='1' />
					<value target='red_bit_depth' data='0' />
					<value target='green_bit_depth' data='0' />
					<value target='blue_bit_depth' data='0' />
					<value target='Address' data='120' />
					<value target='cal_i2c1::CHANNEL' data='001' />
					<value target='cal_i2c1::BAUD_LIST' data='001' />
					<value target='cal_i2c1::BAUD' data='100000' />
					<value target='cal_i2c1::StopDel' data='0' />
					<value target='cal_i2c1::SDA' data='$PORTC.4' />
					<value target='cal_i2c1::SDAPins' data='000' />
					<value target='cal_i2c1::SCL' data='$PORTC.5' />
					<value target='cal_i2c1::SCLPins' data='000' />
					<value target='DisplayMethod' data='000' />
					<value target='SimComms' data='0' />
					<value target='cal_i2c1::ConsoleData' data='0' />
					<value target='cal_i2c1::ScopeTraces' data='0' />
					<value target='cal_i2c1::Injector' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<scadaresourcelookup />
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' >
		<background rgb='8421376' img='' style='0' />
		<camera xe='74.8829' ye='-466.927' ze='1785.18' xt='74.8829' yt='-466.927' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</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---------------------wUAAAAiAAAA3QoAAFUGAAA' zoom='100' scrollx='0' scrolly='821' flags='0' />
		<view type='0' name='InitPorts' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAA3QoAAFUGAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='PinChange' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAA3QoAAFUGAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='InitSsd1306' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAA3QoAAFUGAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
