<root>
<document scada='0' schema='102' license='1,Dev User,H1YQFU' title='' description='' fcversion='524545' target='PIC.16F.16F1937' >
	<config data='!0,fe2!10,1eff%0,2%3,0%5,1%6,1%7,1%8,1%9,3%b,1%c,0%d,0%10,3%14,3%18,0%19,1%1a,1%1c,1%1d,0' clkspd='19660800' simspd='1' usewdt='0' constif='0' />
	<plugins >
		<dll_models enabled='1' />
	</plugins>
	<supplement use='1' head='#define FCV_CAL_UART 0' body='' />
	<debug >
		<watch expr='.idx' />
		<watch expr='.xcount' />
		<watch expr='.len_str' />
		<watch expr='.temp[0]' />
		<watch expr='.temp[1]' />
		<watch expr='.height' />
		<watch expr='.ypix' />
		<watch expr='.xpix' />
		<watch expr='.width' />
		<watch expr='.count' />
		<watch expr='ba' />
	</debug>
	<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='9' />
			<data name='CalculatedCommsDelay' value='9' />
		</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='0' center='1' unitscale='0' fixedscale='0' fixedx='0' fixedy='0' fixedz='0' headcode='1' keygen='j7SMT46217yBzLyAdwcxuV' />
		<definition guid='c7ba30ad-1d81-496e-b2ca-e4efb109521b' vstate='40' vmin='0' vmaj='2' srcleaf='glcd_4D_EB075.fcfx' visiblename='GLCD (EB075)' description='Graphical display component designed to work with the Goldelox range of displays from 4D Systems.
Also available in the form of the EB075 GLCD E-block.' category='E-blocks 1' catenable='1' author='Matrix Ltd' manuname='' manucode='' sysinfo='1053679' keywords='' dynamic='1' scadaCompatible='0' embeddedCompatible='1' group='displays' protect='1' iconpath='..\..\icons\components\glcd.png' />
		<component class_type='root' codename='gLCD_EB075_4D' 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' macronames='$(type)_$(module)__$(macro)' varnames='$(type)_$(module)__$(variable:u)' >
			<resources >
				<file name='EB075_Mini_SD_Socket.mesh' source='..\..\models\outputs\gLCDs\EB075_Mini_SD_Socket.mesh' />
				<file name='EB075_Screen.mesh' source='..\..\models\outputs\gLCDs\EB075_Screen.mesh' />
				<file name='EB075_Ears.mesh' source='..\..\models\outputs\gLCDs\EB075_Ears.mesh' />
				<file name='EB075_PCB.mesh' source='..\..\models\outputs\gLCDs\EB075_PCB.mesh' />
				<file name='EB075_Sticky.mesh' source='..\..\models\outputs\gLCDs\EB075_Sticky.mesh' />
				<file name='EB075_Header.mesh' source='..\..\models\outputs\gLCDs\EB075_Header.mesh' />
				<file name='EB075_Ribbon.mesh' source='..\..\models\outputs\gLCDs\EB075_Ribbon.mesh' />
			</resources>
			<properties >
				<property name='Dimensions' hidden='0' >
					<property name='Pixel Height' target='pixel_height' typeid='14' hidden='0' locked='0' info='Heigt of gLCD canvas measured in pixels.
' />
					<property name='Pixel Width' target='pixel_width' typeid='14' hidden='0' locked='0' info='Width of gLCD canvas measured in pixels.
' />
				</property>
				<property name='Colour' hidden='0' >
					<property name='Monochrome' target='monochrome' typeid='7' hidden='0' locked='1' info='Specifies if the display is capable of colour or monochrome only.
' />
					<property name='Foreground Color' target='foreground_colour' typeid='1' hidden='0' locked='0' info='Specifies the initial foreground color.
' />
					<property name='Background Color' target='background_colour' typeid='1' hidden='0' locked='0' info='Specifies the initial background color.
' />
					<property name='Bit Depth' hidden='0' >
						<property name='Color Bit Depth' target='colour_bit_depth' typeid='14' hidden='0' locked='1' info='Total color bit depth for the display.
' />
						<property name='Red Bit Depth' target='red_bit_depth' typeid='14' hidden='0' locked='1' info='Specifies the red bit depth for the display.
' />
						<property name='Green Bit Depth' target='green_bit_depth' typeid='14' hidden='0' locked='1' info='Specifies the green bit depth for the display.
' />
						<property name='Blue Bit Depth' target='blue_bit_depth' typeid='14' hidden='0' locked='1' info='Specifies the blue bit depth for the display.
' />
					</property>
					<property name='FGCOL' target='FGCOL' typeid='21' hidden='1' locked='0' info='' />
					<property name='BGCOL' target='BGCOL' typeid='21' hidden='1' locked='0' info='' />
				</property>
				<property name='Connections' hidden='0' >
					<property name='Channel' target='cal_uart::CHANNEL' typeid='16' hidden='0' locked='0' info='UART Channel selector
Software channels are bit banged using generic I/O pins but are not as reliable as hardware channels.
Hardware channels use the selected peripheral on-board the target microcontroller.' filter='000Software
001Channel 1
' />
					<property name='TX' target='cal_uart::TX' typeid='5' hidden='0' locked='1' info='Pin to be used for Transmit data' />
					<property name='TX Remap Pin' target='cal_uart::OutputPins' typeid='16' hidden='1' locked='0' info='Allows the hardware transmit pin to be configured from a list of available pins based on your target device,' filter='000$PORTA.0
001$PORTA.1
002$PORTA.2
003$PORTA.3
004$PORTA.4
005$PORTA.5
006$PORTA.7
007$PORTA.6' />
					<property name='TX Alt Pin' target='cal_uart::TXAlt' typeid='7' hidden='1' locked='0' info='Allows the TX pin to be allocated to an alternate I/O pin.' />
					<property name='RX' target='cal_uart::RX' typeid='5' hidden='0' locked='1' info='Pin to be used for Receive data' />
					<property name='RX Remap Pin' target='cal_uart::InputPins' typeid='16' hidden='1' locked='0' info='Allows the hardware receive pin to be configured from a list of available pins based on your target device,' filter='016$PORTC.0
017$PORTC.1
018$PORTC.2
019$PORTC.3
020$PORTC.4
021$PORTC.5
022$PORTC.6
023$PORTC.7' />
					<property name='RX Alt Pin' target='cal_uart::RXAlt' typeid='7' hidden='1' locked='0' info='Allows the RX pin to be allocated to an alternate I/O pin.' />
					<property name='Reset Pin' target='reset_pin' typeid='5' hidden='0' locked='0' info='Reset pin connection' />
					<property name='Baud Options' target='cal_uart::BAUD_LIST' typeid='16' hidden='0' locked='0' info='Baud rate option selector' filter='000Custom
0011200
0022400
0034800
0049600
00519200
00631250
00738400
00857600
009115200' />
					<property name='Baud Rate' target='cal_uart::BAUD' typeid='14' hidden='0' locked='1' info='' />
				</property>
				<property name='Simulation' folder='property_1' hidden='0' >
					<property name='Display Method' target='DisplayMethod' typeid='16' hidden='0' locked='0' info='Chooses which method to use when drawing to the gLCD component
