<root>
<document scada='0' schema='102' license='1,Rob_Johnson,9K7JPQ' title='' description='' fcversion='524800' target='PIC.16F.16F18446' >
	<config data='!0,368c!10,3ffe!20,3f9f!30,3ff9!40,3fff%0,4%4,0%8,0%b,0%d,1%10,0%11,3%15,1%16,3%19,1%1a,1%1b,1%1c,1%1d,1%20,1f%25,0%28,7%2b,7%30,9%34,1%37,1%38,1%39,1%3a,1%3b,1%3d,1%3d,1' clkspd='32000000' simspd='1' usewdt='1' constif='0' Use3V3='0' />
	<plugins >
		<dll_models enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug >
		<watch expr='button' />
		<watch expr='common_now' />
		<watch expr='batt' />
		<watch expr='led_alt' />
		<watch expr='on' />
		<watch expr='jump' />
		<watch expr='led_alt' />
		<watch expr='on' />
		<watch expr='BatteryS' />
		<watch expr='BatteryV' />
		<watch expr='batt_good' />
		<watch expr='Lang' />
	</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='1' />
			<data name='ClockPin' value='6' />
			<data name='DataPort' value='1' />
			<data name='DataPin' value='7' />
			<data name='UseDefaultPins' value='1' />
			<data name='WrapEnabled' value='1' />
			<data name='CommsDelayOverridden' value='0' />
			<data name='CommsDelay' value='6' />
			<data name='CalculatedCommsDelay' value='6' />
			<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='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='eb850f9b-3a9a-4cac-b528-5e8cc04ef376' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='panel' description='' category='Misc' 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='ScopeTraces' target='pot_ptr_black1::ScopeTraces' typeid='7' hidden='0' locked='0' info='Selects if the scope traces are automatically generated or not' />
				<property name='cal_i2c1::SDAPins' target='gLCD_SSD1306_i2c1::cal_i2c1::SDAPins' typeid='16' hidden='0' locked='0' info='' filter='005$PORTA.5
004$PORTA.4
003$PORTA.3
021$PORTC.5
020$PORTC.4
019$PORTC.3
022$PORTC.6
023$PORTC.7
015$PORTB.7
014$PORTB.6
013$PORTB.5
012$PORTB.4
018$PORTC.2
017$PORTC.1
016$PORTC.0
002$PORTA.2
001$PORTA.1
000$PORTA.0' />
				<property name='cal_i2c1::BAUD' target='gLCD_SSD1306_i2c1::cal_i2c1::BAUD' typeid='14' hidden='0' locked='1' info='Baud rate to be used' />
			</properties>
			<values >
				<value target='pot_ptr_black1::ScopeTraces' data='1' />
				<value target='gLCD_SSD1306_i2c1::cal_i2c1::SDAPins' data='' />
				<value target='gLCD_SSD1306_i2c1::cal_i2c1::BAUD' data='1000000' />
			</values>
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='button' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='batt' type='u8' description='' 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='Lang' type='b1' description='0 = eng, 1= germ' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='led_alt' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='batt_good' type='u8' description='USE VREF 4.096  410' isconst='0' isinit='1' usrinit='250' setinit='250' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='common_now' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='temp1' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='BatteryV' type='f32' description='' isconst='0' isinit='1' usrinit='0.0' setinit='0.0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='jump' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='BatteryS' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='on' type='b1' 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>
			</variables>
			<macros >
				<macro >
					<flowline name='button' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='Lang = 1' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='gLCD_SSD1306_i2c1' macro='Print' >
									<argument exp='&quot;Drucken Sie die Taste,&quot;' />
									<argument exp='2' />
									<argument exp='0' />
									<argument exp='0' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='gLCD_SSD1306_i2c1' macro='Print' >
									<argument exp='&quot;um zu kalibrieren&quot;' />
									<argument exp='2' />
									<argument exp='8' />
									<argument exp='0' />
									<argument exp='0' />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='gLCD_SSD1306_i2c1' macro='Print' >
									<argument exp='&quot;Press Button to Cal&quot;' />
									<argument exp='4' />
									<argument exp='0' />
									<argument exp='0' />
									<argument exp='0' />
								</command>
							</flowline>
						</command>
						<command class_type='loop' title='button on' cmdcolor='16734039' cmdcolor_sec='16734039' type='1' exp='button = 0' start='0' >
							<flowline >
								<command class_type='input' title='Input' cmdcolor='5767167' cmdcolor_sec='5767167' mode='1' port='1048578' mask='2' exp='button' />
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='20' type='1' />
							</flowline>
						</command>
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='100' type='1' />
						<command class_type='loop' title='button off' cmdcolor='16734039' cmdcolor_sec='16734039' type='1' exp='button &gt; 0' start='0' >
							<flowline >
								<command class_type='input' title='Input' cmdcolor='5767167' cmdcolor_sec='5767167' mode='1' port='1048578' mask='2' exp='button' />
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='20' type='1' />
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='Lang = 1' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='gLCD_SSD1306_i2c1' macro='Print' >
									<argument exp='&quot;Kalibrieren  warten&quot;' />
									<argument exp='2' />
									<argument exp='24' />
									<argument exp='0' />
									<argument exp='0' />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='gLCD_SSD1306_i2c1' macro='Print' >
									<argument exp='&quot;Calibrating - wait &quot;' />
									<argument exp='4' />
									<argument exp='24' />
									<argument exp='0' />
									<argument exp='0' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='native' title='C Code' ccode='FVRCON = 0x131;' cmdcolor='16760832' cmdcolor_sec='16760832' language='C' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='gLCD_SSD1306_i2c1' macro='Initialise' />
						<command class_type='loop' title='Loop' cmdcolor='16734039' cmdcolor_sec='16734039' type='0' exp='1' >
							<flowline >
								<command class_type='input' title='Input' cmdcolor='5767167' cmdcolor_sec='5767167' mode='1' port='1048578' mask='1' exp='Lang' />
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='gLCD_SSD1306_i2c1' macro='ClearDisplay' />
								<command class_type='comment' title='' comment='using Vref 4.096v ref
