<root>
<document schema='101' license='1,Default Flowcode Name,EA6R55' title='' description='' target='PIC.16F.16F1938' >
	<config data='!0,fe4!10,1633%0,4%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='3200000' 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 >
		<watch expr='Time' />
		<watch expr='HM' />
		<watch expr='count' />
		<watch expr='Tens' />
		<watch expr='VM' />
		<watch expr='V_count' />
		<watch expr='V_Tens' />
		<watch expr='Add_Home' />
		<watch expr='Add_Visitor' />
		<watch expr='Alarm' />
		<watch expr='Alarm_Count' />
		<watch expr='RCV' />
		<watch expr='Seg' />
		<watch expr='INTRO' />
		<watch expr='RX_Byte' />
		<watch expr='New_Data' />
	</debug>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='Misc' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='0' iconpath='' />
		<component class_type='root' codename='panel' x='0' y='65' z='0' xsz='1' ysz='1' zsz='1' xang='-25' yang='0' zang='0' xquat='-0.21644' yquat='0' zquat='0' wquat='0.976296' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
			<resources />
			<properties />
			<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='Alarm_Count' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Data_Ready' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Byte6' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Team_Score' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Spring' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Subtract' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Reset' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Byte5' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='MPB' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='count' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Byte4' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='SetPitch' type='u8' description='Tally of HH &amp; VM' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='SeasonPlus' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Byte3' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CommandFeedback' type='u8' description='Feedback Req = 1, Feedback not required = 0' isconst='0' isinit='1' usrinit='1' setinit='0x1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Add_Home' type='u8' description='Add for Home Count' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Byte2' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='End' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='V_Tens' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Ack' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Address' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Byte1' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Stop' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Byte0' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Delay10' type='u8' description='' isconst='0' isinit='1' usrinit='10' setinit='10' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Status' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ChecksumHighByte' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='VersionInfo' type='u8' description='' isconst='0' isinit='1' usrinit='255' setinit='0xFF' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='MISC' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Duty' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Sel_Away' 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='ScopeGroupHandle' type='h32' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='V10' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Guest' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Checksum' type='u32' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Alarm1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Reach' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Play' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Carrier' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='H_UNIT' type='u8' description='Add to count' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Loop1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PC' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='hmORvm' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Seg' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='RCV' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TX_Byte' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Zero' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Parameter1HighByte' type='u8' description='' isconst='0' isinit='1' usrinit='3710' setinit='0xe7e' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Return' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Data' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Home' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Commands' type='u8' description='Play/Pause etc' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='DivSelect' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Add_Visitor' type='u8' description='Visitor Add' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Runtime' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Tens' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Summer' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Sel_Home' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='New_VM' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Team_Pitch' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='MOQ' type='T8' description='' isconst='0' isinit='1' usrinit='&quot;25&quot;' setinit='&quot;25&quot;' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ResetScore' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='StopVM' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='First_Run' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='V_count' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='number' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='New_HM' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='X' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Season' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Dummy_read' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='DF' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='StopHM' type='u8' description='Stop HM pitch count to play only 1' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='NumberOfBytes' type='u8' description='' isconst='0' isinit='1' usrinit='6' setinit='0x06' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Div' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='H2_Down' type='u8' description='Reset Count' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='INTRO' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='VS' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TMRO_Tick' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='New_Data' type='b1' description='Detect incoming signal' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='H10' type='u8' description='Subtrack count' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='H_Tens' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Sel_H' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Bantam' type='u8' description='Bantam Alarm' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='seconds' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='V_UNIT' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Sel_G' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Program' type='u8' description='To program Box' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='H0_Down' type='u8' description='Add to count' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='GO' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Mosquito' type='u8' description='Mosquito Alarm' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ChecksumLowByte' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Min_Count' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='HS' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Away_Sel' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Ox5A' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Max_Count' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='VM' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Parameter2LowByte' type='u8' description='' isconst='0' isinit='1' usrinit='255' setinit='0xff' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Direction' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='RX_Byte4' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Home_Sel' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Update' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='IntAddress' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='RX_Byte3' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PeeWee' type='u8' description='Pee Wee Alarm' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Stop3' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='SummerSel' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Switch_Pressed' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Byte9' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='RX_Byte2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Stop2' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='HM' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Alarm' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Byte8' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='DIFF' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='RX_Byte1' type='u8' 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>
				<variable public='0' >
					<def class_type='variable' name='Time' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='V2_Down' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='RcvVal' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='RX_Byte' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Byte7' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ChangeTeam' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Initialize_nRF905' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='This can be the same for both nRF905 devices, other than the device addresses
' textarea='12,0,12,0' />
						<command class_type='comment' title='' comment='CS High' textarea='12,0,12,0' />
						<command class_type='output' title='Output CS' mode='1' port='1048578' mask='2' exp='1' />
						<command class_type='comment' title='' comment='PWR_UP high
Set correct pin' textarea='12,0,12,0' />
						<command class_type='comment' title='' comment='March 2019 - New PWR UP --- RA7 from RC6' textarea='12,0,12,0' />
						<command class_type='output' title='Output PWR UP' mode='1' port='1048576' mask='128' exp='1' />
						<command class_type='comment' title='' comment='TX_EN low = receive mode

Set to correct pin' textarea='12,0,12,0' />
						<command class_type='output' title='Output TX EN' mode='1' port='1048578' mask='4' exp='0' />
						<command class_type='comment' title='' comment='TRX_CE low


Set to correct pin' textarea='12,0,12,0' />
						<command class_type='output' title='Output CE' mode='1' port='1048578' mask='128' exp='0' />
						<command class_type='comment' title='' comment='CS' textarea='12,0,12,0' />
						<command class_type='output' title='Output CS' mode='1' port='1048578' mask='2' exp='0' />
						<command class_type='delay' title='Delay' exp='10' type='0' />
						<command class_type='comment' title='' comment='Write to config register starting at byte 0
see p 24 for byte sequence' textarea='12,0,12,0' />
						<command class_type='call' title='Call Component Macro' component='SPI_Master2' macro='SendChar' >
							<argument exp='0x00' />
						</command>
						<command class_type='delay' title='Delay' exp='10' type='0' />
						<command class_type='comment' title='' comment='Channel # 107 = 433.1 MHz ' textarea='12,0,12,0' />
						<command class_type='call' title='Call Component Macro' component='SPI_Master2' macro='SendChar' >
							<argument exp='0x6B' />
						</command>
						<command class_type='comment' title='' comment='Sets AUTO_RETRAN, RX_RED_PWR, PA_PWR, HFREQ_PLL, and bit 9 of channel#' textarea='12,0,12,0' />
						<command class_type='call' title='Call Component Macro' component='SPI_Master2' macro='SendChar' >
							<argument exp='0xC' />
						</command>
						<command class_type='comment' title='' comment='Set TX and RX adress widths to 4 bytes' textarea='12,0,12,0' />
						<command class_type='call' title='Call Component Macro' component='SPI_Master2' macro='SendChar' >
							<argument exp='0x44' />
						</command>
						<command class_type='comment' title='' comment='Set RX payload width to 4 bytes 
(set size as required)' textarea='12,0,12,0' />
						<command class_type='call' title='Call Component Macro' component='SPI_Master2' macro='SendChar' >
							<argument exp='0x04' />
						</command>
						<command class_type='comment' title='' comment='Set TX payload width to 4 bytes 
