<root>
<document schema='101' license='1,30day_15266180,BX7U4Q' title='' description='' target='PIC.18F.ECIO-40' >
	<config data='!0,ffffffff!8,ffffffff!10,ffffffff!18,ffffffff!20,ffffffff!28,ffffffff!30,ffffffff!38,ffffffff!40,ffffffff!48,ffffffff!50,ffffffff!58,ffffffff!60,ffffffff!68,ffffffff' clkspd='48000000' simspd='4' usewdt='0' constif='0' />
	<plugins >
		<dll_dbg_icd enabled='0' >
			<data name='debug' value='1' />
			<data name='userpins' value='0' />
			<data name='speed' value='1000' />
			<data name='usev9' value='0' />
			<data name='breaks' value='8' />
			<data name='stacks' value='8' />
			<data name='clkport' value='1' />
			<data name='clkbit' value='6' />
			<data name='dataport' value='1' />
			<data name='databit' value='7' />
			<data name='monitor' value='1' />
			<data name='ictloop' value='1' />
			<data name='ictrate' value='1000' />
			<data name='ictmask' 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='Refresh.ColVal' />
		<watch expr='Refresh.Colour' />
		<watch expr='Refresh.LEDIndex' />
		<watch expr='Refresh.BitIndex' />
	</debug>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='b24d79ed-14b5-47d5-878b-280a37a36c5b' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='0' iconpath='' />
		<component class_type='root' codename='panel' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
			<resources />
			<properties >
				<property name='NeoDataPin' target='NeoDataPin' typeid='5' hidden='0' locked='0' info='' />
			</properties>
			<values >
				<value target='NeoDataPin' data='$PORTC.7' />
			</values>
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='Mode' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Count' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Speed' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='bitcount' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='RingColours' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' >
						<array size='3' />
						<array size='3' />
					</def>
				</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='CurrentColours' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' >
						<array size='3' />
						<array size='3' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='RGB' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='3' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='RefreshFlag' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ScopeStreamHandle' type='h32' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='LEDData' type='u8' description='The LED pixel data' isconst='0' isinit='0' usrinit='0' setinit='' >
						<array size='8' />
						<array size='3' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Trigger' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='true' type='b1' description='' isconst='1' isinit='1' usrinit='1' setinit='1' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='ScopeView' description='View Pin C7 on Scope' >
						<command class_type='sim' title='Simulation' macro='Scope.AddGroup' >
							<return exp='ScopeGroupHandle' />
							<argument exp='&quot;Test Group&quot;' />
						</command>
						<command class_type='sim' title='Simulation' macro='Scope.AddStream' >
							<return exp='ScopeStreamHandle' />
							<argument exp='ScopeGroupHandle' />
							<argument exp='&quot;Stream1&quot;' />
						</command>
						<command class_type='sim' title='Simulation' macro='Scope.AddPort' >
							<argument exp='ScopeStreamHandle' />
							<argument exp='2' />
							<argument exp='0b10000000' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='sim' title='Simulation' macro='Scope.AddOp' >
							<argument exp='ScopeStreamHandle' />
							<argument exp='::Scope.Op_Scale' />
							<argument exp='0' />
						</command>
						<command class_type='sim' title='Simulation' macro='System.ShowHandle' >
							<argument exp='ScopeStreamHandle' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Refresh' description='' >
						<local name='ColVal' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Colour' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='BitIndex' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='LEDIndex' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='loop' title='Loop 8 times, Change this value to match the number of LEDs ' type='2' exp='8' >
							<flowline >
								<command class_type='comment' title='' comment='.Colour is a loop counter
Loop is fixed at 3 times.' textarea='12,0,12,0' />
								<command class_type='loop' title='Loop once for each Colour.  G,R or B' type='2' forvar='.Colour' exp='3' >
									<flowline >
										<command class_type='calculation' title='Calculation' ccode='// Calculation
// Calculation:
//  //Assigns the value associated with a Given R,G or B LED of a specific pixel
//  .ColVal = LEDData[.LEDIndex][.Colour]
FCL_COLVAL = FCV_LEDDATA[FCL_LEDINDEX][FCL_COLOUR];
' >
											<exp exp='//Assigns the value associated with a Given R,G or B LED of a specific pixel' />
											<exp exp='' />
											<exp exp='.ColVal = LEDData[.LEDIndex][.Colour]' />
										</command>
										<command class_type='native' title='C Code' ccode='Int count;
