<root>
<document schema='101' license=',Dev User,MDYD7H' title='' description='' guid='6c1c21df-2d5c-4a24-9d7e-af7500b3d4a0' target='PIC.16F.16F877A' >
	<config data='!0,3f72%0,2%2,0%3,0%6,1%7,0%9,3%b,1%8,1%d,1' clkspd='19660800' simspd='1' usewdt='0' constif='0' />
	<plugins >
		<dll_dbg_icd enabled='0' >
			<data name='debug' value='1' />
			<data name='userpins' value='0' />
			<data name='speed' value='1000' />
			<data name='firmware' value='0000000000000000' />
			<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_dbg_ict enabled='0' >
			<data name='speed' value='1000' />
			<data name='firmware' value='0000000000000000' />
			<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='userpins' value='0' />
		</dll_dbg_ict>
		<dll_models enabled='1' />
		<dll_upgrader enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug />
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='6c1c21df-2d5c-4a24-9d7e-af7500b3d4a0' vmin='0' vmaj='1' visiblename='Simple gLCD example' description='A simple demonstration of a simulation gLCD
' category='Outputs' dynamic='0' iconpath='' />
		<component class_type='root' codename='simple_glcd' 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' >
			<resources />
			<properties />
			<values />
			<events >
				<event class='Simulation' event='Start' target='Ev_Start' />
			</events>
			<apis >
				<api name='DrawLine' alt='DrawLine_Sim' type='1' proto='1' />
			</apis>
			<variables >
				<variable public='0' >
					<def class_type='variable' name='false' type='b1' array='0' description='' isconst='1' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='true' type='b1' array='0' description='' isconst='1' isinit='1' usrinit='1' setinit='1' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='DrawLine' description='Draws a line on the 4D screen' >
						<param name='X0' type='s16' array='0' description='Coordinates of line' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y0' type='s16' array='0' description='Coordinates of line' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='X1' type='s16' array='0' description='Coordinates of line' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='s16' array='0' description='Coordinates of line' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='comment' title='' comment='Add code to send to the screen here' ccode='' textshow='1' textmode='0' textarea='239,31,239,31' break='0' mark='0' disable='0' hide='0' customize='0' />
					</flowline>
				</macro>
				<macro >
					<flowline name='DrawLine_Sim' description='Code to draw the line in simulation' >
						<param name='X0' type='s16' array='0' description='Coordinates of line' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y0' type='s16' array='0' description='Coordinates of line' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='X1' type='s16' array='0' description='Coordinates of line' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='s16' array='0' description='Coordinates of line' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='comment' title='' comment='A simulation alternative to a macro must have
the same parameters and return type

This draws a line on the screen in simulation
Note the screen must be created first!

For this see the Ev_Initialise macro
' ccode='' textshow='1' textmode='0' textarea='345,91,345,91' break='0' mark='0' disable='0' hide='0' customize='0' />
						<command class_type='sim' title='Start sending all graphics ops to &apos;screen&apos;' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' macro='Panel.Graphics.DrawBegin' >
							<argument exp='screen' />
						</command>
						<command class_type='sim' title='Set the colour to draw in to black (0, 0, 0)' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' macro='Panel.Graphics.SetColorRGB' >
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='sim' title='Draw a line' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' macro='Panel.Graphics.DrawLineA' >
							<argument exp='.X0' />
							<argument exp='.Y0' />
							<argument exp='.X1' />
							<argument exp='.Y1' />
						</command>
						<command class_type='sim' title='Stop simulation' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' macro='Panel.Graphics.DrawEnd' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Ev_Start' description='Broadcast to all components that simulation is starting' >
						<return name='Return' type='u32' array='0' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='comment' title='' comment='If you want to draw on a shape in simulation, you need to give it a bitmap
Flowcode needs to know the X and Y of that bitmap

This event is sent whenever simulation starts, so will create a screen at that point
' ccode='' textshow='1' textmode='0' textarea='212,14,212,14' break='0' mark='0' disable='0' hide='0' customize='0' />
						<command class_type='sim' title='Create a bitmap on &apos;screen&apos; and colour it white (0xFFFFFF)' comment='' ccode='' textshow='1' textmode='0' textarea='209,-27,209,-27' break='0' mark='0' disable='0' hide='0' customize='0' macro='Panel.Graphics.DrawCreate' >
							<argument exp='screen' />
							<argument exp='256' />
							<argument exp='256' />
							<argument exp='0' />
							<argument exp='0xFFFFFF' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<command class_type='comment' title='' comment='In testing call the simulation macro to see results
This will be called instead of DrawLine() in the exported component
' ccode='' textshow='1' textmode='0' textarea='266,17,266,17' break='0' mark='0' disable='0' hide='0' customize='0' />
						<command class_type='call' title='Call Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' macro='DrawLine_Sim' >
							<argument exp='16' />
							<argument exp='24' />
							<argument exp='192' />
							<argument exp='224' />
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='shape' codename='screen' x='0' y='0' z='0' xsz='128' ysz='128' zsz='32' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' >
				<resources />
				<properties />
				<values >
					<value target='Shape' data='101' />
					<value target='Color' data='16777215' />
					<value target='Outline' data='0' />
					<value target='Thickness' data='0.100000' />
					<value target='Image' data='' />
					<value target='Model' data='' />
					<value target='Unit' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<keymap />
	<panel2d shadows='0' lighting='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='1' lighting='0' perspective='0' >
		<background rgb='8409120' img='' style='5' />
		<table rgb='7360576' img='' style='0' size='30' />
		<camera xe='0' ye='0' ze='204.213' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel3d>
	<layout >
		<view type='0' name='Ev_Start' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAXwUAAHwDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='DrawLine_Sim' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAXwUAAHwDAAA' zoom='65' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='DrawLine' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAXwUAAHwDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAXwUAAHwDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