(set size as required)' textarea='12,0,12,0' />
						<command class_type='call' title='Call Component Macro' component='SPI_Master2' macro='SendChar' >
							<argument exp='0x04' />
						</command>
						<command class_type='comment' title='' comment='Choose a unique address for each device' textarea='12,0,12,0' />
						<command class_type='comment' title='' comment='Set RX address byte 0' textarea='12,0,12,0' />
						<command class_type='call' title='Call Component Macro' component='SPI_Master2' macro='SendChar' >
							<argument exp='0x8D' />
						</command>
						<command class_type='comment' title='' comment='Set RX address byte 1' textarea='12,0,12,0' />
						<command class_type='call' title='Call Component Macro' component='SPI_Master2' macro='SendChar' >
							<argument exp='0x6C' />
						</command>
						<command class_type='comment' title='' comment='Set RX address byte 2' textarea='12,0,12,0' />
						<command class_type='call' title='Call Component Macro' component='SPI_Master2' macro='SendChar' >
							<argument exp='0xA3' />
						</command>
						<command class_type='comment' title='' comment='Set RX address byte 3' textarea='12,0,12,0' />
						<command class_type='call' title='Call Component Macro' component='SPI_Master2' macro='SendChar' >
							<argument exp='0x4B' />
						</command>
						<command class_type='comment' title='' comment='Set the CRC_MODE(bit 7), CRC_EN(bit 6), XOF[bits 5-3 set according to freq of external resonator], UP_CLK_EN(bit 2), UP_CLK_FREQ[bits 1-0]
 In this configuration, we are doing CRC enable for 8 CRC check bit, 16MHz crystal freq,
and output clock disable' textarea='12,0,12,0' />
						<command class_type='comment' title='' comment='0x24 = CRC disabled
0x58 = CRC enabled' textarea='12,0,12,0' />
						<command class_type='call' title='Call Component Macro' component='SPI_Master2' macro='SendChar' >
							<argument exp='0x58' />
						</command>
						<command class_type='comment' title='' comment='CS' textarea='12,0,12,0' />
						<command class_type='output' title='Output CS' mode='1' port='1048578' mask='2' exp='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='RF_RX_Data' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='TRX_CE low

Set to correct pin' textarea='12,0,12,0' />
						<command class_type='output' title='Output CE' mode='1' port='1048578' mask='128' exp='0' />
						<command class_type='delay' title='Delay' exp='1' type='1' />
						<command class_type='comment' title='' comment='Read RX Data' textarea='12,0,12,0' />
						<command class_type='comment' title='' comment='CS' textarea='12,0,12,0' />
						<command class_type='output' title='Output CS' mode='1' port='1048578' mask='2' exp='0' />
						<command class_type='delay' title='Delay' exp='10' type='0' />
						<command class_type='comment' title='' comment='Read data from nRF905' textarea='12,0,12,0' />
						<command class_type='comment' title='' comment='Read RX payload instruction' textarea='12,0,12,0' />
						<command class_type='call' title='Call Component Macro' component='SPI_Master2' macro='SendChar' >
							<argument exp='0x24' />
						</command>
						<command class_type='delay' title='Delay' exp='10' type='0' />
						<command class_type='comment' title='' comment='clock out the data' textarea='12,0,12,0' />
						<command class_type='call' title='Call Component Macro' component='SPI_Master2' macro='GetChar' >
							<return exp='RX_Byte' />
						</command>
						<command class_type='delay' title='Delay' exp='10' type='0' />
						<command class_type='call' title='Call Component Macro' component='SPI_Master2' macro='GetChar' >
							<return exp='RX_Byte1' />
						</command>
						<command class_type='delay' title='Delay' exp='10' type='0' />
						<command class_type='call' title='Call Component Macro' component='SPI_Master2' macro='GetChar' >
							<return exp='RX_Byte2' />
						</command>
						<command class_type='delay' title='Delay' exp='10' type='0' />
						<command class_type='call' title='Call Component Macro' component='SPI_Master2' macro='GetChar' >
							<return exp='RX_Byte3' />
						</command>
						<command class_type='comment' title='' comment='CS' textarea='12,0,12,0' />
						<command class_type='output' title='Output CS' mode='1' port='1048578' mask='2' exp='1' />
						<command class_type='comment' title='' comment='TRX_CE Hi to re-enable RX