for(count=0; count&lt;=8; count++)
	{
	latc = 0x80;
   	if(FCL_COLVAL&amp;0x80)
		{
		asm { Nop };
		latc = 0x00; 
		} //Close IF
	else
		{
		asm { Nop Nop Nop};
		latc = 0x00;
		} //Close Else	
	FCL_COLVAL&lt;&lt;=1   //Bitshift Byte for next time around loop
	} //Close For Loop' language='C' />
									</flowline>
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='//step through each Pixel' />
									<exp exp='' />
									<exp exp='.LEDIndex = .LEDIndex + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='NeoDataPin = 1' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='NeoDataPin = 0' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='RefreshFlag = 1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<local name='index' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='call' title='Call Macro' macro='ScopeView' />
						<command class_type='loop' title='Loop' type='0' exp='1' >
							<flowline >
								<command class_type='calculation' title='Manually Entered LED Test data for each Pixel.' >
									<exp exp='//LED 0' />
									<exp exp='LEDData[0][0] = 240 //Grn' />
									<exp exp='LEDData[0][1] = 0 //Red' />
									<exp exp='LEDData[0][2] = 0 //Blu' />
									<exp exp='//LED 1' />
									<exp exp='LEDData[1][0] = 0' />
									<exp exp='LEDData[1][1] = 128' />
									<exp exp='LEDData[1][2] = 0' />
									<exp exp='//LED 2' />
									<exp exp='LEDData[2][0] = 0' />
									<exp exp='LEDData[2][1] = 0' />
									<exp exp='LEDData[2][2] = 128' />
									<exp exp='//LED 3' />
									<exp exp='LEDData[3][0] = 128' />
									<exp exp='LEDData[3][1] = 0' />
									<exp exp='LEDData[3][2] = 0' />
									<exp exp='//LED 4' />
									<exp exp='LEDData[4][0] = 128' />
									<exp exp='LEDData[4][1] = 0' />
									<exp exp='LEDData[4][2] = 0' />
									<exp exp='//LED 5' />
									<exp exp='LEDData[5][0] = 0' />
									<exp exp='LEDData[5][1] = 128' />
									<exp exp='LEDData[5][2] = 0' />
									<exp exp='//LED 6' />
									<exp exp='LEDData[6][0] = 0' />
									<exp exp='LEDData[6][1] = 0' />
									<exp exp='LEDData[6][2] = 128' />
									<exp exp='//LED 7' />
									<exp exp='LEDData[7][0] = 128' />
									<exp exp='LEDData[7][1] = 0' />
									<exp exp='LEDData[7][2] = 0' />
								</command>
								<command class_type='call' title='Call Macro' macro='Refresh' />
								<command class_type='delay' title='Delay' exp='500' type='1' />
								<command class_type='call' title='Call Component Macro' ccode='// Call Component Macro
// Call Component Macro: One_Wire1::TransmitByte(0xff)
FCD_0bbd1_One_Wire1__TransmitByte(0xff);
' component='One_Wire1' macro='TransmitByte' >
									<argument exp='0xff' />
								</command>
								<command class_type='call' title='Call Macro' macro='' />
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='64b26b13-68cf-4a92-8616-e882b7c71023' vmin='552' vmaj='16' codename='One_Wire1' x='-24' y='56' z='0.755' xsz='60' ysz='26' zsz='1.51' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='oo_pin' data='$PORTB.2' />
					<value target='crc_en' data='0' />
					<value target='label' data='1-Wire' />
					<value target='Injector' data='000' />
					<value target='InjectorHandle' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='5767167' 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='1' >
		<background rgb='8388608' img='' style='5' />
		<table rgb='12632064' img='' style='0' size='0' />
		<camera xe='-0.95532' ye='-4.8565' ze='414.804' xt='-0.95532' yt='-4.8565' zt='62.872' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel3d>
	<layout >
		<view type='0' name='Refresh' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAgwMAAE4CAAA' zoom='70' scrollx='0' scrolly='211' flags='0' />
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAgwMAAE4CAAA' zoom='75' scrollx='0' scrolly='100' flags='0' />
		<view type='0' name='ScopeView' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAgwMAAE4CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