The bitmap is the more common mode but may run slowly on some machines.
The point cloud should run faster but may use more memory.
' filter='000Bitmap
001Point Cloud' />
					<property name='Scope Traces' target='cal_uart::ScopeTraces' typeid='7' hidden='0' locked='0' info='Selects if the scope traces are automatically added to the data recorder window or not.
    Simulation - draws an approximation of the UART data onto the scope trace.
    ICT - sets up the scope trace for incoming data and adds UART packet decoding at the correct BAUD.' />
					<property name='Console Data' target='cal_uart::ConsoleData' typeid='7' hidden='0' locked='0' info='Selects if the console data is automatically generated or not' />
					<property name='Console Columns' target='cal_uart::ConsoleColumns' typeid='21' hidden='0' locked='0' info='Number of characters that can be displayed on a single line of the console.' />
					<property name='Data Source' target='cal_uart::DataSource' typeid='16' hidden='0' locked='0' info='Simulation data source used to allow the component to connect to various remote devices
    Nothing - Simulation data is ignored
    COM port - Routes the communication data to and from a physical or virtual COM port 
    Injector - Routes the communication data via a data injector component on the Panel.' filter='000Nothing
001COM Port
002Data Injector' />
					<property name='Injector' target='cal_uart::Injector' typeid='16' hidden='1' locked='0' info='Selects which injector component to route the communication data via.
Add injector components to the panel before they will be available in this list.
Injector components are available from the Comms component category.' />
					<property name='COM Port' target='cal_uart::com_port' typeid='16' hidden='1' locked='0' info='Lists all the current available COM port hardware on your PC.' filter='001COM1
020COM20
021COM21' />
				</property>
			</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='FGCOL' data='0' />
				<value target='BGCOL' data='65535' />
				<value target='cal_uart::CHANNEL' data='001' />
				<value target='cal_uart::TX' data='$PORTC.6' />
				<value target='cal_uart::OutputPins' data='000' />
				<value target='cal_uart::TXAlt' data='0' />
				<value target='cal_uart::RX' data='$PORTC.7' />
				<value target='cal_uart::InputPins' data='085' />
				<value target='cal_uart::RXAlt' data='0' />
				<value target='reset_pin' data='$PORTC.5' />
				<value target='cal_uart::BAUD_LIST' data='008' />
				<value target='cal_uart::BAUD' data='57600' />
				<value target='DisplayMethod' data='000' />
				<value target='cal_uart::ScopeTraces' data='0' />
				<value target='cal_uart::ConsoleData' data='0' />
				<value target='cal_uart::ConsoleColumns' data='64' />
				<value target='cal_uart::DataSource' data='000' />
				<value target='cal_uart::Injector' data='000' />
				<value target='cal_uart::com_port' data='020' />
			</values>
			<events >
				<event class='Components' event='Initialise' target='Ev_Init' />
				<event class='Simulation' event='Start' target='Ev_Init' />
				<event class='Components' event='Property' target='Ev_Property' />
			</events>
			<apis >
				<api name='G4D_InitialiseCard' alt='G4D_InitialiseCard' type='1' proto='1' />
				<api name='PrintNumber' alt='PrintNumber' type='1' proto='1' />
				<api name='DrawLine' alt='DrawLine' type='1' proto='1' />
				<api name='Plot' alt='Plot' type='1' proto='1' />
				<api name='DrawEllipse' alt='DrawEllipse' type='1' proto='1' />
				<api name='FastPlot' alt='FastPlot_Sim' type='1' proto='1' />
				<api name='G4D_DisplayVideoFromCard' alt='G4D_DisplayVideoFromCard' type='1' proto='1' />
				<api name='BPlot' alt='BPlot' type='1' proto='1' />
				<api name='Window' alt='Window_Sim' type='1' proto='1' />
				<api name='G4D_ReadJoystickGoldelox' alt='G4D_ReadJoystickGoldelox' type='1' proto='1' />
				<api name='Print' alt='Print' type='1' proto='1' />
				<api name='ClearDisplay' alt='ClearDisplay' type='1' proto='1' />
				<api name='SetBackgroundColour' alt='SetBackgroundColour' type='1' proto='1' />
				<api name='DrawCircle' alt='DrawCircle' type='1' proto='1' />
				<api name='G4D_DisplayImageFromCard' alt='G4D_DisplayImageFromCard' type='1' proto='1' />
				<api name='SetForegroundColour' alt='SetForegroundColour' type='1' proto='1' />
				<api name='DrawRectangle' alt='DrawRectangle' type='1' proto='1' />
				<api name='Initialise' alt='Initialise' type='1' proto='1' />
			</apis>
			<variables >
				<variable public='0' >
					<def class_type='variable' name='background_col_var' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='foreground_col_var' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='G4D_InitialiseCard' description='Initialises the micro SD card inserted into the module is available.
Returns 0 for succesful initialisation or 255 for a detected failure.
Does not currently simulate.' >
						<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='ret' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Extended Command Set' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0xFF' />
						</command>
						<command class_type='call' title='Init Card Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0xB1' />
						</command>
						<command class_type='call' title='Wait for Ack' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Receive' >
							<return exp='.Return' />
							<argument exp='250' />
						</command>
						<command class_type='call' title='Wait for Ack' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Receive' >
							<return exp='.Return' />
							<argument exp='250' />
						</command>
						<command class_type='call' title='Wait for Ack' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Receive' >
							<return exp='.ret' />
							<argument exp='250' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='.ret = .ret | (.Return &lt;&lt; 8)' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.ret &gt; 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Card Init OK' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='.Return = 0' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='.Return = 255' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='PrintNumber' description='This macro prints a decimal number to the Graphical LCD.
' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='Number' type='s16' description='Byte or Integer number to send to the display.' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='X' type='u16' description='X pixel coordinate to set the output string position.' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y' type='u16' description='Y pixel coordinate to set the output string position.' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Font' type='u8' description='Size of the font - 0 = Normal, 1 = Double Width, 2 = Double Width and Height, 3 = Double Height' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Transparent' type='u8' description='Specifies if the background of the text is drawn - 0 = Background colour is drawn, 1 = Background colour not drawn.' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='temp' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='6' />
						</local>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='.temp = ToString$ (.Number)' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Print' >
							<argument exp='.temp' />
							<argument exp='.X' />
							<argument exp='.Y' />
							<argument exp='.Font' />
							<argument exp='.Transparent' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='DrawLine' description='Draws a line with the current foreground colour from pixel location X1, Y1 to pixel location X2, Y2.' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='X2' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y2' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='C1' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='M1' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='D1' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<local name='PixelX' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='PixelY' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Yinc' type='s16' description='' isconst='0' isinit='1' usrinit='1' setinit='1' />
						<local name='Xinc' type='s16' description='' isconst='0' isinit='1' usrinit='1' setinit='1' />
						<command class_type='call' title='Draw Line Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0xFF' />
						</command>
						<command class_type='call' title='Draw Line Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0xD2' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.X1 &gt;&gt; 8' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.X1' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.Y1 &gt;&gt; 8' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.Y1' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.X2 &gt;&gt; 8' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.X2' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.Y2 &gt;&gt; 8' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.Y2' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='foreground_col_var &gt;&gt; 8' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='foreground_col_var' />
						</command>
						<command class_type='call' title='Wait for Ack' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Receive' >
							<argument exp='250' />
						</command>
						<command class_type='sim' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Base_GLCD' macro='DrawLine' >
							<argument exp='.X1' />
							<argument exp='.Y1' />
							<argument exp='.X2' />
							<argument exp='.Y2' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='FastPlot_Sim' description='Sets a pixel with the current foreground colour at current pixel location.
