<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='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='ghostype' value='0' />
			<data name='monitor' value='1' />
			<data name='ictloop' value='0' />
			<data name='ictrate' value='20000' />
			<data name='ictmask' value='0' />
			<data name='anlpres' value='255' />
			<data name='digmask1' value='-1' />
			<data name='digmask2' 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='d8a58889-6732-46c1-818d-266c9662f105' 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='Command' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='KeyPress' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='DeviceStr' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</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='DeviceScan' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='This Address Must Match Your Bluetooth Device Address
' textarea='36,17,36,17' />
						<command class_type='calculation' title='EDIT THIS ADDRESS To Match Your Device' >
							<exp exp='DeviceStr = &quot;00BA55571F8A&quot;' />
						</command>
						<command class_type='comment' title='' comment='This Address Must Match Your Bluetooth Device Address
' textarea='36,17,36,17' />
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Start' />
						<command class_type='call' title='Call Component Macro' component='Bluetooth2' macro='Initialise' />
						<command class_type='delay' title='Delay' exp='1' type='2' />
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot;Connecting&quot;' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='Command = &quot;AT+BTW&quot; + DeviceStr' />
						</command>
						<command class_type='call' title='Call Macro' component='Bluetooth2' macro='SendCommand' >
							<argument exp='Command' />
							<argument exp='1' />
							<argument exp='1' />
						</command>
						<command class_type='delay' title='Wait up to 40 seconds for PAIR message' exp='40' type='2' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='Command = &quot;ATD&quot; + DeviceStr' />
						</command>
						<command class_type='call' title='Call Macro' component='Bluetooth2' macro='SendCommand' >
							<argument exp='Command' />
							<argument exp='1' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='ClearLine' >
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot;Connected&quot;' />
						</command>
						<command class_type='loop' title='Loop' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='Call Component Macro' component='keypad_eb014' macro='GetNumber' >
									<return exp='KeyPress' />
								</command>
								<command class_type='decision' title='Decision' exp='KeyPress &lt; 255' swap='0' >
									<flowline >
										<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='KeyPress' >
											<case >
												<flowline />
											</case>
											<case exp='2' >
												<flowline >
													<command class_type='call' title='Call Component Macro' component='Bluetooth2' macro='SendString' >
														<argument exp='&quot;SetMotors 20 20&quot;' />
														<argument exp='1' />
													</command>
												</flowline>
											</case>
											<case exp='4' >
												<flowline >
													<command class_type='call' title='Call Component Macro' component='Bluetooth2' macro='SendString' >
														<argument exp='&quot;SetMotors -20 20&quot;' />
														<argument exp='1' />
													</command>
												</flowline>
											</case>
											<case exp='6' >
												<flowline >
													<command class_type='call' title='Call Component Macro' component='Bluetooth2' macro='SendString' >
														<argument exp='&quot;SetMotors 20 -20&quot;' />
														<argument exp='1' />
													</command>
												</flowline>
											</case>
											<case exp='8' >
												<flowline >
													<command class_type='call' title='Call Component Macro' component='Bluetooth2' macro='SendString' >
														<argument exp='&quot;SetMotors -20 -20&quot;' />
														<argument exp='1' />
													</command>
												</flowline>
											</case>
										</command>
										<command class_type='call' title='Call Component Macro' component='keypad_eb014' macro='WaitReleased' />
										<command class_type='call' title='Call Component Macro' component='Bluetooth2' macro='SendString' >
											<argument exp='&quot;SetMotors 0 0&quot;' />
											<argument exp='1' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='76b3eb5c-2d23-4c8d-bde8-505032bc886a' vmin='4' vmaj='1' codename='Bluetooth2' x='0' y='0' 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='DeviceName' data='FlowBlue' />
					<value target='PairKey' data='1234' />
					<value target='InitDefs' data='0' />
					<value target='InitDisc' data='0' />
					<value target='InitConn' data='1' />
					<value target='script_count' data='001' />
					<value target='script1' data='' />
					<value target='script2' data='' />
					<value target='script3' data='' />
					<value target='script4' data='' />
					<value target='string_size' data='80' />
					<value target='baud' data='004' />
					<value target='flow_control' data='1' />
					<value target='expect_echo' data='1' />
					<value target='channel' data='1' />
					<value target='tx_pin' data='$PORTC.6' />
					<value target='rx_pin' data='$PORTC.7' />
					<value target='rts_pin' data='$PORTC.5' />
					<value target='cts_pin' data='$PORTC.4' />
					<value target='TXRemap' data='' />
					<value target='RXRemap' data='' />
					<value target='Reset' data='$PORTC.1' />
					<value target='label' data='Bluetooth' />
					<value target='Injector' data='000' />
					<value target='InjectorHandle' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='d29dda88-17de-4008-991a-c881890d4c57' vmin='1' vmaj='1' codename='lcd_eb005' x='1.17055' y='-39.0963' z='3.575' 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='b07090da-50a4-41ed-97d8-99016c092a14' vmin='0' vmaj='1' codename='keypad_eb014' x='-77.7243' y='-23.8791' z='5.1' 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='port' data='003' />
					<value target='pin_col1' data='$PORTD.0' />
					<value target='pin_col2' data='$PORTD.1' />
					<value target='pin_col3' data='$PORTD.2' />
					<value target='pin_row1' data='$PORTD.4' />
					<value target='pin_row2' data='$PORTD.5' />
					<value target='pin_row3' data='$PORTD.6' />
					<value target='pin_row4' data='$PORTD.7' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<keymap />
	<panel2d shadows='1' lighting='0' brightness='0' 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='128' perspective='0' >
		<background rgb='65280' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='70' />
		<camera xe='-25' ye='-24' ze='211.662' xt='-25' yt='-24' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel3d>
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAiQQAALkDAAA' zoom='75' scrollx='159' scrolly='772' flags='0' />
	</layout>
</document>
</root>
