<root>
<document schema='101' license='1,JohnCrow,HRKH69' title='' description='' target='PIC.16F.16F877A' >
	<config data='!0,3f72%0,2%2,0%3,0%6,1%7,0%9,3%b,1%8,1%d,1' clkspd='19660800' 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='monitor' value='1' />
			<data name='ictloop' value='1' />
			<data name='ictrate' value='1000' />
			<data name='ictmask' value='-1' />
		</dll_dbg_icd>
		<dll_models enabled='1' />
		<dll_upgrader enabled='1' />
		<dll_webhelp enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug />
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='eea3c723-9852-444c-80bc-ad1d74e8ad1d' 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='false' type='b1' description='' isconst='1' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='temp' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='adc' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</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='Main' description='' >
						<command class_type='call' title='Setup LCD' component='gLCD_KS0108' macro='Initialise' />
						<command class_type='call' title='Draw Calibration Scale' component='gLCD_KS0108' macro='DrawLine' >
							<argument exp='14' />
							<argument exp='60' />
							<argument exp='114' />
							<argument exp='60' />
						</command>
						<command class_type='call' title='0 Degrees' component='gLCD_KS0108' macro='Print' >
							<argument exp='&quot;0&quot;' />
							<argument exp='14' />
							<argument exp='55' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='25 Degrees' component='gLCD_KS0108' macro='Print' >
							<argument exp='&quot;25&quot;' />
							<argument exp='35' />
							<argument exp='55' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='50 Degrees' component='gLCD_KS0108' macro='Print' >
							<argument exp='&quot;50&quot;' />
							<argument exp='60' />
							<argument exp='55' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='75 Degrees' component='gLCD_KS0108' macro='Print' >
							<argument exp='&quot;75&quot;' />
							<argument exp='85' />
							<argument exp='55' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='100 Degrees' component='gLCD_KS0108' macro='Print' >
							<argument exp='&quot;100&quot;' />
							<argument exp='110' />
							<argument exp='55' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='loop' title='Loop' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='Read ADC As Interger' component='pot_trim_finger1' macro='GetInt' >
									<return exp='adc' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='temp = (adc * 500) / 1023' />
									<exp exp='' />
								</command>
								<command class_type='decision' title='Is Temp &lt; 0' exp='temp &lt; 0' swap='1' >
									<flowline />
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='temp = 0' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Is Temp &gt; 100' exp='temp &gt; 100' swap='1' >
									<flowline />
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='temp = 100' />
										</command>
									</flowline>
								</command>
								<command class_type='call' title='Box Round Numeric Temp' component='gLCD_KS0108' macro='DrawRectangle' >
									<argument exp='14' />
									<argument exp='5' />
									<argument exp='40' />
									<argument exp='20' />
									<argument exp='0' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='Dsiplay Temp As Number' component='gLCD_KS0108' macro='PrintNumber' >
									<argument exp='temp' />
									<argument exp='20' />
									<argument exp='10' />
									<argument exp='0' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='Dsiplay Celcius' component='gLCD_KS0108' macro='Print' >
									<argument exp='&quot;Celcius&quot;' />
									<argument exp='45' />
									<argument exp='10' />
									<argument exp='0' />
									<argument exp='0' />
								</command>
								<command class_type='calculation' title='Calculation Offset' >
									<exp exp='// Graph Starts At 14 So Add This To Calculated Value' />
									<exp exp='temp = temp + 14' />
								</command>
								<command class_type='comment' title='' comment='Draws box with background fill' textarea='12,0,12,0' />
								<command class_type='call' title='Draw Outer Box' component='gLCD_KS0108' macro='DrawRectangle' >
									<argument exp='14' />
									<argument exp='25' />
									<argument exp='114' />
									<argument exp='35' />
									<argument exp='0' />
									<argument exp='0' />
								</command>
								<command class_type='comment' title='' comment='Fills in upto current value' textarea='12,0,12,0' />
								<command class_type='call' title='Draw Bar To Show Temp' component='gLCD_KS0108' macro='DrawRectangle' >
									<argument exp='14' />
									<argument exp='25' />
									<argument exp='temp' />
									<argument exp='35' />
									<argument exp='0' />
									<argument exp='1' />
								</command>
								<command class_type='delay' title='Delay' disable='1' exp='100' type='1' />
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='c9d3b357-b914-4301-a741-0d13819e441c' vmin='3' vmaj='1' codename='gLCD_KS0108' x='9.19517e-005' y='20' z='3.2' xsz='2.67023' ysz='2.13496' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='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='ControllerCount' data='002' />
					<value target='monochrome' data='1' />
					<value target='foreground_colour' data='0' />
					<value target='background_colour' data='16777215' />
					<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='chip_sel1_pin' data='$PORTC.0' />
					<value target='chip_sel2_pin' data='$PORTC.1' />
					<value target='chip_sel3_pin' data='$PORTC.1' />
					<value target='a0_pin' data='$PORTC.2' />
					<value target='read_write_pin' data='$PORTC.3' />
					<value target='enable_pin' data='$PORTC.4' />
					<value target='data0_pin' data='$PORTB.0' />
					<value target='data1_pin' data='$PORTB.1' />
					<value target='data2_pin' data='$PORTB.2' />
					<value target='data3_pin' data='$PORTB.3' />
					<value target='data4_pin' data='$PORTB.4' />
					<value target='data5_pin' data='$PORTB.5' />
					<value target='data6_pin' data='$PORTB.6' />
					<value target='data7_pin' data='$PORTB.7' />
					<value target='reset_pin' data='$PORTC.5' />
					<value target='DisplayMethod' data='000' />
					<value target='EnableDelay' data='10' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='8462ac99-ca8f-429b-953a-36dbe58ada72' vmin='2' vmaj='1' codename='pot_trim_finger1' x='0' y='-56' z='7.57894' xsz='37.5139' ysz='37.5139' zsz='50.5263' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='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='channel' data='5' />
					<value target='vrefvol' data='100' />
					<value target='vrefop' data='000' />
					<value target='convspd' data='003' />
					<value target='actime' data='40' />
					<value target='bits' data='10' />
					<value target='bitmul' data='0.004883' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<keymap />
	<panel2d shadows='0' lighting='0' brightness='-76' 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='25' />
		<camera xe='0' ye='0' ze='300' 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---------------------wAAAAAUAAAALAMAAO8CAAA' zoom='75' scrollx='0' scrolly='496' flags='0' />
	</layout>
</document>
</root>
