<root>
<document scada='0' schema='102' license='1,74110274,6ZJ7NK' title='' description='' fcversion='590080' target='PIC.18F.18F47Q10' >
	<config data='!0,ff8c!10,ffff!20,ff8f!30,ffff!40,ffff%0,4%4,0%8,1%b,1%d,1%10,1%11,1%15,1%16,3%18,3%1a,1%1b,1%1c,1%1d,1%1f,1%20,f%25,0%28,7%2b,7%30,1%31,1%32,1%33,1%38,1%39,1%3a,1%3c,1%3d,1%40,1%41,1' clkspd='64000000' simspd='1' usewdt='0' constif='0' Use3V3='0' />
	<plugins >
		<dll_models enabled='1' />
	</plugins>
	<supplement use='1' head='' body='' />
	<debug />
	<traces />
	<ghost >
		<FK2 >
			<data name='FK2D0' port='4294967295' pin='4294967295' />
			<data name='FK2D1' port='4294967295' pin='4294967295' />
			<data name='FK2D2' port='4294967295' pin='4294967295' />
			<data name='FK2D3' port='4294967295' pin='4294967295' />
			<data name='FK2D4' port='4294967295' pin='4294967295' />
			<data name='FK2D5' port='4294967295' pin='4294967295' />
			<data name='FK2D6' port='4294967295' pin='4294967295' />
			<data name='FK2D7' port='4294967295' pin='4294967295' />
			<data name='FK2D8' port='4294967295' pin='4294967295' />
			<data name='FK2D9' port='4294967295' pin='4294967295' />
			<data name='FK2D10' port='4294967295' pin='4294967295' />
			<data name='FK2D11' port='4294967295' pin='4294967295' />
			<data name='FK2D12' port='4294967295' pin='4294967295' />
			<data name='FK2D13' port='4294967295' pin='4294967295' />
			<data name='FK2D14' port='4294967295' pin='4294967295' />
			<data name='FK2D15' port='4294967295' pin='4294967295' />
			<data name='FK2A0' port='4294967295' pin='4294967295' />
			<data name='FK2A1' port='4294967295' pin='4294967295' />
			<data name='FK2A2' port='4294967295' pin='4294967295' />
			<data name='FK2A3' port='4294967295' pin='4294967295' />
			<data name='FK2A4' port='4294967295' pin='4294967295' />
			<data name='FK2A5' port='4294967295' pin='4294967295' />
		</FK2>
		<ICD >
			<data name='AnalogPrescaleValue' value='19' />
			<data name='DigitalSampleRate' value='100000' />
			<data name='BreakpointCount' value='8' />
			<data name='CallStackDepthCount' value='8' />
			<data name='ClockPort' value='1' />
			<data name='ClockPin' value='6' />
			<data name='DataPort' value='1' />
			<data name='DataPin' value='7' />
			<data name='UseDefaultPins' value='1' />
			<data name='WrapEnabled' value='1' />
			<data name='CommsDelayOverridden' value='0' />
			<data name='CommsDelay' value='3' />
			<data name='CalculatedCommsDelay' value='3' />
			<data name='AnalogEB2PrescaleValue' value='2' />
			<data name='DigitalEB2SampleRate' value='100000' />
		</ICD>
		<pins >
			<digital A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
			<analog A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
		</pins>
	</ghost>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='3d88492b-5157-4610-adc9-a5e2278dd172' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' category2='' category3='' bIs2dOnly='0' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='0' scadaCompatible='0' embeddedCompatible='1' iconpath='' />
		<gdiopts FullContainer='1' FullTransparency='1' ShowGdi='1' ShowOpengl='1' />
		<component class_type='root' codename='panel' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='0' poslock='0' comp2dType='0' >
			<resources />
			<properties />
			<values />
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='G' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='B' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='false' type='b1' description='' isconst='1' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='R' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Rand' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='true' type='b1' description='' isconst='1' isHidden='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='g_bt_AC_DI' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Main' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Call Component Macro' cmdcolor='6048783' cmdcolor_sec='6048783' cmdcolor_txt='16777215' cmdgradient='0' cmdopacity='1' component='LED_0_WS2812B' macro='Initialise' />
						<command class_type='calculation' title='Calculation' cmdcolor='4198239' cmdcolor_sec='4198239' cmdcolor_txt='16777215' cmdgradient='0' cmdopacity='1' >
							<exp exp='g_bt_AC_DI = 0' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='1336547' cmdcolor_sec='1336547' cmdcolor_txt='16777215' cmdgradient='0' cmdopacity='1' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='Component Macro' cmdcolor='6048783' cmdcolor_sec='6048783' cmdcolor_txt='16777215' cmdgradient='0' cmdopacity='1' component='AC_DI' macro='ReadAll' >
									<return exp='g_bt_AC_DI' />
								</command>
								<command class_type='decision' title='Decision' disable='1' cmdcolor='1336547' cmdcolor_sec='1336547' cmdcolor_txt='16777215' cmdgradient='0' cmdopacity='1' exp='g_bt_AC_DI &gt;= 4' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='4198239' cmdcolor_sec='4198239' cmdcolor_txt='16777215' cmdgradient='0' cmdopacity='1' >
											<exp exp='g_bt_AC_DI = 0' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='1336547' cmdcolor_sec='1336547' cmdcolor_txt='16777215' cmdgradient='0' cmdopacity='1' exp='g_bt_AC_DI' >
									<case >
										<flowline />
									</case>
									<case exp='0' >
										<flowline >
											<command class_type='calculation' title='Random Number 0-7' cmdcolor='4198239' cmdcolor_sec='4198239' cmdcolor_txt='16777215' cmdgradient='0' cmdopacity='1' >
												<exp exp='R = 255' />
												<exp exp='G = 170' />
												<exp exp='B = 00' />
											</command>
											<command class_type='call' title='Call Component Macro' cmdcolor='6048783' cmdcolor_sec='6048783' cmdcolor_txt='16777215' cmdgradient='0' cmdopacity='1' component='LED_0_WS2812B' macro='SetAllLEDColour' >
												<argument exp='R' />
												<argument exp='G' />
												<argument exp='B' />
											</command>
											<command class_type='call' title='Call Component Macro' cmdcolor='6048783' cmdcolor_sec='6048783' cmdcolor_txt='16777215' cmdgradient='0' cmdopacity='1' component='LED_0_WS2812B' macro='Refresh' />
											<command class_type='delay' title='Delay' cmdcolor='4198239' cmdcolor_sec='4198239' cmdcolor_txt='16777215' cmdgradient='0' cmdopacity='1' exp='200' type='1' />
											<command class_type='calculation' title='Random Number 0-7' cmdcolor='4198239' cmdcolor_sec='4198239' cmdcolor_txt='16777215' cmdgradient='0' cmdopacity='1' >
												<exp exp='R = 0' />
												<exp exp='G = 0' />
												<exp exp='B = 0' />
											</command>
											<command class_type='call' title='Call Component Macro' cmdcolor='6048783' cmdcolor_sec='6048783' cmdcolor_txt='16777215' cmdgradient='0' cmdopacity='1' component='LED_0_WS2812B' macro='SetAllLEDColour' >
												<argument exp='R' />
												<argument exp='G' />
												<argument exp='B' />
											</command>
											<command class_type='call' title='Call Component Macro' cmdcolor='6048783' cmdcolor_sec='6048783' cmdcolor_txt='16777215' cmdgradient='0' cmdopacity='1' component='LED_0_WS2812B' macro='Refresh' />
											<command class_type='delay' title='Delay' cmdcolor='4198239' cmdcolor_sec='4198239' cmdcolor_txt='16777215' cmdgradient='0' cmdopacity='1' exp='200' type='1' />
										</flowline>
									</case>
									<case exp='1' >
										<flowline >
											<command class_type='calculation' title='Random Number 0-7' cmdcolor='4198239' cmdcolor_sec='4198239' cmdcolor_txt='16777215' cmdgradient='0' cmdopacity='1' >
												<exp exp='R = 255' />
												<exp exp='G = 170' />
												<exp exp='B = 00' />
											</command>
											<command class_type='call' title='Call Component Macro' cmdcolor='6048783' cmdcolor_sec='6048783' cmdcolor_txt='16777215' cmdgradient='0' cmdopacity='1' component='LED_0_WS2812B' macro='SetAllLEDColour' >
												<argument exp='R' />
												<argument exp='G' />
												<argument exp='B' />
											</command>
											<command class_type='call' title='Call Component Macro' cmdcolor='6048783' cmdcolor_sec='6048783' cmdcolor_txt='16777215' cmdgradient='0' cmdopacity='1' component='LED_0_WS2812B' macro='Refresh' />
											<command class_type='delay' title='Delay' cmdcolor='4198239' cmdcolor_sec='4198239' cmdcolor_txt='16777215' cmdgradient='0' cmdopacity='1' exp='10' type='1' />
										</flowline>
									</case>
									<case exp='2' >
										<flowline >
											<command class_type='calculation' title='Random Number 0-7' cmdcolor='4198239' cmdcolor_sec='4198239' cmdcolor_txt='16777215' cmdgradient='0' cmdopacity='1' >
												<exp exp='R = 0' />
												<exp exp='G = 255' />
												<exp exp='B = 0' />
											</command>
											<command class_type='call' title='Call Component Macro' cmdcolor='6048783' cmdcolor_sec='6048783' cmdcolor_txt='16777215' cmdgradient='0' cmdopacity='1' component='LED_0_WS2812B' macro='SetAllLEDColour' >
												<argument exp='R' />
												<argument exp='G' />
												<argument exp='B' />
											</command>
											<command class_type='call' title='Call Component Macro' cmdcolor='6048783' cmdcolor_sec='6048783' cmdcolor_txt='16777215' cmdgradient='0' cmdopacity='1' component='LED_0_WS2812B' macro='Refresh' />
											<command class_type='delay' title='Delay' cmdcolor='4198239' cmdcolor_sec='4198239' cmdcolor_txt='16777215' cmdgradient='0' cmdopacity='1' exp='10' type='1' />
										</flowline>
									</case>
									<case exp='3' >
										<flowline >
											<command class_type='calculation' title='Random Number 0-7' cmdcolor='4198239' cmdcolor_sec='4198239' cmdcolor_txt='16777215' cmdgradient='0' cmdopacity='1' >
												<exp exp='R = 255' />
												<exp exp='G = 0' />
												<exp exp='B = 0' />
											</command>
											<command class_type='call' title='Call Component Macro' cmdcolor='6048783' cmdcolor_sec='6048783' cmdcolor_txt='16777215' cmdgradient='0' cmdopacity='1' component='LED_0_WS2812B' macro='SetAllLEDColour' >
												<argument exp='R' />
												<argument exp='G' />
												<argument exp='B' />
											</command>
											<command class_type='call' title='Call Component Macro' cmdcolor='6048783' cmdcolor_sec='6048783' cmdcolor_txt='16777215' cmdgradient='0' cmdopacity='1' component='LED_0_WS2812B' macro='Refresh' />
											<command class_type='delay' title='Delay' cmdcolor='4198239' cmdcolor_sec='4198239' cmdcolor_txt='16777215' cmdgradient='0' cmdopacity='1' exp='10' type='1' />
										</flowline>
									</case>
								</command>
								<command class_type='calculation' title='Calculation' disable='1' cmdcolor='4198239' cmdcolor_sec='4198239' cmdcolor_txt='16777215' cmdgradient='0' cmdopacity='1' >
									<exp exp='g_bt_AC_DI = + +g_bt_AC_DI' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='d977c3ef-c7dc-4683-a1be-76e17e6ba12b' vmin='5' vmaj='1' codename='LED_0_WS2812B' x='-0.503535' y='39.8767' z='188.952' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='LED_Controller' data='005' />
					<value target='DataOrder' data='001' />
					<value target='Reset_Time' data='12.500000' />
					<value target='T0H' data='0.100000' />
					<value target='T0L' data='0.212500' />
					<value target='T1H' data='0.200000' />
					<value target='T1L' data='0.112500' />
					<value target='T0HNops' data='2' />
					<value target='T0LNops' data='13' />
					<value target='T1HNops' data='12' />
					<value target='T1LNops' data='7' />
					<value target='DeviceFamily' data='PIC' />
					<value target='InstRate' data='180000000' />
					<value target='Direct' data='1' />
					<value target='T0HN' data='100.000000' />
					<value target='T0LN' data='212.500000' />
					<value target='T1HN' data='200.000000' />
					<value target='T1LN' data='112.500000' />
					<value target='LED_Arrangement' data='000' />
					<value target='LED_Count' data='15' />
					<value target='sequence' data='000' />
					<value target='LED_Cols' data='8' />
					<value target='x_spacing' data='10.000000' />
					<value target='LED_Rows' data='1' />
					<value target='y_spacing' data='10.000000' />
					<value target='LED_Layers' data='3' />
					<value target='z_spacing' data='10.000000' />
					<value target='FlipX' data='0' />
					<value target='FlipY' data='' />
					<value target='FlipZ' data='0' />
					<value target='MOSI' data='$PORTA.0' />
					<value target='Instance' data='1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='1911d96c-78dd-414a-b23c-6691fb19f63f' vmin='2' vmaj='1' codename='AutoVersionID1' x='20' y='90' z='-0.5' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='BuildNumber' data='58' />
					<value target='DateDivider' data='/' />
					<value target='TimeDivider' data=':' />
					<value target='DateFormat' data='000' />
					<value target='LastBuildDate' data='10/06/21' />
					<value target='LastBuildTime' data='15:07:05' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='446d753f-a6dc-489d-b624-f4f191783aa0' vmin='2' vmaj='1' codename='auto_labels1' x='-35.8414' y='92.445' z='75.1493' xsz='1.5' ysz='1.5' zsz='1.5' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='show' data='001' />
					<value target='show_prop' data='pin' />
					<value target='show_conn' data='1' />
					<value target='auto_update' data='1' />
					<value target='auto_target' data='1' />
					<value target='color' data='16777215' />
					<value target='bg_color' data='-1' />
					<value target='on_top' data='1' />
					<value target='scale' data='1.000000' />
					<value target='auto_scale' data='0' />
					<value target='auto_offset' data='003' />
					<value target='offset_x' data='0.000000' />
					<value target='offset_y' data='0.000000' />
					<value target='offset_z' data='0.000000' />
					<value target='nesting' data='000' />
					<value target='color_n1' data='16771561' />
					<value target='color_n2' data='16760992' />
					<value target='color_n3' data='16744535' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='208101fb-f735-4e83-980b-c1d2b4be28ff' vmin='0' vmaj='2' codename='AC_DI' x='0' y='-30' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='1' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='count' data='002' />
					<value target='port' data='011' />
					<value target='PortByte' data='$PORTB0' />
					<value target='pin0' data='$PORTA.4' />
					<value target='pin1' data='$PORTA.5' />
					<value target='pin2' data='$PORTB0.2' />
					<value target='pin3' data='$PORTB0.3' />
					<value target='pin4' data='$PORTB0.4' />
					<value target='pin5' data='$PORTB0.5' />
					<value target='pin6' data='$PORTB0.6' />
					<value target='pin7' data='$PORTB0.7' />
					<value target='polarity' data='001' />
					<value target='debounce' data='1' />
					<value target='operation' data='000' />
					<value target='align' data='000' />
					<value target='spacing' data='12.000000' />
					<value target='reverse' data='0' />
					<value target='show_labels' data='004' />
					<value target='label_color' data='16777215' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<scadaresourcelookup />
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='25' >
		<background rgb='0' img='' style='0' />
		<camera xe='8.54858' ye='34.7844' ze='207.631' xt='8.54858' yt='34.7844' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<viewport dx='497' dy='1505' zoom='289.634' fix_topleft='0' />
		<page x='1000' y='1000' show='0' rgb='7360576' />
	</panel2d>
	<panel3d shadows='2' lighting='2' brightness='128' perspective='1' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='8388736' img='' style='0' size='50' />
		<camera xe='-20.0697' ye='4.41215' ze='111.047' xt='-20.0697' yt='4.41215' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey0 xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey1 xe='-3.67394e-14' ye='0' ze='-300' xt='0' yt='0' zt='0' xquat='0' yquat='1' zquat='0' wquat='6.12323e-17' />
		<camerakey2 xe='0' ye='-300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.707107' yquat='0' zquat='0' wquat='0.707107' />
		<camerakey3 xe='-3.67394e-14' ye='300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-4.32978e-17' yquat='0.707107' zquat='0.707107' wquat='4.32978e-17' />
		<camerakey4 xe='-300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='0.5' zquat='0.5' wquat='0.5' />
		<camerakey5 xe='300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='-0.5' zquat='-0.5' wquat='0.5' />
		<camerakey6 xe='-173.205' ye='-173.205' ze='173.205' xt='0' yt='0' zt='0' xquat='-0.424708' yquat='0.17592' zquat='0.339851' wquat='0.820473' />
	</panel3d>
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAagoAAD8GAAA' zoom='38' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