Set to correct pin' textarea='12,0,12,0' />
						<command class_type='output' title='Output CE' mode='1' port='1048578' mask='128' exp='1' />
						<command class_type='comment' title='' comment='This is ONLY for testing the RX Byte' textarea='12,0,12,0' />
						<command class_type='decision' title='Decision' exp='RX_Byte3 = 130' swap='0' >
							<flowline >
								<command class_type='comment' title='' comment='Home Select' textarea='12,0,12,0' />
								<command class_type='calculation' title='Calculation' >
									<exp exp='Sel_H = RX_Byte3' />
								</command>
								<command class_type='delay' title='Delay' exp='1' type='1' />
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' exp='RX_Byte3 = 136' swap='0' >
							<flowline >
								<command class_type='comment' title='' comment='Away Select' textarea='12,0,12,0' />
								<command class_type='calculation' title='Calculation' >
									<exp exp='Sel_G = RX_Byte3' />
								</command>
								<command class_type='decision' title='Decision' exp='ChangeTeam = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='Guest = 0' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='Guest = 1' />
										</command>
									</flowline>
								</command>
								<command class_type='delay' title='Delay' exp='1' type='1' />
							</flowline>
							<flowline />
						</command>
						<command class_type='delay' title='Delay' exp='200' type='1' />
						<command class_type='decision' title='Decision' exp='Program &gt; 3' swap='0' >
							<flowline >
								<command class_type='call' title='Call Macro' macro='START' />
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Call Macro' macro='New_Count' />
					</flowline>
				</macro>
				<macro >
					<flowline name='One_Second' description='Ine Second Led Flasher Test' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='loop' title='Loop' type='0' exp='1' >
							<flowline >
								<command class_type='output' title='Output' mode='1' port='1048576' mask='2' exp='1' />
								<command class_type='delay' title='Delay' exp='1' type='2' />
								<command class_type='output' title='Output' mode='1' port='1048576' mask='2' exp='0' />
								<command class_type='delay' title='Delay' exp='1' type='2' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='New_Count' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='Disable - RX_Byte 2 settings' textarea='12,0,12,0' />
						<command class_type='calculation' title='Calculation' disable='1' >
							<exp exp='RX_Byte1 = 6' />
						</command>
						<command class_type='calculation' title='Calculation' disable='1' >
							<exp exp='RX_Byte = 135' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='Alarm = 0' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='Team_Pitch = RX_Byte &gt;&gt; 7' />
						</command>
						<command class_type='comment' title='' comment='RX_Byte = HM &amp; VM' textarea='12,0,12,0' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='PC = RX_Byte1 &amp; 0x7F' />
						</command>
						<command class_type='comment' title='' comment='RX-Byte 1 = PC &amp; Home &amp; Away' textarea='12,0,12,0' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='Team_Score = RX_Byte2 &gt;&gt; 7' />
						</command>
						<command class_type='comment' title='' comment='RX-Byte2 = Score Values' textarea='12,0,12,0' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='Season = RX_Byte3 &amp; 0x7F' />
						</command>
						<command class_type='comment' title='' comment='RX=Byte3 = Season' textarea='12,0,12,0' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='Div = RX_Byte' />
						</command>
						<command class_type='decision' title='Decision' exp='Team_Score = 0' swap='1' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='HS = RX_Byte2 &amp; 0x7F' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='VS = RX_Byte2' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' exp='Team_Pitch = 0' swap='1' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='HM = RX_Byte &amp; 0x7F' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='RCV = HM' />
								</command>
							</flowline>
							<flowline >
								<command class_type='comment' title='' comment='VM = RX_Byte &amp; 0x7F' textarea='12,0,12,0' />
								<command class_type='calculation' title='Calculation' >
									<exp exp='VM = RX_Byte' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='Season = 7' />
						</command>
						<command class_type='delay' title='Delay' exp='5' type='2' />
						<command class_type='calculation' title='Calculation' disable='1' >
							<exp exp='VM = 7' />
							<exp exp='HM = 25' />
							<exp exp='HS = 9' />
							<exp exp='VS = 8' />
							<exp exp='Season = 7' />
							<exp exp='Season = 2' />
						</command>
						<command class_type='calculation' title='Calculation' disable='1' >
							<exp exp='PC = 35' />
							<exp exp='PeeWee = 1' />
							<exp exp='Spring = 1' />
							<exp exp='StopHM = 0' />
						</command>
						<command class_type='delay' title='Delay' exp='5' type='1' />
						<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='ClearDisplay' />
						<command class_type='switch' title='Switch' textarea='56,200,56,200' exp='Season' >
							<case >
								<flowline />
							</case>
							<case exp='7' >
								<flowline >
									<command class_type='comment' title='' comment='Spring Season' textarea='12,0,12,0' />
									<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='Print' >
										<argument exp='&quot;Season Selection&quot;' />
										<argument exp='15' />
										<argument exp='15' />
										<argument exp='0' />
										<argument exp='5' />
									</command>
									<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='Print' >
										<argument exp='&quot;Spring&quot;' />
										<argument exp='42' />
										<argument exp='30' />
										<argument exp='0' />
										<argument exp='5' />
									</command>
									<command class_type='delay' title='Delay' exp='1' type='1' />
									<command class_type='delay' title='Delay' exp='2' type='2' />
									<command class_type='delay' title='Delay' exp='4' type='2' />
									<command class_type='calculation' title='Calculation' >
										<exp exp='Spring = 1' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='Summer = 0' />
										<exp exp='Program = 1' />
									</command>
									<command class_type='delay' title='Delay' exp='1' type='1' />
								</flowline>
							</case>
							<case exp='9' >
								<flowline >
									<command class_type='comment' title='' comment='Summer Selection' textarea='12,0,12,0' />
									<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='Print' >
										<argument exp='&quot;Season Selection&quot;' />
										<argument exp='15' />
										<argument exp='15' />
										<argument exp='0' />
										<argument exp='5' />
									</command>
									<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='Print' >
										<argument exp='&quot;Summer&quot;' />
										<argument exp='42' />
										<argument exp='30' />
										<argument exp='0' />
										<argument exp='5' />
									</command>
									<command class_type='delay' title='Delay' exp='1' type='1' />
									<command class_type='delay' title='Delay' exp='2' type='2' />
									<command class_type='calculation' title='Calculation' >
										<exp exp='Summer = 1' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='Spring = 0' />
										<exp exp='Program = 1' />
									</command>
									<command class_type='delay' title='Delay' exp='1' type='1' />
									<command class_type='delay' title='Delay' exp='1' type='1' />
								</flowline>
							</case>
							<case exp='44' >
								<flowline >
									<command class_type='comment' title='' comment='Mosquito' textarea='12,0,12,0' />
									<command class_type='calculation' title='Calculation' >
										<exp exp='MPB = 1' />
									</command>
									<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='Print' >
										<argument exp='&quot;Pitch Count Set&quot;' />
										<argument exp='17' />
										<argument exp='15' />
										<argument exp='0' />
										<argument exp='5' />
									</command>
									<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='Print' >
										<argument exp='&quot;Mosquito&quot;' />
										<argument exp='42' />
										<argument exp='30' />
										<argument exp='0' />
										<argument exp='5' />
									</command>
									<command class_type='delay' title='Delay' exp='1' type='1' />
									<command class_type='delay' title='Delay' exp='2' type='2' />
									<command class_type='calculation' title='Calculation' >
										<exp exp='Mosquito = 1' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='HM = 0' />
										<exp exp='VM = 0' />
										<exp exp='HS = 0' />
										<exp exp='VS = 0' />
									</command>
									<command class_type='delay' title='Delay' exp='1' type='1' />
								</flowline>
							</case>
							<case exp='5' >
								<flowline >
									<command class_type='comment' title='' comment='13 = Pee Wee selected' textarea='12,0,12,0' />
									<command class_type='calculation' title='Calculation' >
										<exp exp='PeeWee = 1' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='Mosquito = 0' />
									</command>
									<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='Print' >
										<argument exp='&quot;Pitch Count Set&quot;' />
										<argument exp='17' />
										<argument exp='15' />
										<argument exp='0' />
										<argument exp='5' />
									</command>
									<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='Print' >
										<argument exp='&quot;Pee Wee&quot;' />
										<argument exp='42' />
										<argument exp='30' />
										<argument exp='0' />
										<argument exp='5' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='MPB = 2' />
									</command>
									<command class_type='delay' title='Delay' exp='1' type='1' />
									<command class_type='delay' title='Delay' exp='1' type='1' />
									<command class_type='calculation' title='Calculation' >
										<exp exp='HM = 0' />
										<exp exp='VM = 0' />
										<exp exp='HS = 0' />
										<exp exp='VS = 0' />
										<exp exp='PC = 0' />
									</command>
									<command class_type='delay' title='Delay' exp='1' type='2' />
								</flowline>
							</case>
							<case exp='6' >
								<flowline >
									<command class_type='comment' title='' comment='Bantam' textarea='12,0,12,0' />
									<command class_type='calculation' title='Calculation' >
										<exp exp='Bantam = 1' />
									</command>
									<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='Print' >
										<argument exp='&quot;Pitch Count Set&quot;' />
										<argument exp='17' />
										<argument exp='15' />
										<argument exp='0' />
										<argument exp='5' />
									</command>
									<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='Print' >
										<argument exp='&quot;Bantam&quot;' />
										<argument exp='42' />
										<argument exp='30' />
										<argument exp='0' />
										<argument exp='5' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='MPB = 3' />
									</command>
									<command class_type='delay' title='Delay' exp='1' type='1' />
									<command class_type='calculation' title='Calculation' >
										<exp exp='HM = 0' />
										<exp exp='VM = 0' />
										<exp exp='HS = 0' />
										<exp exp='VS = 0' />
										<exp exp='' />
									</command>
									<command class_type='delay' title='Delay' exp='1' type='1' />
									<command class_type='delay' title='Delay' exp='1' type='2' />
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='comment' title='' comment='Home Team' textarea='12,0,12,0' />
									<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='Print' >
										<argument exp='&quot;Home Team&quot;' />
										<argument exp='30' />
										<argument exp='15' />
										<argument exp='0' />
										<argument exp='5' />
									</command>
									<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='Print' >
										<argument exp='&quot;Selected&quot;' />
										<argument exp='30' />
										<argument exp='27' />
										<argument exp='0' />
										<argument exp='5' />
									</command>
									<command class_type='delay' title='Delay' exp='5' type='2' />
									<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='ClearDisplay' />
									<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='Print' >
										<argument exp='&quot;Team Module&quot;' />
										<argument exp='30' />
										<argument exp='15' />
										<argument exp='0' />
										<argument exp='5' />
									</command>
									<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='Print' >
										<argument exp='&quot;Program Completed&quot;' />
										<argument exp='18' />
										<argument exp='32' />
										<argument exp='0' />
										<argument exp='5' />
									</command>
									<command class_type='delay' title='Delay' exp='2' type='2' />
									<command class_type='delay' title='Delay' exp='1' type='2' />
									<command class_type='calculation' title='Calculation' >
										<exp exp='Sel_Home = 1' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='Season = 0' />
										<exp exp='' />
									</command>
									<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='ClearDisplay' />
								</flowline>
							</case>
							<case exp='8' >
								<flowline >
									<command class_type='comment' title='' comment='Away Team' textarea='12,0,12,0' />
									<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='Print' >
										<argument exp='&quot;Away Team&quot;' />
										<argument exp='30' />
										<argument exp='15' />
										<argument exp='0' />
										<argument exp='5' />
									</command>
									<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='Print' >
										<argument exp='&quot;Selected&quot;' />
										<argument exp='30' />
										<argument exp='27' />
										<argument exp='0' />
										<argument exp='5' />
									</command>
									<command class_type='delay' title='Delay' exp='5' type='2' />
									<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='ClearDisplay' />
									<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='Print' >
										<argument exp='&quot;Team Module&quot;' />
										<argument exp='30' />
										<argument exp='15' />
										<argument exp='0' />
										<argument exp='5' />
									</command>
									<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='Print' >
										<argument exp='&quot;Program Completed&quot;' />
										<argument exp='18' />
										<argument exp='32' />
										<argument exp='0' />
										<argument exp='5' />
									</command>
									<command class_type='delay' title='Delay' exp='2' type='2' />
									<command class_type='calculation' title='Calculation' >
										<exp exp='Sel_Away = 1' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='Season = 0' />
										<exp exp='' />
									</command>
									<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='ClearDisplay' />
								</flowline>
							</case>
							<case exp='0' >
								<flowline >
									<command class_type='calculation' title='Calculation' >
										<exp exp='Season = 0' />
									</command>
									<command class_type='delay' title='Delay' exp='1' type='1' />
								</flowline>
							</case>
						</command>
						<command class_type='call' title='Call Macro' macro='OLED_Display' />
						<command class_type='comment' title='' comment='Add code here to update displays' textarea='12,0,12,0' />
					</flowline>
				</macro>
				<macro >
					<flowline name='SendBytes' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='Checksum = VersionInfo + NumberOfBytes + Commands + CommandFeedback + Parameter1HighByte + Parameter2LowByte' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='Checksum = 0 - Checksum' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='ChecksumLowByte = Checksum &amp; 0xFF' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='ChecksumHighByte = (Checksum &amp; 0xFF00) &gt;&gt; 8' />
						</command>
						<command class_type='call' title='Call Component Macro' component='UART1' macro='SendChar' >
							<argument exp='0x7E' />
						</command>
						<command class_type='call' title='Call Component Macro' component='UART1' macro='SendChar' >
							<argument exp='VersionInfo' />
						</command>
						<command class_type='call' title='Call Component Macro' component='UART1' macro='SendChar' >
							<argument exp='NumberOfBytes' />
						</command>
						<command class_type='call' title='Call Component Macro' component='UART1' macro='SendChar' >
							<argument exp='Commands' />
						</command>
						<command class_type='call' title='Call Component Macro' component='UART1' macro='SendChar' >
							<argument exp='CommandFeedback' />
						</command>
						<command class_type='call' title='Call Component Macro' component='UART1' macro='SendChar' >
							<argument exp='Parameter1HighByte' />
						</command>
						<command class_type='call' title='Call Component Macro' component='UART1' macro='SendChar' >
							<argument exp='Parameter2LowByte' />
						</command>
						<command class_type='call' title='Call Component Macro' component='UART1' macro='SendChar' >
							<argument exp='ChecksumHighByte' />
						</command>
						<command class_type='call' title='Call Component Macro' component='UART1' macro='SendChar' >
							<argument exp='ChecksumLowByte' />
						</command>
						<command class_type='call' title='Call Component Macro' component='UART1' macro='SendChar' >
							<argument exp='0xEF' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='OLED_Display' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Call Component Macro' component='' macro='' />
						<command class_type='label' title='Connection Point' labelid='0' labelname='A' />
						<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='ClearDisplay' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='HM = 15' />
							<exp exp='VM = 26' />
							<exp exp='HS = 45' />
							<exp exp='VS = 9' />
							<exp exp='PC = 26' />
							<exp exp='Sel_Away = 1' />
						</command>
						<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='DrawLine' >
							<argument exp='1' />
							<argument exp='10' />
							<argument exp='127' />
							<argument exp='10' />
						</command>
						<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='Print' >
							<argument exp='&quot;Pitch Count&quot;' />
							<argument exp='40' />
							<argument exp='1' />
							<argument exp='0' />
							<argument exp='5' />
						</command>
						<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='Print' >
							<argument exp='&quot;Home=&quot;' />
							<argument exp='10' />
							<argument exp='15' />
							<argument exp='0' />
							<argument exp='5' />
						</command>
						<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='PrintNumber' >
							<argument exp='HM' />
							<argument exp='40' />
							<argument exp='15' />
							<argument exp='0' />
							<argument exp='5' />
						</command>
						<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='Print' >
							<argument exp='&quot;Away=&quot;' />
							<argument exp='60' />
							<argument exp='15' />
							<argument exp='0' />
							<argument exp='5' />
						</command>
						<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='PrintNumber' >
							<argument exp='VM' />
							<argument exp='90' />
							<argument exp='15' />
							<argument exp='0' />
							<argument exp='5' />
						</command>
						<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='DrawLine' >
							<argument exp='1' />
							<argument exp='28' />
							<argument exp='127' />
							<argument exp='28' />
						</command>
						<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='Print' >
							<argument exp='&quot;Score&quot;' />
							<argument exp='42' />
							<argument exp='31' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='DrawLine' >
							<argument exp='1' />
							<argument exp='40' />
							<argument exp='127' />
							<argument exp='40' />
						</command>
						<command class_type='comment' title='' comment='Guest' textarea='12,0,12,0' disable='1' />
						<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='Print' >
							<argument exp='&quot;Home=&quot;' />
							<argument exp='10' />
							<argument exp='44' />
							<argument exp='0' />
							<argument exp='5' />
						</command>
						<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='PrintNumber' >
							<argument exp='HS' />
							<argument exp='41' />
							<argument exp='44' />
							<argument exp='0' />
							<argument exp='5' />
						</command>
						<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='Print' >
							<argument exp='&quot;Away=&quot;' />
							<argument exp='60' />
							<argument exp='44' />
							<argument exp='0' />
							<argument exp='5' />
						</command>
						<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='PrintNumber' >
							<argument exp='VS' />
							<argument exp='90' />
							<argument exp='44' />
							<argument exp='0' />
							<argument exp='5' />
						</command>
						<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='DrawLine' >
							<argument exp='1' />
							<argument exp='55' />
							<argument exp='127' />
							<argument exp='55' />
						</command>
						<command class_type='switch' title='Switch' textarea='36,105,36,105' exp='MPB' >
							<case >
								<flowline />
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='calculation' title='Calculation' >
										<exp exp='Mosquito = 1' />
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='calculation' title='Calculation' >
										<exp exp='PeeWee = 1' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='Mosquito = 0' />
									</command>
								</flowline>
							</case>
							<case exp='3' >
								<flowline >
									<command class_type='calculation' title='Calculation' >
										<exp exp='Bantam = 1' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='PeeWee = 0' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='Mosquito = 0' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='delay' title='Delay' exp='1' type='1' />
						<command class_type='decision' title='Decision' textarea='36,120,36,120' exp='Sel_Away = 1' swap='0' >
							<flowline >
								<command class_type='comment' title='' comment='Print &quot;+&quot;' textarea='12,0,12,0' />
								<command class_type='calculation' title='Calculation' >
									<exp exp='DIFF = (VS - HS)' />
								</command>
								<command class_type='decision' title='Decision' exp='Diff &gt; 9' swap='0' >
									<flowline >
										<command class_type='comment' title='' comment='Pirint - &quot;-&quot;' textarea='12,0,12,0' />
										<command class_type='calculation' title='Calculation' >
											<exp exp='DIFF = (HS - VS)' />
										</command>
										<command class_type='decision' title='Decision' exp='DIFF &gt; 9' swap='0' >
											<flowline >
												<command class_type='comment' title='' comment='Print &quot; * &quot;' textarea='12,0,12,0' />
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='comment' title='' comment='Print (DIFF)' textarea='12,0,12,0' />
							</flowline>
							<flowline >
								<command class_type='comment' title='' comment='OLD = If Guest=1' textarea='12,0,12,0' />
								<command class_type='comment' title='' comment='Print &quot;+&quot;' textarea='12,0,12,0' />
								<command class_type='calculation' title='Calculation' >
									<exp exp='DIFF = (HS - VS)' />
								</command>
								<command class_type='decision' title='Decision' exp='Diff &gt; 9' swap='0' >
									<flowline >
										<command class_type='comment' title='' comment='Pirint - &quot;-&quot;' textarea='12,0,12,0' />
										<command class_type='calculation' title='Calculation' >
											<exp exp='DIFF = (VS - HS)' />
										</command>
										<command class_type='decision' title='Decision' exp='DIFF &gt; 9' swap='0' >
											<flowline >
												<command class_type='comment' title='' comment='Print &quot; * &quot;' textarea='12,0,12,0' />
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='comment' title='' comment='Print (DIFF)' textarea='12,0,12,0' />
							</flowline>
						</command>
						<command class_type='delay' title='Delay' exp='1' type='1' />
						<command class_type='decision' title='Decision' textarea='36,200,36,200' exp='HM = 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='StopHM = 0' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' exp='VM = 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='StopVM = 0' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='delay' title='Delay' exp='500' type='1' />
						<command class_type='decision' title='Decision' textarea='96,200,96,200' exp='Sel_Home = 1' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' exp='PC &gt; HM' swap='0' >
									<flowline >
										<command class_type='delay' title='Delay' exp='1' type='1' />
										<command class_type='comment' title='' comment='Print Clear