RA2 - pin 1' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='10' type='1' />
								<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='test_batt' />
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='batt &gt; batt_good' swap='1' >
									<flowline />
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='gLCD_SSD1306_i2c1' macro='ClearDisplay' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='button' />
										<command class_type='calculation' title='flash' break='1' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='on = 1' />
										</command>
										<command class_type='output' title='Output COM' cmdcolor='8453975' cmdcolor_sec='8453975' mode='1' port='1048576' mask='1' exp='1' />
										<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='600' type='1' />
										<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='600' type='1' />
										<command class_type='output' title='Output COM' cmdcolor='8453975' cmdcolor_sec='8453975' mode='1' port='1048576' mask='1' exp='0' />
										<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='200' type='1' />
										<command class_type='input' title='reset GP4 to input' cmdcolor='5767167' cmdcolor_sec='5767167' mode='1' port='1048576' mask='1' exp='temp1' />
										<command class_type='comment' title='' comment='5v+ = 20mV per count 256
2.7 = 138
3.0 = 153
3.2 = 163
2.0 = 102

4.096v+ = 16mV per 255 count
4.096v+ = 4mV per 1024 count
2.7 = 167
3.0 = 188
3.2 = 200
2.0 = 125' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='' />
											<exp exp='jump = 0' />
										</command>
										<command class_type='loop' title='Loop' cmdcolor='16734039' cmdcolor_sec='16734039' type='1' exp='jump &gt; 0' start='0' >
											<flowline >
												<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='20' type='1' />
												<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='pot_ptr_black1' macro='GetByte' >
													<return exp='common_now' />
												</command>
												<command class_type='decision' title='test passed' cmdcolor='16734039' cmdcolor_sec='16734039' exp='common_now &gt; 145' swap='0' >
													<flowline >
														<command class_type='calculation' title='calibration passed' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='jump = 1' />
															<exp exp='on = 0' />
														</command>
														<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='lang = 1' swap='0' >
															<flowline >
																<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='gLCD_SSD1306_i2c1' macro='Print' >
																	<argument exp='&quot;Bestanden    &quot;' />
																	<argument exp='2' />
																	<argument exp='40' />
																	<argument exp='2' />
																	<argument exp='0' />
																</command>
															</flowline>
															<flowline >
																<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='gLCD_SSD1306_i2c1' macro='Print' >
																	<argument exp='&quot;Passed    &quot;' />
																	<argument exp='4' />
																	<argument exp='40' />
																	<argument exp='2' />
																	<argument exp='0' />
																</command>
															</flowline>
														</command>
													</flowline>
													<flowline />
												</command>
												<command class_type='decision' title='test failed' cmdcolor='16734039' cmdcolor_sec='16734039' exp='common_now &lt; 102' swap='0' >
													<flowline >
														<command class_type='calculation' title='calibration failed' cmdcolor='49280' cmdcolor_sec='49280' >
															<exp exp='jump = 1' />
															<exp exp='on = 0' />
														</command>
														<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='Lang = 1' swap='0' >
															<flowline >
																<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='gLCD_SSD1306_i2c1' macro='Print' >
																	<argument exp='&quot;Gescheitert    &quot;' />
																	<argument exp='2' />
																	<argument exp='40' />
																	<argument exp='2' />
																	<argument exp='0' />
																</command>
															</flowline>
															<flowline >
																<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='gLCD_SSD1306_i2c1' macro='Print' >
																	<argument exp='&quot;Failed    &quot;' />
																	<argument exp='4' />
																	<argument exp='40' />
																	<argument exp='2' />
																	<argument exp='0' />
																</command>
															</flowline>
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='30' type='2' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='test_batt' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='Vref - pin 1   RA2
4.096v+ = 16mV per 255 count

