<root>
<document schema='101' license='50,Dev User,XDKHX7' title='' description='' target='PIC.16F.16F1937' >
	<config data='!0,fe2!10,1633%0,2%3,0%5,1%6,1%7,1%8,1%9,3%b,1%c,0%d,0%10,3%14,3%18,0%19,1%1a,1%1c,1%1d,0' clkspd='18432000' 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='0' />
			<data name='ictrate' value='20000' />
			<data name='ictmask' value='0' />
		</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='934228da-23c4-4091-a428-299cdb8128aa' 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='false' type='b1' description='' isconst='1' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='data' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ret' 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='Starts up the WIFI module then configures the module as an access point.
The network &quot;Flowcode_ESP8266&quot; should appear on a WIFI enabled device.
Password is &quot;flowcode6&quot;. The program then runs a webserver on port 80.' >
						<command class_type='call' title='Startup LCD' component='lcd_eb005' macro='Start' />
						<command class_type='call' title='Print Init' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot;Init, &quot;' />
						</command>
						<command class_type='call' title='Initialise Wifi' component='WLAN_ESP8266' macro='Initialise' />
						<command class_type='call' title='Print FW' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot;AP&quot;' />
						</command>
						<command class_type='call' title='Create Access Point' component='WLAN_ESP8266' macro='CreateAccessPoint' >
							<return exp='ret' />
							<argument exp='&quot;Flowcode_ESP8266&quot;' />
							<argument exp='&quot;flowcode6&quot;' />
							<argument exp='5' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Move to second line of LCD' component='lcd_eb005' macro='Cursor' >
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='decision' title='Decision' exp='ret = 1' swap='0' >
							<flowline >
								<command class_type='call' title='Print ok' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot;OK&quot;' />
								</command>
								<command class_type='delay' title='Delay' exp='1' type='2' />
								<command class_type='call' title='Clear LCD' component='lcd_eb005' macro='Clear' />
								<command class_type='call' title='' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot;Server &quot;' />
								</command>
								<command class_type='call' title='Startup Listening Server' component='WLAN_ESP8266' macro='ControlTCPServer' >
									<return exp='ret' />
									<argument exp='1' />
									<argument exp='80' />
								</command>
								<command class_type='decision' title='Decision' exp='ret = 1' swap='0' >
									<flowline >
										<command class_type='call' title='' component='lcd_eb005' macro='PrintString' >
											<argument exp='&quot;Started&quot;' />
										</command>
										<command class_type='call' title='Control LCD Cursor' component='lcd_eb005' macro='Cursor' >
											<argument exp='0' />
											<argument exp='1' />
										</command>
										<command class_type='call' title='Print IP:' component='lcd_eb005' macro='PrintString' >
											<argument exp='&quot;IP:&quot;' />
										</command>
										<command class_type='call' title='Read Server IP' component='WLAN_ESP8266' macro='CheckTCPServerIP' >
											<return exp='data' />
										</command>
										<command class_type='call' title='Print IP:' component='lcd_eb005' macro='PrintString' >
											<argument exp='data' />
										</command>
										<command class_type='loop' title='Loop' type='0' exp='1' >
											<flowline >
												<command class_type='call' title='Call Component Macro' component='pot_trim_finger1' macro='GetByte' >
													<return exp='ret' />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='data = STRING ret' />
												</command>
												<command class_type='call' title='Call Component Macro' component='WLAN_ESP8266' macro='SetOutValue' >
													<argument exp='0' />
													<argument exp='data' />
												</command>
												<command class_type='call' title='Call Macro' component='WLAN_ESP8266' macro='CheckForPageRequests' >
													<return exp='ret' />
												</command>
												<command class_type='decision' title='Decision' exp='ret &gt; 0' swap='0' >
													<flowline >
														<command class_type='call' title='Clear top line of LCD' component='lcd_eb005' macro='ClearLine' >
															<argument exp='0' />
														</command>
														<command class_type='call' title='Print IP:' component='lcd_eb005' macro='PrintString' >
															<argument exp='&quot;Page:&quot;' />
														</command>
														<command class_type='call' title='Print IP:' component='lcd_eb005' macro='PrintNumber' >
															<argument exp='ret' />
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='call' title='Startup LCD' component='lcd_eb005' macro='PrintString' >
											<argument exp='&quot;Fail&quot;' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Print fail' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot;Fail&quot;' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='e1bb4679-58ef-40dc-8d09-306ada46f7bf' vmin='2' vmaj='1' codename='WLAN_ESP8266' x='-0.0359411' y='16.4711' z='0.755' 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 >
					<value target='RxBufferSize' data='50' />
					<value target='ScanBufferSize' data='1' />
					<value target='ResetMode' data='000' />
					<value target='UART_CHANNEL' data='001' />
					<value target='BAUD' data='009' />
					<value target='RESET' data='$PORTC.0' />
					<value target='TX' data='$PORTC.6' />
					<value target='RX' data='$PORTC.7' />
					<value target='TXRemap' data='014' />
					<value target='RXRemap' data='070' />
					<value target='PAGES' data='002' />
					<value target='TIMEOUT' data='4' />
					<value target='name1' data='index.htm' />
					<value target='html1' data='&lt;html&gt;Flowcode ESP8266 Webserver Page 1
&lt;a href=&quot;page2.htm&quot;&gt;Click for page 2&lt;/a&gt;
&lt;/html&gt;' />
					<value target='name2' data='page2.htm' />
					<value target='html2' data='&lt;html&gt;Flowcode ESP8266 Webserver Page 2
&lt;a href=&quot;index.htm&quot;&gt;Click for page 1&lt;/a&gt;
&lt;/html&gt;' />
					<value target='name3' data='page3.htm' />
					<value target='html3' data='&lt;html&gt;' />
					<value target='name4' data='page4.htm' />
					<value target='html4' data='&lt;html&gt;' />
					<value target='WLAN_USE_PAGE1' data='1' />
					<value target='WLAN_USE_PAGE2' data='1' />
					<value target='WLAN_USE_PAGE3' data='0' />
					<value target='WLAN_USE_PAGE4' data='0' />
					<value target='Injector' data='000' />
					<value target='label' data='WLAN' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='d29dda88-17de-4008-991a-c881890d4c57' vmin='1' vmaj='1' codename='lcd_eb005' x='0.686611' y='-25.0507' 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 >
					<value target='Pin_Data_0' data='$PORTB.0' />
					<value target='Pin_Data_1' data='$PORTB.1' />
					<value target='Pin_Data_2' data='$PORTB.2' />
					<value target='Pin_Data_3' data='$PORTB.3' />
					<value target='Pin_RS' data='$PORTB.4' />
					<value target='Pin_E' data='$PORTB.5' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='8462ac99-ca8f-429b-953a-36dbe58ada72' vmin='3' vmaj='1' codename='pot_trim_finger1' x='-49.1384' y='17.3053' z='0' xsz='11.8794' ysz='11.8794' zsz='16' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' 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='0' />
					<value target='vrefvol' data='500' />
					<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='2' brightness='0' perspective='0' >
		<background rgb='15335401' 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='16777215' img='' style='0' />
		<table rgb='16777215' img='' style='0' size='0' />
		<camera xe='0' ye='0' ze='207.345' 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---------------------wAAAAAUAAAA5AQAALkDAAA' zoom='75' scrollx='0' scrolly='957' flags='0' />
	</layout>
</document>
</root>