Print - &quot;X&quot;' textarea='12,0,12,0' />
										<command class_type='delay' title='Delay' exp='1' type='1' />
									</flowline>
									<flowline />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' textarea='96,200,96,200' exp='Sel_Away = 1' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' exp='PC &gt; HM' swap='0' >
									<flowline >
										<command class_type='delay' title='Delay' exp='1' type='1' />
										<command class_type='comment' title='' comment='Print Clear
Print - &quot;X&quot;' textarea='12,0,12,0' />
										<command class_type='delay' title='Delay' exp='1' type='1' />
									</flowline>
									<flowline />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' exp='PC &gt; 1' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' exp='Stop3 = 0' swap='0' >
									<flowline >
										<command class_type='decision' title='Decision' exp='Sel_Home = 1' swap='0' >
											<flowline >
												<command class_type='decision' title='Decision' exp='HM = PC' swap='0' >
													<flowline >
														<command class_type='delay' title='Delay' exp='2' type='2' />
														<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='DrawRectangle' >
															<argument exp='1' />
															<argument exp='58' />
															<argument exp='90' />
															<argument exp='79' />
															<argument exp='0' />
															<argument exp='0' />
														</command>
														<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='Print' >
															<argument exp='&quot;Home Pitcher&quot;' />
															<argument exp='5' />
															<argument exp='60' />
															<argument exp='0' />
															<argument exp='5' />
														</command>
														<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='Print' >
															<argument exp='&quot;Pitch Count=&quot;' />
															<argument exp='5' />
															<argument exp='70' />
															<argument exp='0' />
															<argument exp='5' />
														</command>
														<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='PrintNumber' >
															<argument exp='PC' />
															<argument exp='77' />
															<argument exp='70' />
															<argument exp='0' />
															<argument exp='5' />
														</command>
														<command class_type='call' title='Call Macro' macro='Alarm' />
														<command class_type='delay' title='Delay' exp='10' type='2' />
														<command class_type='calculation' title='Calculation' >
															<exp exp='Stop3 = 1' />
														</command>
														<command class_type='goto' title='Goto Connection Point' labelid='0' labelname='' />
													</flowline>
													<flowline />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' textarea='500,60,500,60' exp='Sel_Away = 1' swap='0' >
											<flowline >
												<command class_type='decision' title='Decision' exp='VM = PC' swap='0' >
													<flowline >
														<command class_type='delay' title='Delay' exp='1' type='1' />
														<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='DrawRectangle' >
															<argument exp='15' />
															<argument exp='58' />
															<argument exp='115' />
															<argument exp='79' />
															<argument exp='0' />
															<argument exp='0' />
														</command>
														<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='Print' >
															<argument exp='&quot;Away Pitcher&quot;' />
															<argument exp='20' />
															<argument exp='60' />
															<argument exp='0' />
															<argument exp='5' />
														</command>
														<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='Print' >
															<argument exp='&quot;Pitch Count=&quot;' />
															<argument exp='20' />
															<argument exp='70' />
															<argument exp='0' />
															<argument exp='5' />
														</command>
														<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='PrintNumber' >
															<argument exp='PC' />
															<argument exp='95' />
															<argument exp='70' />
															<argument exp='0' />
															<argument exp='5' />
														</command>
														<command class_type='call' title='Call Macro' macro='Alarm' />
														<command class_type='delay' title='Delay' exp='10' type='2' />
														<command class_type='calculation' title='Calculation' >
															<exp exp='Stop3 = 1' />
														</command>
														<command class_type='goto' title='Goto Connection Point' labelid='0' labelname='' />
													</flowline>
													<flowline >
														<command class_type='comment' title='' comment='Comment' textarea='12,0,12,0' />
														<command class_type='delay' title='Delay' exp='1' type='1' />
													</flowline>
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline >
										<command class_type='decision' title='Decision' exp='HM &gt; PC' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='Stop3 = 0' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' exp='VM &gt; PC' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='Stop3 = 0' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='output' title='Output' mode='1' port='1048576' mask='4' exp='0' />
						<command class_type='delay' title='Delay' exp='1' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='tmr_service' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='loop' title='Loop' type='0' exp='Time &lt; 30' >
							<flowline >
								<command class_type='decision' title='Decision' exp='Time &lt; 100' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='Time = Time + 1' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='Time = 0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Check_Status' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='CS' textarea='12,0,12,0' />
						<command class_type='output' title='Output CS' mode='1' port='1048578' mask='2' exp='0' />
						<command class_type='delay' title='Delay' exp='10' type='1' />
						<command class_type='call' title='Call Component Macro' component='SPI_Master2' macro='GetChar' >
							<return exp='Status' />
						</command>
						<command class_type='delay' title='Delay' exp='10' type='1' />
						<command class_type='output' title='Output CS' mode='1' port='1048578' mask='2' exp='1' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='Data_Ready = Status AND 0x20' />
							<exp exp='Data_Ready = Data_Ready &gt;&gt; 5' />
							<exp exp='New_Data = Data_Ready' />
							<exp exp='' />
							<exp exp='Address = Status &gt;&gt; 7' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Read_Config' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='TRX_CE low

