<root>
<document schema='101' license='1,JohnCrow,FUD4XJ' title='' description='Receive 2 Bytes

Value0 = 20 Byte0
Value1 = 50 Byte1

Read FiFo Buffer at start of loop

Read RxByte 0
Read RxByte 1

Display Values
' target='PIC.16F.16F1937' >
	<config data='!0,cfe2!10,deff%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='a4e8e945-f8ec-48b0-8abc-5c52a9e666ca' 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='Temp_B2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Board_ID' type='u8' description='' 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='RxAvailable' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Humidity_B2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</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='Humidity' 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='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Setup nRF24L01' cmdcolor='3446692' cmdcolor_sec='3446692' component='nRF24L01' macro='Initialise' />
						<command class_type='call' title='Set nRF24L01 TX Mode' cmdcolor='3446692' cmdcolor_sec='3446692' component='nRF24L01' macro='SetRxMode' >
							<argument exp='0x11' />
							<argument exp='0x11' />
							<argument exp='0x11' />
							<argument exp='0x11' />
							<argument exp='0x11' />
						</command>
						<command class_type='call' title='Setup LCD' cmdcolor='3446692' cmdcolor_sec='3446692' component='lcd_4x20' macro='Start' />
						<command class_type='delay' title='Delay' cmdcolor='3486869' cmdcolor_sec='3486869' exp='100' type='1' />
						<command class_type='call' title='' cmdcolor='3446692' cmdcolor_sec='3446692' component='lcd_4x20' macro='Clear' />
						<command class_type='loop' title='Loop' cmdcolor='3442081' cmdcolor_sec='3442081' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='Check For Signal From Remote Sensors' cmdcolor='3446692' cmdcolor_sec='3446692' component='nRF24L01' macro='CheckRX' >
									<return exp='RxAvailable' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='3424919' cmdcolor_sec='3424919' exp='RxAvailable = 1' swap='0' >
									<flowline >
										<command class_type='call' title='Read Fifo Buffer' cmdcolor='3446692' cmdcolor_sec='3446692' component='nRF24L01' macro='ReadRxFifo' >
											<argument exp='32' />
										</command>
										<command class_type='call' title='Read Board ID' cmdcolor='3446692' cmdcolor_sec='3446692' component='nRF24L01' macro='ReadRxByte' >
											<return exp='Board_ID' />
											<argument exp='0' />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='3424919' cmdcolor_sec='3424919' exp='Board_ID = 1' swap='0' >
											<flowline >
												<command class_type='call' title='Read Sensor 1 Temperature' cmdcolor='3446692' cmdcolor_sec='3446692' component='nRF24L01' macro='ReadRxByte' >
													<return exp='Temp' />
													<argument exp='1' />
												</command>
												<command class_type='call' title='Read Sensor 1 Humidity' cmdcolor='3446692' cmdcolor_sec='3446692' component='nRF24L01' macro='ReadRxByte' >
													<return exp='Humidity' />
													<argument exp='2' />
												</command>
												<command class_type='comment' title='' comment='Board 1' textarea='12,0,12,0' cmdcolor='5416530' cmdcolor_sec='5416530' />
												<command class_type='call' title='' cmdcolor='3446692' cmdcolor_sec='3446692' component='lcd_4x20' macro='Cursor' >
													<argument exp='0' />
													<argument exp='0' />
												</command>
												<command class_type='call' title='' cmdcolor='3446692' cmdcolor_sec='3446692' component='lcd_4x20' macro='PrintString' >
													<argument exp='&quot;Sensor_ID &quot;' />
												</command>
												<command class_type='call' title='' cmdcolor='3446692' cmdcolor_sec='3446692' component='lcd_4x20' macro='PrintNumber' >
													<argument exp='Board_ID' />
												</command>
												<command class_type='call' title='' cmdcolor='3446692' cmdcolor_sec='3446692' component='lcd_4x20' macro='Cursor' >
													<argument exp='0' />
													<argument exp='1' />
												</command>
												<command class_type='call' title='Display Sensor 1 Temperature' cmdcolor='3446692' cmdcolor_sec='3446692' component='lcd_4x20' macro='PrintString' >
													<argument exp='&quot;Temp &quot;' />
												</command>
												<command class_type='call' title='' cmdcolor='3446692' cmdcolor_sec='3446692' component='lcd_4x20' macro='PrintNumber' >
													<argument exp='Temp' />
												</command>
												<command class_type='call' title='' cmdcolor='3446692' cmdcolor_sec='3446692' component='lcd_4x20' macro='PrintAscii' >
													<argument exp='178' />
												</command>
												<command class_type='call' title='' cmdcolor='3446692' cmdcolor_sec='3446692' component='lcd_4x20' macro='PrintString' >
													<argument exp='&quot;C&quot;' />
												</command>
												<command class_type='call' title='Display Sensor 1 Humidity' cmdcolor='3446692' cmdcolor_sec='3446692' component='lcd_4x20' macro='Cursor' >
													<argument exp='10' />
													<argument exp='1' />
												</command>
												<command class_type='call' title='' cmdcolor='3446692' cmdcolor_sec='3446692' component='lcd_4x20' macro='PrintString' >
													<argument exp='&quot;Hum &quot;' />
												</command>
												<command class_type='call' title='' cmdcolor='3446692' cmdcolor_sec='3446692' component='lcd_4x20' macro='PrintNumber' >
													<argument exp='Humidity' />
												</command>
												<command class_type='call' title='' cmdcolor='3446692' cmdcolor_sec='3446692' component='lcd_4x20' macro='PrintString' >
													<argument exp='&quot;%RH&quot;' />
												</command>
											</flowline>
											<flowline >
												<command class_type='comment' title='' comment='Sensor 2' textarea='12,0,12,0' cmdcolor='5416530' cmdcolor_sec='5416530' />
												<command class_type='call' title='Read Sensor 2 Temperature' cmdcolor='3446692' cmdcolor_sec='3446692' component='nRF24L01' macro='ReadRxByte' >
													<return exp='Temp_B2' />
													<argument exp='1' />
												</command>
												<command class_type='call' title='Read Sensor 2 Humidity' cmdcolor='3446692' cmdcolor_sec='3446692' component='nRF24L01' macro='ReadRxByte' >
													<return exp='Humidity_B2' />
													<argument exp='2' />
												</command>
												<command class_type='comment' title='' comment='Board 2' textarea='12,0,12,0' cmdcolor='5416530' cmdcolor_sec='5416530' />
												<command class_type='call' title='Display Sensor 2 On LCD Line 2' cmdcolor='3446692' cmdcolor_sec='3446692' component='lcd_4x20' macro='Cursor' >
													<argument exp='0' />
													<argument exp='2' />
												</command>
												<command class_type='call' title='' cmdcolor='3446692' cmdcolor_sec='3446692' component='lcd_4x20' macro='PrintString' >
													<argument exp='&quot;Sensor_ID &quot;' />
												</command>
												<command class_type='call' title='' cmdcolor='3446692' cmdcolor_sec='3446692' component='lcd_4x20' macro='PrintNumber' >
													<argument exp='Board_ID' />
												</command>
												<command class_type='call' title='Display Sensor 2 Temperature' cmdcolor='3446692' cmdcolor_sec='3446692' component='lcd_4x20' macro='Cursor' >
													<argument exp='0' />
													<argument exp='3' />
												</command>
												<command class_type='call' title='' cmdcolor='3446692' cmdcolor_sec='3446692' component='lcd_4x20' macro='PrintString' >
													<argument exp='&quot;Temp &quot;' />
												</command>
												<command class_type='call' title='' cmdcolor='3446692' cmdcolor_sec='3446692' component='lcd_4x20' macro='PrintNumber' >
													<argument exp='Temp_B2' />
												</command>
												<command class_type='call' title='' cmdcolor='3446692' cmdcolor_sec='3446692' component='lcd_4x20' macro='PrintAscii' >
													<argument exp='178' />
												</command>
												<command class_type='call' title='' cmdcolor='3446692' cmdcolor_sec='3446692' component='lcd_4x20' macro='PrintString' >
													<argument exp='&quot;C&quot;' />
												</command>
												<command class_type='call' title='Display Sensor 2 Humidity' cmdcolor='3446692' cmdcolor_sec='3446692' component='lcd_4x20' macro='Cursor' >
													<argument exp='10' />
													<argument exp='3' />
												</command>
												<command class_type='call' title='' cmdcolor='3446692' cmdcolor_sec='3446692' component='lcd_4x20' macro='PrintString' >
													<argument exp='&quot;Hum &quot;' />
												</command>
												<command class_type='call' title='' cmdcolor='3446692' cmdcolor_sec='3446692' component='lcd_4x20' macro='PrintNumber' >
													<argument exp='Humidity_B2' />
												</command>
												<command class_type='call' title='' cmdcolor='3446692' cmdcolor_sec='3446692' component='lcd_4x20' macro='PrintString' >
													<argument exp='&quot;%RH&quot;' />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='delay' title='Delay' cmdcolor='3486869' cmdcolor_sec='3486869' exp='1' type='2' />
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='882b6951-9944-48cc-8989-6ebd3d91956f' vmin='1' vmaj='1' codename='nRF24L01' x='0' y='0' z='0.755' xsz='60' ysz='26' zsz='1.51' 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='RFChannel' data='76' />
					<value target='Channel' data='001' />
					<value target='PR_SCALE' data='128' />
					<value target='mosi_pin' data='$PORTC.5' />
					<value target='miso_pin' data='$PORTC.4' />
					<value target='sck_pin' data='$PORTC.3' />
					<value target='ce_pin' data='$PORTC.2' />
					<value target='csn_pin' data='$PORTC.7' />
					<value target='MosiRemap' data='013' />
					<value target='MisoRemap' data='064' />
					<value target='ClkRemap' data='008' />
					<value target='label' data='nRF24L01' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='a2b40602-5421-4e2f-ba82-96db1be51d69' vmin='1' vmaj='1' codename='lcd_4x20' x='0' y='40' 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='1' 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>
	</components>
	<keymap />
	<panel2d shadows='0' 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='0' brightness='0' perspective='0' >
		<background rgb='8404224' 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---------------------wUAAAAYAAAAiAIAAEkCAAA' zoom='75' scrollx='523' scrolly='1320' flags='0' />
	</layout>
</document>
</root>