Not compatible with orientations other than 0.' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
					</flowline>
				</macro>
				<macro >
					<flowline name='DrawEllipse' description='Draws an ellipse object on the display with the center of the ellipse at the location X,Y' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='X' type='u16' description='X Coordinate for the center of the circle' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y' type='u16' description='Y coordinate for the center of the circle' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='XRadius' type='u16' description='Radius of the circle on the X axis specified in pixels' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='YRadius' type='u16' description='Radius of the circle on the Y axis specified in pixels' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Transparent' type='u8' description='0=Fill inside circle using background colour / 1=Draw outer circle only' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Solid' type='u8' description='0=Use Transparent Setting / 1=Fill with foreground colour' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='err' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='CurX' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='CurY' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='BGCol' type='u32' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='FGCol' type='u32' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Rep' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<local name='e2' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='K' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
						<command class_type='decision' title='Draw the circle in solid foreground' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.Solid = 1' swap='0' >
							<flowline >
								<command class_type='label' title='Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='A' />
								<command class_type='calculation' title='Start Locations' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='.CurX = 0' />
									<exp exp='.CurY = 0 - .YRadius' />
								</command>
								<command class_type='calculation' title='Calculate Decision Variable' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='.err = 2 - (2 * .XRadius)' />
								</command>
								<command class_type='calculation' title='Start K' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='.K = FLOAT (FLOAT .YRadius / FLOAT .XRadius)' />
								</command>
								<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='.CurY &lt;= 0' start='0' >
									<flowline >
										<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='DrawLine' >
											<argument exp='.X - (.CurX / .K)' />
											<argument exp='.Y + .CurY' />
											<argument exp='.X + (.CurX / .K)' />
											<argument exp='.Y + .CurY' />
										</command>
										<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='DrawLine' >
											<argument exp='.X - (.CurX / .K)' />
											<argument exp='.Y - .CurY' />
											<argument exp='.X + (.CurX / .K)' />
											<argument exp='.Y -.CurY' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='.e2 = .err' />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.e2 &lt;= .CurX' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='.CurX = .CurX + 1' />
													<exp exp='.err = .err + ((.CurX * 2) + 1)' />
													<exp exp='' />
												</command>
												<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='(0 - .CurY == .CurX) &amp;&amp; (.e2 &lt;= .CurY)' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
															<exp exp='.e2 = 0' />
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.e2 &gt; .CurY' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='.CurY = .CurY + 1' />
													<exp exp='.err = .err + ((.CurY * 2) + 1)' />
													<exp exp='' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='Draw the background colour?' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.Transparent = 1' swap='0' >
									<flowline >
										<command class_type='label' title='Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='1' labelname='B' />
										<command class_type='calculation' title='Start Locations' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='.CurX = 0' />
											<exp exp='.CurY = 0 - .YRadius' />
										</command>
										<command class_type='calculation' title='Calculate Decision Variable' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='.err = 2 - (2 * .XRadius)' />
										</command>
										<command class_type='calculation' title='Start K' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='.K = FLOAT (FLOAT .YRadius / FLOAT .XRadius)' />
										</command>
										<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='.CurY &lt;= 0' start='0' >
											<flowline >
												<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Plot' >
													<argument exp='.X - (.CurX / .K)' />
													<argument exp='.Y + .CurY' />
												</command>
												<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Plot' >
													<argument exp='.X + (.CurX / .K)' />
													<argument exp='.Y + .CurY' />
												</command>
												<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Plot' >
													<argument exp='.X + (.CurX / .K)' />
													<argument exp='.Y - .CurY' />
												</command>
												<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Plot' >
													<argument exp='.X - (.CurX / .K)' />
													<argument exp='.Y - .CurY' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='.e2 = .err' />
												</command>
												<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.e2 &lt;= .CurX' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
															<exp exp='.CurX = .CurX + 1' />
															<exp exp='.err = .err + ((.CurX * 2) + 1)' />
															<exp exp='' />
														</command>
														<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='(0 - .CurY == .CurX) &amp;&amp; (.e2 &lt;= .CurY)' swap='0' >
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																	<exp exp='.e2 = 0' />
																</command>
															</flowline>
															<flowline />
														</command>
													</flowline>
													<flowline />
												</command>
												<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.e2 &gt; .CurY' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
															<exp exp='.CurY = .CurY + 1' />
															<exp exp='.err = .err + ((.CurY * 2) + 1)' />
															<exp exp='' />
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='.FGCol = foreground_col_var' />
											<exp exp='.BGCol = background_col_var' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='foreground_col_var = .BGCol' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='.Rep = 1' />
										</command>
										<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.Rep = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='.Rep = .Rep + 1' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='foreground_col_var = .FGCol' />
								</command>
								<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='1' labelname='' />
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Plot' description='Sets a pixel with the current foreground colour at pixel location X, Y.' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Draw Pixel Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0xFF' />
						</command>
						<command class_type='call' title='Draw Pixel Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0xCB' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.X1 &gt;&gt; 8' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.X1' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.Y1 &gt;&gt; 8' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.Y1' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='foreground_col_var &gt;&gt; 8' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='foreground_col_var' />
						</command>
						<command class_type='call' title='Wait for Ack' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Receive' >
							<argument exp='250' />
						</command>
						<command class_type='sim' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Base_GLCD' macro='Plot' >
							<argument exp='.X1' />
							<argument exp='.Y1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='FastPlot' description='Sets a pixel with the current foreground colour at current pixel location.
Not compatible with orientations other than 0.' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
					</flowline>
				</macro>
				<macro >
					<flowline name='G4D_DisplayVideoFromCard' description='Attempts to display a sequence of images from the micro SD card at the specified address location on the card.