' textarea='12,0,12,0' />
						<command class_type='output' title='Output CE' mode='1' port='1048578' mask='128' exp='0' />
						<command class_type='comment' title='' comment='CS' textarea='12,0,12,0' />
						<command class_type='output' title='Output CS' mode='1' port='1048578' mask='2' exp='0' />
						<command class_type='comment' title='' comment='Read config from nRF905' textarea='12,0,12,0' />
						<command class_type='comment' title='' comment='Read config instruction- starting at byte 0


' textarea='12,0,12,0' />
						<command class_type='call' title='Call Component Macro' component='SPI_Master2' macro='SendChar' >
							<argument exp='0x10' />
						</command>
						<command class_type='comment' title='' comment='clock out the data' textarea='12,0,12,0' />
						<command class_type='call' title='Call Component Macro' component='SPI_Master2' macro='GetChar' >
							<return exp='Byte0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='SPI_Master2' macro='GetChar' >
							<return exp='Byte1' />
						</command>
						<command class_type='call' title='Call Component Macro' component='SPI_Master2' macro='GetChar' >
							<return exp='Byte2' />
						</command>
						<command class_type='call' title='Call Component Macro' component='SPI_Master2' macro='GetChar' >
							<return exp='Byte3' />
						</command>
						<command class_type='call' title='Call Component Macro' component='SPI_Master2' macro='GetChar' >
							<return exp='Byte4' />
						</command>
						<command class_type='call' title='Call Component Macro' component='SPI_Master2' macro='GetChar' >
							<return exp='Byte5' />
						</command>
						<command class_type='call' title='Call Component Macro' component='SPI_Master2' macro='GetChar' >
							<return exp='Byte6' />
						</command>
						<command class_type='call' title='Call Component Macro' component='SPI_Master2' macro='GetChar' >
							<return exp='Byte7' />
						</command>
						<command class_type='call' title='Call Component Macro' component='SPI_Master2' macro='GetChar' >
							<return exp='Byte8' />
						</command>
						<command class_type='call' title='Call Component Macro' component='SPI_Master2' macro='GetChar' >
							<return exp='Byte9' />
						</command>
						<command class_type='call' title='Call Component Macro' component='SPI_Master2' macro='GetChar' >
							<return exp='Dummy_read' />
						</command>
						<command class_type='call' title='Call Component Macro' component='SPI_Master2' macro='GetChar' >
							<return exp='Dummy_read' />
						</command>
						<command class_type='comment' title='' comment='CS' textarea='12,0,12,0' />
						<command class_type='output' title='Output CS' mode='1' port='1048578' mask='2' exp='1' />
						<command class_type='comment' title='' comment='TRX_CE Hi to re-enable RX