2.7 = 167
3.0 = 188
3.2 = 200
2.0 = 125' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='1' type='2' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='pot_color_cap1' macro='GetByte' >
							<return exp='batt' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='pot_color_cap1' macro='GetVoltage' >
							<return exp='BatteryV' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='Lang = 1' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='gLCD_SSD1306_i2c1' macro='Print' >
									<argument exp='&quot;Batteriespannung&quot;' />
									<argument exp='2' />
									<argument exp='0' />
									<argument exp='0' />
									<argument exp='0' />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='gLCD_SSD1306_i2c1' macro='Print' >
									<argument exp='&quot;Battery Voltage&quot;' />
									<argument exp='4' />
									<argument exp='0' />
									<argument exp='0' />
									<argument exp='0' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='BatteryV = BatteryV + BatteryV' />
							<exp exp='' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='BatteryS = FloatToString$ (BatteryV,3)' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' />
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='1' type='1' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='gLCD_SSD1306_i2c1' macro='Print' >
							<argument exp='BatteryS' />
							<argument exp='2' />
							<argument exp='8' />
							<argument exp='2' />
							<argument exp='0' />
						</command>
						<command class_type='comment' title='' comment='use 1/2 divider
10k/10k
5.4v = 167
9V battery = 8v / 2 = 4v or 255/5.5v(46.5mV) * 4 = 185 counts' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='lang = 1' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='batt &gt; batt_good' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='gLCD_SSD1306_i2c1' macro='Print' >
											<argument exp='&quot;Batterie gut&quot;' />
											<argument exp='2' />
											<argument exp='24' />
											<argument exp='0' />
											<argument exp='0' />
										</command>
									</flowline>
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='gLCD_SSD1306_i2c1' macro='Print' >
											<argument exp='&quot;Batterie wechseln&quot;' />
											<argument exp='2' />
											<argument exp='24' />
											<argument exp='0' />
											<argument exp='0' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='batt &gt; batt_good' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='gLCD_SSD1306_i2c1' macro='Print' >
											<argument exp='&quot;Battery Good&quot;' />
											<argument exp='4' />
											<argument exp='24' />
											<argument exp='0' />
											<argument exp='0' />
										</command>
									</flowline>
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='gLCD_SSD1306_i2c1' macro='Print' >
											<argument exp='&quot;Replace Battery&quot;' />
											<argument exp='4' />
											<argument exp='24' />
											<argument exp='0' />
											<argument exp='0' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='2' type='2' />
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='5c1da48f-ce54-4622-bdd9-fc812e373696' vmin='1' vmaj='1' codename='sw_push_rnd_pnl1' x='-50' y='30' 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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTC.1' />
					<value target='polarity' data='000' />
					<value target='debounce' data='10' />
					<value target='operation' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='d7e01665-00e9-4091-8aa6-b9a0dd265bce' vmin='4' vmaj='1' codename='pot_ptr_black1' x='-50' y='0' z='0' xsz='22.6274' ysz='22.6274' zsz='14.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='1' >
				<resources />
				<properties />
				<values >
					<value target='angle_start' data='225.000000' />
					<value target='angle_sweep' data='270.000000' />
					<value target='color' data='16777215' />
					<value target='ScopeTraces' data='1' />
					<value target='channel' data='12' />
					<value target='vrefvol' data='540' />
					<value target='vrefop' data='000' />
					<value target='convspd' data='003' />
					<value target='actime' data='40' />
					<value target='bits' data='12' />
					<value target='bitmul' data='0.004883' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='14683ea8-5a08-4b3a-be2d-3dea3e17e720' vmin='3' vmaj='1' codename='pot_color_cap1' x='-50' y='-30' z='0' xsz='25.1419' ysz='25.1419' zsz='18.55' 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='1' >
				<resources />
				<properties />
				<values >
					<value target='angle_start' data='225.000000' />
					<value target='angle_sweep' data='270.000000' />
					<value target='cap_color' data='192' />
					<value target='point_color' data='16777215' />
					<value target='ScopeTraces' data='0' />
					<value target='channel' data='13' />
					<value target='vrefvol' data='410' />
					<value target='vrefop' data='003' />
					<value target='convspd' data='003' />
					<value target='actime' data='40' />
					<value target='bits' data='12' />
					<value target='bitmul' data='0.004883' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='c6c91999-1fe0-414e-b6aa-0a7ddc9a6417' vmin='1' vmaj='1' codename='sw_toggle_mtl_pcb1' x='-50' y='-60' 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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTC.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='f6ab6074-68ba-4cd4-9274-f973102f8518' vmin='8' vmaj='1' codename='gLCD_SSD1306_i2c1' x='-50' y='50' z='1.64978' 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='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='15790320' />
					<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='000' />
					<value target='cal_i2c1::BAUD_LIST' data='003' />
					<value target='cal_i2c1::BAUD' data='1000000' />
					<value target='cal_i2c1::StopDel' data='0' />
					<value target='cal_i2c1::SDA' data='$PORTA.0' />
					<value target='cal_i2c1::SDAPins' data='001' />
					<value target='cal_i2c1::SCL' data='$PORTA.1' />
					<value target='cal_i2c1::SCLPins' data='000' />
					<value target='DisplayMethod' data='001' />
					<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 class_type='ref' guid='16d8b52e-ca01-4309-9afb-5e265b4ae1ca' vmin='0' vmaj='1' codename='shape_textbox1' x='-10' y='-60' 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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='1975743' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='FontSize' data='6.000000' />
					<value target='AlignX' data='000' />
					<value target='AlignY' data='000' />
					<value target='Text' data='Language select' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='16d8b52e-ca01-4309-9afb-5e265b4ae1ca' vmin='0' vmaj='1' codename='shape_textbox2' x='0' y='-30' 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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='1975743' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='FontSize' data='12.000000' />
					<value target='AlignX' data='000' />
					<value target='AlignY' data='000' />
					<value target='Text' data='battery Voltage' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='16d8b52e-ca01-4309-9afb-5e265b4ae1ca' vmin='0' vmaj='1' codename='shape_textbox3' x='0' y='30' z='3.82489' 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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='1975743' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='FontSize' data='12.000000' />
					<value target='AlignX' data='000' />
					<value target='AlignY' data='000' />
					<value target='Text' data='Calibrate' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='16d8b52e-ca01-4309-9afb-5e265b4ae1ca' vmin='0' vmaj='1' codename='shape_textbox4' 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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='1975743' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='FontSize' data='12.000000' />
					<value target='AlignX' data='000' />
					<value target='AlignY' data='000' />
					<value target='Text' data='voltage detect' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='16d8b52e-ca01-4309-9afb-5e265b4ae1ca' vmin='0' vmaj='1' codename='shape_textbox5' x='10' y='50' z='1' 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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='1975743' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='FontSize' data='12.000000' />
					<value target='AlignX' data='000' />
					<value target='AlignY' data='000' />
					<value target='Text' data='OLED display I2C' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<scadaresourcelookup />
	<keymap >
		<key code='65' >
			<exp exp='button = 1' />
		</key>
	</keymap>
	<panel2d shadows='0' lighting='1' brightness='-51' >
		<background rgb='15793151' img='' style='0' />
		<camera xe='-11.8878' ye='1.07516' ze='205.952' xt='-11.8878' yt='1.07516' 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='300' 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---------------------wUAAAAYAAAAewcAAH8DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='button' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAewcAAH8DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='test_batt' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAewcAAH8DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