The images are printed at location starting from X, Y and ranging to Width, Height.
' >
						<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='X' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='AddH' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='AddL' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Extended Command Set' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0xFF' />
						</command>
						<command class_type='call' title='Display Image Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0xB9' />
						</command>
						<command class_type='call' title='Display Image Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.AddH &gt;&gt; 8' />
						</command>
						<command class_type='call' title='Display Image Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.AddH' />
						</command>
						<command class_type='call' title='Display Image Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.AddL &gt;&gt; 8' />
						</command>
						<command class_type='call' title='Display Image Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.AddL' />
						</command>
						<command class_type='call' title='Wait for Ack' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Receive' >
							<return exp='.Return' />
							<argument exp='250' />
						</command>
						<command class_type='call' title='Extended Command Set' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0xFF' />
						</command>
						<command class_type='call' title='Display Image Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0xBB' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.X &gt;&gt; 8' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.X' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.Y &gt;&gt; 8' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.Y' />
						</command>
						<command class_type='call' title='Wait for Ack' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Receive' >
							<return exp='.Return' />
							<argument exp='250' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.Return = 6' swap='0' >
							<flowline >
								<command class_type='calculation' title='Command Ok' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='.Return = 0' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='.Return = 255' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Ev_Init' description='Initialisation routine for the component' >
						<return name='Return' type='u32' description='Non-zero to prevent initialisation' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='temp_str' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Ev_Property' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Ev_Property' description='Sent when a property has been changed by the User' >
						<return name='Return' type='u32' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='temp_str' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<local name='Red' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Green' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Blue' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Colour' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='comment' title='' comment='Assign Display Properties to GLCD Base Sim Object' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='sim' title='Panel' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Component.Property.CopyValue' >
							<argument exp='this' />
							<argument exp='Base_GLCD' />
							<argument exp='&quot;pixel_height&quot;' />
						</command>
						<command class_type='sim' title='Panel' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Component.Property.CopyValue' >
							<argument exp='this' />
							<argument exp='Base_GLCD' />
							<argument exp='&quot;pixel_width&quot;' />
						</command>
						<command class_type='sim' title='Panel' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Component.Property.CopyValue' >
							<argument exp='this' />
							<argument exp='Base_GLCD' />
							<argument exp='&quot;Monochrome&quot;' />
						</command>
						<command class_type='sim' title='Panel' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Component.Property.CopyValue' >
							<argument exp='this' />
							<argument exp='Base_GLCD' />
							<argument exp='&quot;Foreground_Colour&quot;' />
						</command>
						<command class_type='sim' title='Panel' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Component.Property.CopyValue' >
							<argument exp='this' />
							<argument exp='Base_GLCD' />
							<argument exp='&quot;Background_Colour&quot;' />
						</command>
						<command class_type='sim' title='Panel' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Component.Property.CopyValue' >
							<argument exp='this' />
							<argument exp='Base_GLCD' />
							<argument exp='&quot;Colour_Bit_Depth&quot;' />
						</command>
						<command class_type='sim' title='Panel' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Component.Property.CopyValue' >
							<argument exp='this' />
							<argument exp='Base_GLCD' />
							<argument exp='&quot;Red_Bit_Depth&quot;' />
						</command>
						<command class_type='sim' title='Panel' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Component.Property.CopyValue' >
							<argument exp='this' />
							<argument exp='Base_GLCD' />
							<argument exp='&quot;Green_Bit_Depth&quot;' />
						</command>
						<command class_type='sim' title='Panel' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Component.Property.CopyValue' >
							<argument exp='this' />
							<argument exp='Base_GLCD' />
							<argument exp='&quot;Blue_Bit_Depth&quot;' />
						</command>
						<command class_type='sim' title='Simulation' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Component.Property.CopyValue' >
							<argument exp='this' />
							<argument exp='Base_GLCD' />
							<argument exp='&quot;DisplayMethod&quot;' />
						</command>
						<command class_type='comment' title='' comment='Work out Initial Colour Variable Values' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='.Red = foreground_colour &amp; 0xFF' />
							<exp exp='.Red = .Red &gt;&gt; (8 - blue_bit_depth)' />
							<exp exp='.Green = (foreground_colour &gt;&gt; 8) &amp; 0xFF' />
							<exp exp='.Green = .Green &gt;&gt; (8 - green_bit_depth)' />
							<exp exp='.Blue = (foreground_colour &gt;&gt; 16) &amp; 0xFF' />
							<exp exp='.Blue = .Blue &gt;&gt; (8 - red_bit_depth)' />
							<exp exp='.Colour = .Blue | (.Green &lt;&lt; green_bit_depth)' />
							<exp exp='.Colour = .Colour | (.Red &lt;&lt; (blue_bit_depth + green_bit_depth))' />
							<exp exp='' />
							<exp exp='' />
						</command>
						<command class_type='sim' title='Simulation' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Component.Property.SetValue' >
							<argument exp='this' />
							<argument exp='&quot;FGCOL&quot;' />
							<argument exp='.Colour' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='.Red = background_colour &amp; 0xFF' />
							<exp exp='.Red = .Red &gt;&gt; (8 - red_bit_depth)' />
							<exp exp='.Green = (background_colour &gt;&gt; 8) &amp; 0xFF' />
							<exp exp='.Green = .Green &gt;&gt; (8 - green_bit_depth)' />
							<exp exp='.Blue = (background_colour &gt;&gt; 16) &amp; 0xFF' />
							<exp exp='.Blue = .Blue &gt;&gt; (8 - blue_bit_depth)' />
							<exp exp='.Colour = .Blue | (.Green &lt;&lt; blue_bit_depth)' />
							<exp exp='.Colour = .Colour | (.Red &lt;&lt; (blue_bit_depth + green_bit_depth))' />
						</command>
						<command class_type='sim' title='Simulation' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Component.Property.SetValue' >
							<argument exp='this' />
							<argument exp='&quot;BGCOL&quot;' />
							<argument exp='.Colour' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='BPlot' description='Sets a pixel with the current background colour at pixel location X, Y.' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Draw Pixel Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0xFF' />
						</command>
						<command class_type='call' title='Draw Pixel Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0xCB' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.X1 &gt;&gt; 8' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.X1' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.Y1 &gt;&gt; 8' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.Y1' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='background_col_var &gt;&gt; 8' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='background_col_var' />
						</command>
						<command class_type='call' title='Wait for Ack' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Receive' >
							<argument exp='250' />
						</command>
						<command class_type='sim' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Base_GLCD' macro='BPlot' >
							<argument exp='.X1' />
							<argument exp='.Y1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Window_Sim' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='X2' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y2' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Window' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='X2' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y2' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
					</flowline>
				</macro>
				<macro >
					<flowline name='G4D_ReadJoystickGoldelox' description='Reads the value of the joystick input.
0 = No press detected / 1 = Up Pressed / 2 = Left Pressed / 3 = Down Pressed /  4 = Right Pressed / 5 = Fire Pressed' >
						<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Joystick status command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0xFF' />
						</command>
						<command class_type='call' title='Read status' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0xD9' />
						</command>
						<command class_type='call' title='Wait for Ack' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Receive' >
							<return exp='.Return' />
							<argument exp='250' />
						</command>
						<command class_type='call' title='Value MSB' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Receive' >
							<return exp='.Return' />
							<argument exp='250' />
						</command>
						<command class_type='call' title='Value LSB' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Receive' >
							<return exp='.Return' />
							<argument exp='250' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Print' description='This macro prints a string of characters to the Graphical LCD.' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='Str' type='T8*' description='String of characters to send to the display.' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<param name='X1' type='u16' description='X pixel coordinate to set the output string position.' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='Y pixel coordinate to set the output string position.' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Font' type='u8' description='Size of the font - 0 = Normal, 1 = Double Width, 2 = Double Width and Height, 3 = Double Height' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Transparent' type='u8' description='Specifies if the background of the text is drawn - 0 = Background colour is drawn, 1 = Background colour not drawn.' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='len_str' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='idx' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='comment' title='' comment='Set Transparancy' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='call' title='Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0xFF' />
						</command>
						<command class_type='call' title='Set Text Transparancy' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0x77' />
						</command>
						<command class_type='call' title='Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0x00' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.Transparent' swap='0' >
							<flowline >
								<command class_type='call' title='Transparancy On' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
									<argument exp='0x00' />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Transparancy Off' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
									<argument exp='0x01' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Wait for Ack' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Receive' >
							<argument exp='250' />
						</command>
						<command class_type='comment' title='' comment='Set FG Colour' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='call' title='Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0xFF' />
						</command>
						<command class_type='call' title='Set Text FG Colour' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0x7F' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='foreground_col_var &gt;&gt; 8' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='foreground_col_var' />
						</command>
						<command class_type='call' title='Wait for Ack' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Receive' >
							<argument exp='250' />
						</command>
						<command class_type='comment' title='' comment='Set BG Colour' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='call' title='Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0xFF' />
						</command>
						<command class_type='call' title='Set Text BG Colour' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0x7E' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='background_col_var &gt;&gt; 8' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='background_col_var' />
						</command>
						<command class_type='call' title='Wait for Ack' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Receive' >
							<argument exp='250' />
						</command>
						<command class_type='comment' title='' comment='Set Font Width
' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='call' title='Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0xFF' />
						</command>
						<command class_type='call' title='Set Font Width' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0x7C' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0x00' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='(.Font &gt; 0) &amp;&amp; (.Font &lt; 3)' swap='0' >
							<flowline >
								<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
									<argument exp='2' />
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.Font &gt; 3' swap='0' >
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.Font &lt; 8' swap='0' >
											<flowline >
												<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
													<argument exp='2' />
												</command>
											</flowline>
											<flowline >
												<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.Font &lt; 14' swap='0' >
													<flowline >
														<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
															<argument exp='3' />
														</command>
													</flowline>
													<flowline >
														<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.Font &lt; 20' swap='0' >
															<flowline >
																<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
																	<argument exp='4' />
																</command>
															</flowline>
															<flowline >
																<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.Font &lt; 26' swap='0' >
																	<flowline >
																		<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
																			<argument exp='5' />
																		</command>
																	</flowline>
																	<flowline >
																		<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.Font &lt; 32' swap='0' >
																			<flowline >
																				<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
																					<argument exp='6' />
																				</command>
																			</flowline>
																			<flowline >
																				<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
																					<argument exp='1' />
																				</command>
																			</flowline>
																		</command>
																	</flowline>
																</command>
															</flowline>
														</command>
													</flowline>
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
											<argument exp='1' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Wait for Ack' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Receive' >
							<argument exp='250' />
						</command>
						<command class_type='comment' title='' comment='Set Font Height
' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='call' title='Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0xFF' />
						</command>
						<command class_type='call' title='Set Font Width' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0x7B' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0x00' />
						</command>
						<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.Font' >
							<case >
								<flowline />
							</case>
							<case exp='0' >
								<flowline >
									<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
										<argument exp='1' />
									</command>
								</flowline>
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
										<argument exp='1' />
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
										<argument exp='2' />
									</command>
								</flowline>
							</case>
							<case exp='3' >
								<flowline >
									<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
										<argument exp='2' />
									</command>
								</flowline>
							</case>
							<case exp='4' >
								<flowline >
									<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
										<argument exp='3' />
									</command>
								</flowline>
							</case>
							<case exp='5' >
								<flowline >
									<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
										<argument exp='4' />
									</command>
								</flowline>
							</case>
							<case exp='6' >
								<flowline >
									<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
										<argument exp='5' />
									</command>
								</flowline>
							</case>
							<case exp='7' >
								<flowline >
									<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
										<argument exp='6' />
									</command>
								</flowline>
							</case>
							<case exp='8' >
								<flowline >
									<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
										<argument exp='1' />
									</command>
								</flowline>
							</case>
							<case exp='9' >
								<flowline >
									<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
										<argument exp='2' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.Font' >
							<case >
								<flowline />
							</case>
							<case exp='10' >
								<flowline >
									<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
										<argument exp='3' />
									</command>
								</flowline>
							</case>
							<case exp='11' >
								<flowline >
									<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
										<argument exp='4' />
									</command>
								</flowline>
							</case>
							<case exp='12' >
								<flowline >
									<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
										<argument exp='5' />
									</command>
								</flowline>
							</case>
							<case exp='13' >
								<flowline >
									<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
										<argument exp='6' />
									</command>
								</flowline>
							</case>
							<case exp='14' >
								<flowline >
									<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
										<argument exp='1' />
									</command>
								</flowline>
							</case>
							<case exp='15' >
								<flowline >
									<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
										<argument exp='2' />
									</command>
								</flowline>
							</case>
							<case exp='16' >
								<flowline >
									<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
										<argument exp='3' />
									</command>
								</flowline>
							</case>
							<case exp='17' >
								<flowline >
									<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
										<argument exp='4' />
									</command>
								</flowline>
							</case>
							<case exp='18' >
								<flowline >
									<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
										<argument exp='5' />
									</command>
								</flowline>
							</case>
							<case exp='19' >
								<flowline >
									<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
										<argument exp='6' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.Font' >
							<case >
								<flowline />
							</case>
							<case exp='20' >
								<flowline >
									<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
										<argument exp='1' />
									</command>
								</flowline>
							</case>
							<case exp='21' >
								<flowline >
									<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
										<argument exp='2' />
									</command>
								</flowline>
							</case>
							<case exp='22' >
								<flowline >
									<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
										<argument exp='3' />
									</command>
								</flowline>
							</case>
							<case exp='23' >
								<flowline >
									<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
										<argument exp='4' />
									</command>
								</flowline>
							</case>
							<case exp='24' >
								<flowline >
									<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
										<argument exp='5' />
									</command>
								</flowline>
							</case>
							<case exp='25' >
								<flowline >
									<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
										<argument exp='6' />
									</command>
								</flowline>
							</case>
							<case exp='26' >
								<flowline >
									<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
										<argument exp='1' />
									</command>
								</flowline>
							</case>
							<case exp='27' >
								<flowline >
									<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
										<argument exp='2' />
									</command>
								</flowline>
							</case>
							<case exp='28' >
								<flowline >
									<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
										<argument exp='3' />
									</command>
								</flowline>
							</case>
							<case exp='29' >
								<flowline >
									<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
										<argument exp='4' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.Font' >
							<case >
								<flowline />
							</case>
							<case exp='30' >
								<flowline >
									<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
										<argument exp='5' />
									</command>
								</flowline>
							</case>
							<case exp='31' >
								<flowline >
									<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
										<argument exp='6' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='call' title='Wait for Ack' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Receive' >
							<argument exp='250' />
						</command>
						<command class_type='comment' title='' comment='Set Cursor' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='call' title='Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0xFF' />
						</command>
						<command class_type='call' title='Set Cursor Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0xE4' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0' />
						</command>
						<command class_type='call' title='Wait for Ack' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Receive' >
							<argument exp='250' />
						</command>
						<command class_type='comment' title='' comment='Set Origin' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='call' title='Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0xFF' />
						</command>
						<command class_type='call' title='Set Cursor Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0xD6' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.X1 &gt;&gt; 8' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.X1' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.Y1 &gt;&gt; 8' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.Y1' />
						</command>
						<command class_type='call' title='Wait for Ack' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Receive' >
							<argument exp='250' />
						</command>
						<command class_type='comment' title='' comment='Print String' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='call' title='Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0x00' />
						</command>
						<command class_type='call' title='Send String Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0x06' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='.len_str = Length$ (.Str)' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='.idx &lt; .len_str' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.Str[.idx] = 0' swap='0' >
									<flowline >
										<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
									</flowline>
									<flowline />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
									<argument exp='.Str[.idx]' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='.idx = .idx + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='label' title='Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='A' />
						<command class_type='call' title='Null Termination' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0' />
						</command>
						<command class_type='call' title='Wait for Ack' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Receive' >
							<argument exp='250' />
						</command>
						<command class_type='comment' title='' comment='Set Origin' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='call' title='Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0xFF' />
						</command>
						<command class_type='call' title='Set Cursor Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0xD6' />
						</command>
						<command class_type='call' title='0' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0' />
						</command>
						<command class_type='call' title='Wait for Ack' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Receive' >
							<argument exp='250' />
						</command>
						<command class_type='sim' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Base_GLCD' macro='Print' >
							<argument exp='.Str' />
							<argument exp='.X1' />
							<argument exp='.Y1' />
							<argument exp='.Font' />
							<argument exp='.Transparent' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ClearDisplay' description='This macro clears the display of any previous output by overwriting the entire display with the background colour.' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<local name='Y' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<local name='X' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='call' title='Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0xFF' />
						</command>
						<command class_type='call' title='Update BG Colour' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0x6E' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='background_col_var &gt;&gt; 8' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='background_col_var' />
						</command>
						<command class_type='call' title='Wait for Ack' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Receive' >
							<argument exp='250' />
						</command>
						<command class_type='call' title='Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0xFF' />
						</command>
						<command class_type='call' title='Clear Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0xD7' />
						</command>
						<command class_type='call' title='Wait for Ack' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Receive' >
							<argument exp='250' />
						</command>
						<command class_type='sim' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Base_GLCD' macro='ClearDisplay' />
					</flowline>
				</macro>
				<macro >
					<flowline name='SetBackgroundColour' description='Specifies the colour of the background by creating a mixture of red, green and blue.' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='Red' type='u8' description='0 - 255 where 0 = no red and 255 = maximum red' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Green' type='u8' description='0 - 255 where 0 = no green and 255 = maximum green' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Blue' type='u8' description='0 - 255 where 0 = no blue and 255 = maximum blue' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='colour' type='u32' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='.Red = .Red &gt;&gt; (8 - red_bit_depth)' />
							<exp exp='.Green = .Green &gt;&gt; (8 - green_bit_depth)' />
							<exp exp='.Blue = .Blue &gt;&gt; (8 - blue_bit_depth)' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='background_col_var = .Blue | (.Green &lt;&lt; blue_bit_depth)' />
							<exp exp='background_col_var = background_col_var | (.Red &lt;&lt; (green_bit_depth + blue_bit_depth))' />
						</command>
						<command class_type='sim' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Base_GLCD' macro='SetBackgroundColour' >
							<argument exp='.Red' />
							<argument exp='.Green' />
							<argument exp='.Blue' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='DrawCircle' description='Draws a circle object on the display with the center of the circle at the location X,Y' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='X' type='u16' description='X Coordinate for the center of the circle' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y' type='u16' description='Y coordinate for the center of the circle' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Radius' type='u16' description='Radius of the circle specified in pixels' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Transparent' type='u8' description='0=Fill inside circle using background colour / 1=Draw outer circle only' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Solid' type='u8' description='0=Use Transparent Setting / 1=Fill with foreground colour' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='D' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='CurX' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='CurY' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='BGCol' type='u32' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='FGCol' type='u32' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Rep' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='decision' title='Draw the circle in solid foreground' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.Solid = 1' swap='0' >
							<flowline >
								<command class_type='label' title='Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='A' />
								<command class_type='calculation' title='Calculate Decision Variable' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='.D = 3 - (.Radius &lt;&lt; 1)' />
								</command>
								<command class_type='calculation' title='Start Locations' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='.CurX = 0' />
									<exp exp='.CurY = .Radius' />
								</command>
								<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='.CurX &lt;= .CurY' >
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.CurY &gt; 0' swap='0' >
											<flowline >
												<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='DrawLine' >
													<argument exp='.X - .CurY' />
													<argument exp='.Y + .CurX' />
													<argument exp='.X + .CurY' />
													<argument exp='.Y + .CurX' />
												</command>
												<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='DrawLine' >
													<argument exp='.X - .CurY' />
													<argument exp='.Y - .CurX' />
													<argument exp='.X + .CurY' />
													<argument exp='.Y - .CurX' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.CurX &gt; 0' swap='0' >
											<flowline >
												<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='DrawLine' >
													<argument exp='.X - .CurX' />
													<argument exp='.Y - .CurY' />
													<argument exp='.X + .CurX' />
													<argument exp='.Y - .CurY' />
												</command>
												<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='DrawLine' >
													<argument exp='.X - .CurX' />
													<argument exp='.Y + .CurY' />
													<argument exp='.X + .CurX' />
													<argument exp='.Y + .CurY' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.D &lt; 0' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='.D = .D + ((.CurX &lt;&lt; 2) + 6)' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='.D = .D + (((.CurX - .CurY) &lt;&lt; 2) + 10)' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='.CurY = .CurY - 1' />
												</command>
											</flowline>
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='.CurX = .CurX + 1' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='Draw the background colour?' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.Transparent = 1' swap='0' >
									<flowline >
										<command class_type='label' title='Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='1' labelname='B' />
										<command class_type='calculation' title='Calculate Decision Variable' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='.D = 3 - (.Radius &lt;&lt; 1)' />
										</command>
										<command class_type='calculation' title='Start Locations' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='.CurX = 0' />
											<exp exp='.CurY = .Radius' />
										</command>
										<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='.CurX &lt;= .CurY' >
											<flowline >
												<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Plot' >
													<argument exp='.X + .CurX' />
													<argument exp='.Y - .CurY' />
												</command>
												<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Plot' >
													<argument exp='.X - .CurX' />
													<argument exp='.Y - .CurY' />
												</command>
												<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Plot' >
													<argument exp='.X + .CurY' />
													<argument exp='.Y - .CurX' />
												</command>
												<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Plot' >
													<argument exp='.X - .CurY' />
													<argument exp='.Y - .CurX' />
												</command>
												<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Plot' >
													<argument exp='.X + .CurX' />
													<argument exp='.Y + .CurY' />
												</command>
												<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Plot' >
													<argument exp='.X - .CurX' />
													<argument exp='.Y + .CurY' />
												</command>
												<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Plot' >
													<argument exp='.X + .CurY' />
													<argument exp='.Y + .CurX' />
												</command>
												<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Plot' >
													<argument exp='.X - .CurY' />
													<argument exp='.Y + .CurX' />
												</command>
												<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.D &lt; 0' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
															<exp exp='.D = .D + ((.CurX &lt;&lt; 2) + 6)' />
														</command>
													</flowline>
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
															<exp exp='.D = .D + (((.CurX - .CurY) &lt;&lt; 2) + 10)' />
														</command>
														<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
															<exp exp='.CurY = .CurY - 1' />
														</command>
													</flowline>
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='.CurX = .CurX + 1' />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='.FGCol = foreground_col_var' />
											<exp exp='.BGCol = background_col_var' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='foreground_col_var = .BGCol' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='.Rep = 1' />
										</command>
										<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.Rep = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='.Rep = .Rep + 1' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='foreground_col_var = .FGCol' />
								</command>
								<command class_type='goto' title='Goto Connection Point' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='1' labelname='' />
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='G4D_DisplayImageFromCard' description='Attempts to print an image from the micro SD card at the specified address location on the card.
The image is printed at location starting from X, Y and ranging to Width, Height.
' >
						<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='X' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='AddH' type='u16' description='Byte Address High Word' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='AddL' type='u16' description='Byte Address Low Word' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Extended Command Set' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0xFF' />
						</command>
						<command class_type='call' title='Display Image Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0xB9' />
						</command>
						<command class_type='call' title='Display Image Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.AddH &gt;&gt; 8' />
						</command>
						<command class_type='call' title='Display Image Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.AddH' />
						</command>
						<command class_type='call' title='Display Image Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.AddL &gt;&gt; 8' />
						</command>
						<command class_type='call' title='Display Image Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.AddL' />
						</command>
						<command class_type='call' title='Wait for Ack' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Receive' >
							<return exp='.Return' />
							<argument exp='250' />
						</command>
						<command class_type='call' title='Extended Command Set' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0xFF' />
						</command>
						<command class_type='call' title='Display Image Command' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0xB3' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.X &gt;&gt; 8' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.X' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.Y &gt;&gt; 8' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.Y' />
						</command>
						<command class_type='call' title='Wait for Ack' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Receive' >
							<return exp='.Return' />
							<argument exp='250' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.Return = 6' swap='0' >
							<flowline >
								<command class_type='calculation' title='Command Ok' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='.Return = 0' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='.Return = 255' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SetForegroundColour' description='Specifies the colour of the foreground by creating a mixture of red, green and blue.
' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='Red' type='u8' description='0 - 255 where 0 = no red and 255 = maximum red' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Green' type='u8' description='0 - 255 where 0 = no green and 255 = maximum green' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Blue' type='u8' description='0 - 255 where 0 = no blue and 255 = maximum blue' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='colour' type='u32' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='.Red = .Red &gt;&gt; (8 - red_bit_depth)' />
							<exp exp='.Green = .Green &gt;&gt; (8 - green_bit_depth)' />
							<exp exp='.Blue = .Blue &gt;&gt; (8 - blue_bit_depth)' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='foreground_col_var = .Blue | (.Green &lt;&lt; blue_bit_depth)' />
							<exp exp='foreground_col_var = foreground_col_var | (.Red &lt;&lt; (green_bit_depth + blue_bit_depth))' />
						</command>
						<command class_type='sim' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Base_GLCD' macro='SetForegroundColour' >
							<argument exp='.Red' />
							<argument exp='.Green' />
							<argument exp='.Blue' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='DrawRectangle' description='Draws a rectangle with the current foreground colour from pixel loaction X1, Y1 to pixel location X2, Y2' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='X2' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y2' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Transparent' type='u8' description='Chooses the transparency of the box - 0 = Box contains background colour, 1 = Box contains previous pixel data.' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Solid' type='u8' description='Chooses to fill the box with colour - 0 = Box contains transparency data, 1 = Box contains foreground colour.' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Xmin' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Xmax' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Ymin' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Ymax' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='decision' title='In this case we need to draw solid shape and then overlay edges' cmdcolor='12615680' cmdcolor_sec='15376912' exp='(.Transparent = 0) &amp;&amp; (.Solid = 0)' swap='0' >
							<flowline >
								<command class_type='call' title='Draw Rectangle' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
									<argument exp='0xFF' />
								</command>
								<command class_type='call' title='Draw Solid Rectangle' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
									<argument exp='0xCE' />
								</command>
								<command class_type='call' title='Set Coords' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
									<argument exp='.X1 &gt;&gt; 8' />
								</command>
								<command class_type='call' title='Set Coords' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
									<argument exp='.X1' />
								</command>
								<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
									<argument exp='.Y1 &gt;&gt; 8' />
								</command>
								<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
									<argument exp='.Y1' />
								</command>
								<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
									<argument exp='.X2 &gt;&gt; 8' />
								</command>
								<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
									<argument exp='.X2' />
								</command>
								<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
									<argument exp='.Y2 &gt;&gt; 8' />
								</command>
								<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
									<argument exp='.Y2' />
								</command>
								<command class_type='call' title='Set Colour' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
									<argument exp='background_col_var &gt;&gt; 8' />
								</command>
								<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
									<argument exp='background_col_var' />
								</command>
								<command class_type='call' title='Wait For Ack' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Receive' >
									<argument exp='250' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Draw Rectangle' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0xFF' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.Solid' swap='0' >
							<flowline >
								<command class_type='call' title='Draw Solid Rectangle' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
									<argument exp='0xCE' />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Draw Rectangle' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
									<argument exp='0xCF' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Set Coords' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.X1 &gt;&gt; 8' />
						</command>
						<command class_type='call' title='Set Coords' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.X1' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.Y1 &gt;&gt; 8' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.Y1' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.X2 &gt;&gt; 8' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.X2' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.Y2 &gt;&gt; 8' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='.Y2' />
						</command>
						<command class_type='call' title='Set Colour' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='foreground_col_var &gt;&gt; 8' />
						</command>
						<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='foreground_col_var' />
						</command>
						<command class_type='call' title='Wait For Ack' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Receive' >
							<argument exp='250' />
						</command>
						<command class_type='sim' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Base_GLCD' macro='DrawRectangle' >
							<argument exp='.X1' />
							<argument exp='.Y1' />
							<argument exp='.X2' />
							<argument exp='.Y2' />
							<argument exp='.Transparent' />
							<argument exp='.Solid' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Initialise' />
						<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='SetBackgroundColour' >
									<argument exp='255' />
									<argument exp='0' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='ClearDisplay' />
								<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='SetBackgroundColour' >
									<argument exp='0' />
									<argument exp='255' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='ClearDisplay' />
								<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='SetBackgroundColour' >
									<argument exp='0' />
									<argument exp='0' />
									<argument exp='255' />
								</command>
								<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='ClearDisplay' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Initialise' description='The Init macro must be called once to initialise the Graphical LCD display before any other Graphical LCD component macros are called.' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='sim' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='Base_GLCD' macro='Initialise' />
						<command class_type='calculation' title='Reset Display' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='reset_pin = 0' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='100' type='0' />
						<command class_type='calculation' title='Come out of reset' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='reset_pin = 1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Init' />
						<command class_type='delay' title='Wait for reset' cmdcolor='12632064' cmdcolor_sec='16769676' exp='3' type='2' />
						<command class_type='call' title='Flush Receive Buffer' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Receive' >
							<argument exp='10' />
						</command>
						<command class_type='call' title='Flush Receive Buffer' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Receive' >
							<argument exp='10' />
						</command>
						<command class_type='call' title='Flush Receive Buffer' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Receive' >
							<argument exp='10' />
						</command>
						<command class_type='call' title='Flush Receive Buffer' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Receive' >
							<argument exp='10' />
						</command>
						<command class_type='call' title='Send Autobaud Command' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Send' >
							<argument exp='0x55' />
						</command>
						<command class_type='call' title='Wait for Ack' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' component='cal_uart' macro='Receive' >
							<argument exp='250' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='foreground_col_var = FGCOL' />
							<exp exp='background_col_var = BGCOL' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='ClearDisplay' />
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='4384cba9-0bea-4359-8c5b-dcd046aa7778' vmin='5' vmaj='1' codename='Base_GLCD' x='0' y='0' z='0' xsz='0.21875' ysz='0.21875' 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' >
				<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='DisplayMethod' data='000' />
					<value target='EmbedFontSet' data='1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='91b64b1d-b8b2-40f1-b073-e953a91fa234' vmin='1' vmaj='2' codename='cal_uart' x='0' y='5.15143e-14' z='0' xsz='0.005' ysz='0.005' zsz='0.005' 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' >
				<resources />
				<properties />
				<values >
					<value target='UseUART' data='1' />
					<value target='CHANNEL' data='001' />
					<value target='UseTX' data='1' />
					<value target='TX' data='$PORTC.6' />
					<value target='OutputPins' data='000' />
					<value target='TXAlt' data='0' />
					<value target='UseRX' data='1' />
					<value target='RX' data='$PORTC.7' />
					<value target='InputPins' data='085' />
					<value target='RXAlt' data='0' />
					<value target='FLOWEN' data='000' />
					<value target='RTS' data='$PORTC.4' />
					<value target='CTS' data='$PORTC.5' />
					<value target='BAUD_LIST' data='008' />
					<value target='BAUD' data='57600' />
					<value target='DBITS' data='008' />
					<value target='RETURN' data='000' />
					<value target='ECHO' data='000' />
					<value target='INT' data='000' />
					<value target='ScopeTraces' data='0' />
					<value target='ConsoleData' data='0' />
					<value target='ConsoleColumns' data='64' />
					<value target='DataSource' data='000' />
					<value target='com_port' data='020' />
					<value target='Injector' data='000' />
					<value target='REF' data='0' />
					<value target='TX_PORT' data='$PORTC.6' />
					<value target='TX_TRIS' data='$PORTC.6' />
					<value target='TX_PIN' data='6' />
					<value target='RX_PORT' data='$PORTC.7' />
					<value target='RX_TRIS' data='$PORTC.7' />
					<value target='RX_PIN' data='7' />
					<value target='CTS_PORT' data='$PORTC.5' />
					<value target='CTS_PIN' data='5' />
					<value target='CTS_TRIS' data='$PORTC.5' />
					<value target='RTS_PORT' data='$PORTC.4' />
					<value target='RTS_PIN' data='4' />
					<value target='RTS_TRIS' data='$PORTC.4' />
					<value target='REMAPPABLE' data='' />
					<value target='OutputReg' data='000' />
					<value target='InputReg' data='000' />
					<value target='TXRPNUM' data='16' />
					<value target='TXBank' data='b' />
					<value target='RXRPREG' data='RXPPS' />
					<value target='RXBank' data='b' />
					<value target='InjectorHandle' data='0' />
					<value target='UARTName' data='USART1' />
					<value target='UARTClock' data='' />
					<value target='UartNumber' data='' />
					<value target='TXBank2' data='c' />
					<value target='RXBank2' data='c' />
					<value target='TX_ALT' data='' />
					<value target='RX_ALT' data='' />
					<value target='BitDelay' data='17' />
					<value target='ParentName' data='gLCD_EB075_4D' />
					<value target='CompName' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='shape' codename='ear' x='19.65' y='13.65' z='-4.4' xsz='5.7' ysz='6.3' zsz='1.6' 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' >
				<resources />
				<properties />
				<values >
					<value target='Shape' data='201' />
					<value target='Color' data='192' />
					<value target='Outline' data='0' />
					<value target='Thickness' data='0' />
					<value target='Image' data='' />
					<value target='Model' data='this:EB075_Ears.mesh' />
					<value target='Unit' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='shape' codename='ear1' x='-19.65' y='13.65' z='-4.4' xsz='5.7' ysz='6.3' zsz='1.6' xang='0' yang='0' zang='180' xquat='0' yquat='0' zquat='1' wquat='6.12323e-17' visible='1' scadavisible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Shape' data='201' />
					<value target='Color' data='192' />
					<value target='Outline' data='0' />
					<value target='Thickness' data='0' />
					<value target='Image' data='' />
					<value target='Model' data='this:EB075_Ears.mesh' />
					<value target='Unit' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='shape' codename='ear2' x='-19.65' y='-13.65' z='-4.4' xsz='5.7' ysz='6.3' zsz='1.6' xang='0' yang='0' zang='180' xquat='0' yquat='0' zquat='1' wquat='6.12323e-17' visible='1' scadavisible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Shape' data='201' />
					<value target='Color' data='192' />
					<value target='Outline' data='0' />
					<value target='Thickness' data='0' />
					<value target='Image' data='' />
					<value target='Model' data='this:EB075_Ears.mesh' />
					<value target='Unit' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='shape' codename='ear3' x='19.65' y='-13.65' z='-4.4' xsz='5.7' ysz='6.3' zsz='1.6' 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' >
				<resources />
				<properties />
				<values >
					<value target='Shape' data='201' />
					<value target='Color' data='192' />
					<value target='Outline' data='0' />
					<value target='Thickness' data='0' />
					<value target='Image' data='' />
					<value target='Model' data='this:EB075_Ears.mesh' />
					<value target='Unit' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='shape' codename='header' x='-9.65' y='-14.73' z='-8.025' xsz='10.76' ysz='0.6' zsz='11.65' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='0' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Shape' data='201' />
					<value target='Color' data='192' />
					<value target='Outline' data='0' />
					<value target='Thickness' data='0' />
					<value target='Image' data='' />
					<value target='Model' data='this:EB075_Header.mesh' />
					<value target='Unit' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='shape' codename='PCB' x='0' y='0' z='-4.4' xsz='33.6' ysz='33.6' zsz='1.6' 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' >
				<resources />
				<properties />
				<values >
					<value target='Shape' data='201' />
					<value target='Color' data='192' />
					<value target='Outline' data='0' />
					<value target='Thickness' data='0' />
					<value target='Image' data='' />
					<value target='Model' data='this:EB075_PCB.mesh' />
					<value target='Unit' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='shape' codename='ribbon' x='0' y='14.6888' z='-2.9875' xsz='27.6' ysz='9.14725' zsz='4.925' 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' >
				<resources />
				<properties />
				<values >
					<value target='Shape' data='201' />
					<value target='Color' data='192' />
					<value target='Outline' data='0' />
					<value target='Thickness' data='0' />
					<value target='Image' data='' />
					<value target='Model' data='this:EB075_Ribbon.mesh' />
					<value target='Unit' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='shape' codename='SD_Socket' x='9' y='-8.325' z='-6.2' xsz='14' ysz='15.35' zsz='2' 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' >
				<resources />
				<properties />
				<values >
					<value target='Shape' data='201' />
					<value target='Color' data='15790320' />
					<value target='Outline' data='0' />
					<value target='Thickness' data='0' />
					<value target='Image' data='' />
					<value target='Model' data='this:EB075_Mini_SD_Socket.mesh' />
					<value target='Unit' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='shape' codename='shape' x='0' y='0' z='-2.6' xsz='27.6' ysz='27.6' zsz='2' 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' >
				<resources />
				<properties />
				<values >
					<value target='Shape' data='201' />
					<value target='Color' data='16777215' />
					<value target='Outline' data='0' />
					<value target='Thickness' data='0' />
					<value target='Image' data='' />
					<value target='Model' data='this:EB075_Sticky.mesh' />
					<value target='Unit' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='shape' codename='bezel' x='0' y='0' z='-0.8' xsz='33.6' ysz='33.6' zsz='1.6' 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' >
				<resources />
				<properties />
				<values >
					<value target='Shape' data='201' />
					<value target='Color' data='192' />
					<value target='Outline' data='0' />
					<value target='Thickness' data='0' />
					<value target='Image' data='' />
					<value target='Model' data='this:EB075_Screen.mesh' />
					<value target='Unit' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='shape' codename='shape1' x='-9.65' y='-14.73' z='-6.375' xsz='12.7' ysz='2.54' zsz='2.35' 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' >
				<resources />
				<properties />
				<values >
					<value target='Shape' data='0' />
					<value target='Color' data='2960685' />
					<value target='Outline' data='0' />
					<value target='Thickness' data='0' />
					<value target='Image' data='' />
					<value target='Model' data='' />
					<value target='Unit' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<scadaresourcelookup />
	<keymap />
	<panel2d shadows='0' lighting='0' brightness='0' >
		<background rgb='9737364' img='' style='0' />
		<camera xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel2d>
	<panel3d shadows='0' lighting='0' brightness='0' perspective='1' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='0' />
		<camera xe='-31.6389' ye='-55.5604' ze='51.3563' xt='-2.90018' yt='-2.80571' zt='-4.27774' xquat='-0.387945' yquat='0.0988133' zquat='0.226187' wquat='0.888017' />
		<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='Window_Sim' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA8AQAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='FastPlot_Sim' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA8AQAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='FastPlot' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA8AQAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Window' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA8AQAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Ev_Property' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA8AQAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Ev_Init' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA8AQAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA8AQAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SetForegroundColour' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA8AQAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SetBackgroundColour' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA8AQAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='PrintNumber' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA8AQAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Print' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA8AQAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Plot' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA8AQAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Initialise' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA8AQAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='G4D_ReadJoystickGoldelox' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA8AQAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='G4D_InitialiseCard' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA8AQAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='G4D_DisplayVideoFromCard' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA8AQAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='G4D_DisplayImageFromCard' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA8AQAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='DrawRectangle' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA8AQAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='DrawLine' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA8AQAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='DrawEllipse' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA8AQAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='DrawCircle' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA8AQAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ClearDisplay' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA8AQAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='BPlot' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA8AQAAH4DAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