Set to correct pin' textarea='12,0,12,0' />
						<command class_type='output' title='Output CE' mode='1' port='1048578' mask='128' exp='1' />
						<command class_type='delay' title='Delay' exp='1' type='0' />
					</flowline>
				</macro>
				<macro >
					<flowline name='START' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='Max_Count = 0' />
							<exp exp='Min_Count = 1' />
							<exp exp='count = 0' />
							<exp exp='H_Tens = 0' />
							<exp exp='V_count = 0' />
							<exp exp='V_Tens = 0' />
							<exp exp='RcvVal = 0' />
							<exp exp='Alarm = 0' />
							<exp exp='Alarm_Count = 0' />
							<exp exp='INTRO = 0' />
							<exp exp='Loop1 = 0' />
							<exp exp='Home = 0' />
							<exp exp='X = 0' />
							<exp exp='V_UNIT = 0' />
							<exp exp='V10 = 0' />
							<exp exp='H_UNIT = 0' />
							<exp exp='H_Tens = 0' />
							<exp exp='HS = 0' />
							<exp exp='VS = 0' />
							<exp exp='VM = 0' />
							<exp exp='HM = 0' />
							<exp exp='GO = 0' />
							<exp exp='ChangeTeam = 0' />
							<exp exp='PC = 0' />
							<exp exp='End = 0' />
							<exp exp='Sel_Away = 0' />
							<exp exp='Sel_Home = 0' />
							<exp exp='Season = 0' />
							<exp exp='StopHM = 0' />
							<exp exp='StopVM = 0' />
							<exp exp='Reach = 0' />
							<exp exp='Program = 0' />
							<exp exp='' />
						</command>
						<command class_type='delay' title='Delay' exp='3' type='1' />
						<command class_type='comment' title='' comment='Testing LED' textarea='12,0,12,0' />
						<command class_type='output' title='Output' mode='1' port='1048576' mask='2' exp='0' />
						<command class_type='decision' title='Decision' exp='Program = 1' swap='0' >
							<flowline >
								<command class_type='comment' title='' comment='Comment' textarea='12,0,12,0' />
								<command class_type='call' title='Call Macro' macro='OLED_Display' />
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Buzzer' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Decision' exp='Alarm = 0' swap='0' >
							<flowline >
								<command class_type='loop' title='Loop' type='2' exp='8' >
									<flowline >
										<command class_type='delay' title='Delay' exp='2' type='1' />
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='Alarm_Count = 1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Visitor_Switches' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='delay' title='Delay' exp='5' type='0' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='V_UNIT = VM' />
						</command>
						<command class_type='delay' title='Delay' exp='1' type='0' />
						<command class_type='call' title='Call Macro' macro='OLED_Display' />
						<command class_type='delay' title='Delay' exp='1' type='0' />
					</flowline>
				</macro>
				<macro >
					<flowline name='RF_RX_Enable' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='TRX_CE high


Set to correct pin' textarea='12,0,12,0' />
						<command class_type='output' title='Output CE' mode='1' port='1048578' mask='128' exp='1' />
						<command class_type='delay' title='Delay' exp='1' type='0' />
					</flowline>
				</macro>
				<macro >
					<flowline name='PWM_Alarm' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='delay' title='Delay' exp='50' type='1' />
						<command class_type='loop' title='Loop' type='2' exp='10' >
							<flowline >
								<command class_type='delay' title='Delay' exp='20' type='1' />
							</flowline>
						</command>
						<command class_type='delay' title='Delay' exp='20' type='1' />
						<command class_type='delay' title='Delay' exp='1' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='When Building HEX file
Disable Under Mail Macro
Address=1
New Data = 1' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='native' title='C Code' textarea='36,0,511,300' ccode='osccon=0xf0;
//iocbp=0Xff;' language='C' />
						<command class_type='calculation' title='Initialise count values' textarea='436,67,436,188' >
							<exp exp='Button = 0' />
							<exp exp='Time = 0' />
							<exp exp='TMRO_Tick = 0' />
							<exp exp='seconds = 0' />
							<exp exp='First_Run = 0' />
							<exp exp='Runtime = 0' />
							<exp exp='Add_Home = 0' />
							<exp exp='Count = 0' />
							<exp exp='Switch_Pressed = 0' />
							<exp exp='H_UNIT = 0' />
							<exp exp='H10 = 0' />
							<exp exp='H2_Down = 0' />
							<exp exp='V_UNIT = 0' />
							<exp exp='V10 = 0' />
							<exp exp='V2_Down = 0' />
							<exp exp='VM = 0' />
							<exp exp='HM = 0' />
							<exp exp='Seg = 0' />
							<exp exp='RCV = 0' />
							<exp exp='' />
						</command>
						<command class_type='delay' title='Delay' exp='10' type='1' />
						<command class_type='comment' title='' comment='I also changed the pin for DR to A4 in the FC I just sent you, just to try a different pin. So you will have to adjust your wiring to move it from BO.' textarea='12,0,12,0' />
						<command class_type='comment' title='' comment='Open pins A4, C6, C7, D7, E0, E1, E2' textarea='12,0,12,0' />
						<command class_type='call' title='Call Component Macro' component='UART1' macro='Initialise' />
						<command class_type='output' title='Output' mode='1' port='1048576' mask='1' exp='1' />
						<command class_type='delay' title='Delay' exp='3' type='2' />
						<command class_type='output' title='Output' mode='1' port='1048576' mask='1' exp='0' />
						<command class_type='comment' title='' comment='B0 = DR' textarea='12,0,12,0' />
						<command class_type='output' title='Output' mode='1' port='1048576' mask='16' exp='0' />
						<command class_type='calculation' title='Initialise count values' textarea='423,46,423,864' >
							<exp exp='Button = 0' />
							<exp exp='Time = 0' />
							<exp exp='TMRO_Tick = 0' />
							<exp exp='seconds = 0' />
							<exp exp='First_Run = 0' />
							<exp exp='Runtime = 0' />
							<exp exp='Add_Home = 0' />
							<exp exp='Count = 0' />
							<exp exp='Switch_Pressed = 0' />
							<exp exp='H_UNIT = 0' />
							<exp exp='H10 = 0' />
							<exp exp='H2_Down = 0' />
							<exp exp='V_UNIT = 0' />
							<exp exp='V10 = 0' />
							<exp exp='V2_Down = 0' />
							<exp exp='VM = 0' />
							<exp exp='HM = 0' />
							<exp exp='Seg = 0' />
							<exp exp='RCV = 0' />
							<exp exp='Season = 0' />
							<exp exp='' />
						</command>
						<command class_type='comment' title='' comment='Use internal osc at 8 MHz with 4xPLL = 32 MHz' textarea='12,0,12,0' />
						<command class_type='comment' title='' comment='Clock Speed = 32,000,000 OLD' textarea='12,0,12,0' />
						<command class_type='comment' title='' comment='Clock Speed = 10,000,000' textarea='12,0,12,0' disable='1' />
						<command class_type='call' title='Call Component Macro' component='SPI_Master2' macro='Initialise' />
						<command class_type='interrupt' title='Enable Tmr0 Interrupts' textarea='36,0,511,300' enable='1' name='TMR0' call='timer_int' >
							<settings timer='1' prescale='64' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='------8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAA' masklo='------8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAA' >
								<option value='1' />
								<option value='0' />
								<option value='6' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='call' title='Call Macro' macro='START' />
						<command class_type='delay' title='Delay' exp='1' type='0' />
						<command class_type='delay' title='Delay' exp='3' type='0' />
						<command class_type='call' title='Call Macro' macro='Initialize_nRF905' />
						<command class_type='call' title='Call Macro' macro='RF_RX_Enable' />
						<command class_type='delay' title='Delay' exp='1' type='0' />
						<command class_type='call' title='Call Macro' macro='Read_Config' />
						<command class_type='call' title='Call Macro' macro='One_Second' />
						<command class_type='comment' title='' comment='Change team turned off for test' textarea='12,0,12,0' />
						<command class_type='output' title='Output' mode='1' port='1048576' mask='2' exp='1' />
						<command class_type='call' title='Call Component Macro' component='gLCD_SSD1351' macro='Print' >
							<argument exp='&quot;OLED Design&quot;' />
							<argument exp='40' />
							<argument exp='1' />
							<argument exp='0' />
							<argument exp='5' />
						</command>
						<command class_type='delay' title='Delay' exp='1' type='0' />
						<command class_type='loop' title='Loop' type='0' exp='1' >
							<flowline >
								<command class_type='delay' title='Delay' exp='5' type='0' />
								<command class_type='input' title='Input CD' mode='1' port='1048578' mask='1' exp='Carrier' />
								<command class_type='call' title='Call Macro' macro='Check_Status' />
								<command class_type='comment' title='' comment='Led check for Status' textarea='12,0,12,0' />
								<command class_type='comment' title='' comment='Disable &quot; Calculation&quot; Address = 1' textarea='12,0,12,0' />
								<command class_type='calculation' title='Calculation' >
									<exp exp='Address = 1' />
								</command>
								<command class_type='decision' title='Decision' ccode='// Decision
// Decision: Address = 1?
if (FCV_ADDRESS == 1)
{
' exp='Address = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='Address = 0' />
										</command>
										<command class_type='call' title='Call Macro' macro='RF_RX_Data' />
									</flowline>
									<flowline />
								</command>
								<command class_type='comment' title='' comment='DIABLE before loading  NEW DATA=1' textarea='12,0,12,0' />
								<command class_type='calculation' title='Calculation' >
									<exp exp='New_Data = 1' />
								</command>
								<command class_type='decision' title='Decision' exp='New_Data = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='New_Data = 0' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='delay' title='Delay' exp='2' type='0' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Alarm' description='RB0 -- DFPLAYER' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Decision' textarea='56,121,56,121' exp='Alarm = 0' swap='0' >
							<flowline >
								<command class_type='delay' title='Delay' exp='2' type='2' />
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='timer_int' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
							<exp exp='TMRO_Tick = TMRO_Tick + 1' />
							<exp exp='' />
						</command>
						<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='TMRO_Tick &gt;= 300' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
									<exp exp='TMRO_Tick = 0' />
									<exp exp='Seconds = Seconds + 1' />
									<exp exp='Update = 1' />
								</command>
								<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='(First_Run = 1) &amp;&amp; (Seconds &lt; 5)' swap='0' >
									<flowline />
									<flowline >
										<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
											<exp exp='First_Run = 0' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='Runtime &lt; 32766' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
											<exp exp='Runtime = Runtime + 1' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='Seg = Seg + 1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Home_Switches' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='delay' title='Delay' exp='5' type='0' />
						<command class_type='delay' title='Delay' exp='1' type='0' />
					</flowline>
				</macro>
			</macros>
			<component class_type='text' codename='label11' x='71.471' y='199.776' z='65.6756' xsz='68.6851' ysz='40' zsz='8.85871' 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='Color' data='192' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='File: Team OLED 2020' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='7fdaec78-394e-4ec9-a578-4f1a12a12076' vmin='1' vmaj='1' codename='led_5mm_clip4' x='-295.369' y='-41.9709' z='-56.3789' xsz='5.12821' ysz='-5.90032' zsz='7.00091' 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='$PORTA.1' />
					<value target='polarity' data='000' />
					<value target='on_color' data='8453975' />
					<value target='show_label' data='002' />
					<value target='label_property' data='pin' />
					<value target='label_color' data='16777215' />
					<value target='label_scale' data='1.000000' />
					<value target='label_auto_scale' data='0' />
					<value target='label_position' data='003' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='96862c4d-debc-45fa-9433-74711a4b9a3b' vmin='3' vmaj='1' codename='SPI_Master2' x='-238.676' y='-165.18' z='-58.3675' xsz='79.9998' ysz='80.0001' zsz='1.51' 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='CHANNEL' data='001' />
					<value target='PR_SCALE' data='016' />
					<value target='CKP' data='000' />
					<value target='CKE' data='001' />
					<value target='SMP' data='000' />
					<value target='MOSI' data='$PORTC.5' />
					<value target='MISO' data='$PORTC.4' />
					<value target='CLK' data='$PORTC.3' />
					<value target='MosiRemap' data='' />
					<value target='MisoRemap' data='' />
					<value target='ClkRemap' data='' />
					<value target='label' data='SPI  Master' />
					<value target='ScopeTraces' data='0' />
					<value target='ConsoleData' data='0' />
					<value target='Injector' data='000' />
					<value target='InjectorHandle' data='329' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='7fdaec78-394e-4ec9-a578-4f1a12a12076' vmin='1' vmaj='1' codename='led_5mm_clip1' x='-299.965' y='28.202' z='-23.6567' xsz='5.12821' ysz='-5.90032' zsz='7.00091' 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='$PORTB.0' />
					<value target='polarity' data='001' />
					<value target='on_color' data='16711935' />
					<value target='show_label' data='002' />
					<value target='label_property' data='pin' />
					<value target='label_color' data='16777215' />
					<value target='label_scale' data='1.000000' />
					<value target='label_auto_scale' data='0' />
					<value target='label_position' data='003' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label2' x='-221.231' y='33.526' z='-21.1741' xsz='36.8675' ysz='45' 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='Color' data='192' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='Alarm' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label3' x='-213.33' y='-38.079' z='-54.5641' xsz='31.5464' ysz='45' 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='Color' data='192' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='Led' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='c73616d1-7ad0-45d9-aada-69ccfa4c5efc' vmin='3' vmaj='1' codename='UART1' x='-335.425' y='159.528' z='37.5817' xsz='79.9998' ysz='40' zsz='1.51' 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='CHANNEL' data='001' />
					<value target='BAUD_LIST' data='004' />
					<value target='BAUD' data='9600' />
					<value target='DBITS' data='008' />
					<value target='RETURN' data='000' />
					<value target='ToutVal' data='255' />
					<value target='FLOWEN' data='000' />
					<value target='ECHO' data='000' />
					<value target='TX' data='$PORTC.6' />
					<value target='RX' data='$PORTC.7' />
					<value target='CTS' data='$PORTB.1' />
					<value target='RTS' data='$PORTB.2' />
					<value target='TXRemap' data='' />
					<value target='RXRemap' data='' />
					<value target='label' data='RS232' />
					<value target='ScopeTraces' data='0' />
					<value target='ConsoleData' data='0' />
					<value target='ConsoleColumns' data='64' />
					<value target='DataSource' data='001' />
					<value target='com_port' data='003' />
					<value target='Injector' data='000' />
					<value target='InjectorHandle' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='7fdaec78-394e-4ec9-a578-4f1a12a12076' vmin='1' vmaj='1' codename='led_5mm_clip2' x='-296.784' y='89.6017' z='4.97456' xsz='5.12821' ysz='-5.90032' zsz='7.00091' 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='$PORTA.0' />
					<value target='polarity' data='001' />
					<value target='on_color' data='49407' />
					<value target='show_label' data='002' />
					<value target='label_property' data='pin' />
					<value target='label_color' data='16777215' />
					<value target='label_scale' data='1.000000' />
					<value target='label_auto_scale' data='0' />
					<value target='label_position' data='003' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label5' x='-214.312' y='93.8097' z='6.93656' xsz='36.8675' ysz='45' 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='Color' data='192' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='Audio' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='fd1a193b-149f-4ba8-b1ce-ce39ca863975' vmin='6' vmaj='1' codename='gLCD_SSD1351' x='4.32709' y='-81.7324' z='32.6291' xsz='10.4704' ysz='10.8237' zsz='6.07137' 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='pixel_height' data='128' />
					<value target='pixel_width' data='128' />
					<value target='monochrome' data='0' />
					<value target='foreground_colour' data='0' />
					<value target='background_colour' data='16777215' />
					<value target='colour_bit_depth' data='16' />
					<value target='red_bit_depth' data='5' />
					<value target='green_bit_depth' data='6' />
					<value target='blue_bit_depth' data='5' />
					<value target='CS_pin' data='$PORTB.6' />
					<value target='RS_pin' data='$PORTB.1' />
					<value target='SD_pin' data='$PORTB.2' />
					<value target='SCK_pin' data='$PORTB.3' />
					<value target='Reset_pin' data='$PORTB.4' />
					<value target='DisplayMethod' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label1' x='25.235' y='254.031' z='88.9146' xsz='39.8908' ysz='31.1636' zsz='-1.56171' 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='Color' data='192' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='File:used:250 bytes (24.5%), free:774 bytes (75.5%), ' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<keymap />
	<panel2d shadows='0' lighting='2' 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='0' perspective='0' >
		<background rgb='13816530' img='' style='0' />
		<table rgb='16744448' img='' style='0' size='28' />
		<camera xe='0' ye='0' ze='762' 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---------------------wAAAAAUAAAAbwYAAHIDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Read_Config' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAbwYAAHIDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='One_Second' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAbwYAAHIDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='OLED_Display' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAbwYAAHIDAAA' zoom='25' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Home_Switches' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAbwYAAHIDAAA' zoom='50' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='START' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAbwYAAHIDAAA' zoom='70' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='New_Count' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAbwYAAHIDAAA' zoom='45' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='RF_RX_Data' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAbwYAAHIDAAA' zoom='50' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Check_Status' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAbwYAAHIDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Alarm' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAbwYAAHIDAAA' zoom='25' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='RF_RX_Enable' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAbwYAAHIDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Initialize_nRF905' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAbwYAAHIDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='timer_int' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAbwYAAHIDAAA' zoom='50' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Buzzer' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAbwYAAHIDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='PWM_Alarm' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAbwYAAHIDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Visitor_Switches' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAbwYAAHIDAAA' zoom='50' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SendBytes' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAbwYAAHIDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
