<root>
<document scada='0' schema='103' license='10,BenR,C9TN1M' title='' description='' fcversion='655616' target='ARD.ATMEGA.Arduino Uno R3 PDIP Flowkit' >
	<config data='' clkspd='16000000' simspd='1' usewdt='0' constif='0' commport='24' Use3V3='0' />
	<plugins >
		<dll_models enabled='1' />
	</plugins>
	<supplement use='0' head='#define FCD FCV' 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>
	<traces />
	<ghost >
		<FK2 >
			<data name='FK2D0' port='4294967295' pin='4294967295' />
			<data name='FK2D1' port='4294967295' pin='4294967295' />
			<data name='FK2D2' port='4294967295' pin='4294967295' />
			<data name='FK2D3' port='4294967295' pin='4294967295' />
			<data name='FK2D4' port='4294967295' pin='4294967295' />
			<data name='FK2D5' port='4294967295' pin='4294967295' />
			<data name='FK2D6' port='4294967295' pin='4294967295' />
			<data name='FK2D7' port='4294967295' pin='4294967295' />
			<data name='FK2D8' port='4294967295' pin='4294967295' />
			<data name='FK2D9' port='4294967295' pin='4294967295' />
			<data name='FK2D10' port='4294967295' pin='4294967295' />
			<data name='FK2D11' port='4294967295' pin='4294967295' />
			<data name='FK2D12' port='4294967295' pin='4294967295' />
			<data name='FK2D13' port='4294967295' pin='4294967295' />
			<data name='FK2D14' port='4294967295' pin='4294967295' />
			<data name='FK2D15' port='4294967295' pin='4294967295' />
			<data name='FK2A0' port='4294967295' pin='4294967295' />
			<data name='FK2A1' port='4294967295' pin='4294967295' />
			<data name='FK2A2' port='4294967295' pin='4294967295' />
			<data name='FK2A3' port='4294967295' pin='4294967295' />
			<data name='FK2A4' port='4294967295' pin='4294967295' />
			<data name='FK2A5' port='4294967295' pin='4294967295' />
		</FK2>
		<ICD >
			<data name='AnalogPrescaleValue' value='19' />
			<data name='DigitalSampleRate' value='100000' />
			<data name='BreakpointCount' value='8' />
			<data name='CallStackDepthCount' value='8' />
			<data name='ClockPort' value='1' />
			<data name='ClockPin' value='1' />
			<data name='DataPort' value='1' />
			<data name='DataPin' value='0' />
			<data name='UseDefaultPins' value='1' />
			<data name='WrapEnabled' value='1' />
			<data name='CommsDelayOverridden' value='0' />
			<data name='CommsDelay' value='11' />
			<data name='CalculatedCommsDelay' value='11' />
			<data name='AnalogEB2PrescaleValue' value='2' />
			<data name='DigitalEB2SampleRate' value='100000' />
		</ICD>
		<pins >
			<digital A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
			<analog A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
		</pins>
	</ghost>
	<components >
		<settings autoimg='0' center='1' unitscale='1' fixedscale='0' fixedx='0' fixedy='0' fixedz='0' headcode='0' />
		<definition guid='b5148d9e-884c-488e-8536-741e7fc4306c' vstate='40' vmin='0' vmaj='2' srcleaf='GLCD_ILI9488.fcfx' visiblename='GLCD (ILI9488)' description='Graphical display component designed to work with the ILI9488 controller IC
Based on the ILI9488 16-bit colour graphical controller IC.
Supports Serial, 8-bit and 16-bit interface modes.' category='Graphical Color' category2='' category3='' bIs2dOnly='1' bIs3dOnly='0' catenable='1' author='Matrix Ltd' manuname='' manucode='' sysinfo='1053467' keywords='' dynamic='1' scadaCompatible='0' embeddedCompatible='1' showmacros='1' iconpath='..\..\icons\components\glcd.png' />
		<component class_type='root' codename='gLCD_ILI9488' panelId='-1' 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='1' comp2dType='0' macronames='$(type)_$(module)__$(macro)' varnames='$(type)_$(module)__$(variable:u)' >
			<resources />
			<properties >
				<property name='Dimensions' hidden='0' >
					<property name='Pixel Width' target='pixel_width' typeid='14' hidden='0' locked='0' info='Width of gLCD canvas measured in pixels.' />
					<property name='Pixel Height' target='pixel_height' typeid='14' hidden='0' locked='0' info='Heigt of gLCD canvas measured in pixels.' />
					<property name='Flip X' target='FlipX' typeid='7' hidden='0' locked='0' info='Flips the horizontal display axis in hardware.' />
					<property name='Flip Y' target='FlipY' typeid='7' hidden='0' locked='0' info='Flips the vertical display axis in hardware.' />
				</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='BGCOL' target='BGCOL' typeid='21' hidden='1' locked='0' info='' />
					<property name='FGCOL' target='FGCOL' typeid='21' hidden='1' locked='0' info='' />
					<property name='Invert Colour' target='InvertColour' typeid='7' hidden='0' locked='0' info='No:  A set output will light the corresponding LED
Yes:  A clear output will light the corresponding LED' />
					<property name='Bit Depth' hidden='0' >
						<property name='Colour 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>
				<property name='Connections' hidden='0' >
					<property name='Connection Type' target='ConnType' typeid='16' hidden='0' locked='0' info='' filter='000Serial Interface
0018 Bit Interface
00216 Bit Interface' />
					<property name='Data Out (MOSI)' target='dataout_pin' typeid='5' hidden='1' locked='0' info='Data pin connection' />
					<property name='Clock (SCL)' target='clock_pin' typeid='5' hidden='1' locked='0' info='Clock pin connection' />
					<property name='Write (WR)' target='wr_pin' typeid='5' hidden='0' locked='0' info='' />
					<property name='Read (RD)' target='rd_pin' typeid='5' hidden='0' locked='0' info='' />
					<property name='Use CS' target='UseCS' typeid='7' hidden='0' locked='0' info='Determines if ther CS pin is used or is connected to ground and always enabled' />
					<property name='Toggle CS' target='ToggleCS' typeid='7' hidden='0' locked='0' info='Allows the CS pin to be toggled by the component when communicating with the display.
No - Allows for better performace, the display is always enabled
Yes - Allows for the display pins to be multiplexed with other functionality without the risk of display corruption' />
					<property name='Chip Select (CS)' target='chip_sel_pin' typeid='5' hidden='0' locked='0' info='Chip select pin connection' />
					<property name='Reg Select (D/C) ' target='dc_pin' typeid='5' hidden='0' locked='0' info='Instruction / Command pin connection' />
					<property name='Use Ports' target='UsePorts' typeid='7' hidden='0' locked='0' info='Allows the 8-bit or 16-bit data to be controlled using 8-bit ports.
Yes - Ports will be used allowing for better data rates
No - individual I/O pins will be used allowing for better flexibility' />
					<property name='Data0' target='data0' typeid='5' hidden='0' locked='0' info='' />
					<property name='Data1' target='data1' typeid='5' hidden='0' locked='0' info='' />
					<property name='Data2' target='data2' typeid='5' hidden='0' locked='0' info='' />
					<property name='Data3' target='data3' typeid='5' hidden='0' locked='0' info='' />
					<property name='Data4' target='data4' typeid='5' hidden='0' locked='0' info='' />
					<property name='Data5' target='data5' typeid='5' hidden='0' locked='0' info='' />
					<property name='Data6' target='data6' typeid='5' hidden='0' locked='0' info='' />
					<property name='Data7' target='data7' typeid='5' hidden='0' locked='0' info='' />
					<property name='Data8' target='data8' typeid='5' hidden='1' locked='0' info='' />
					<property name='Data9' target='data9' typeid='5' hidden='1' locked='0' info='' />
					<property name='Data10' target='data10' typeid='5' hidden='1' locked='0' info='' />
					<property name='Data11' target='data11' typeid='5' hidden='1' locked='0' info='' />
					<property name='Data12' target='data12' typeid='5' hidden='1' locked='0' info='' />
					<property name='Data13' target='data13' typeid='5' hidden='1' locked='0' info='' />
					<property name='Data14' target='data14' typeid='5' hidden='1' locked='0' info='' />
					<property name='Data15' target='data15' typeid='5' hidden='1' locked='0' info='' />
					<property name='Data[7:0]' target='dataport_low' typeid='19' hidden='1' locked='0' info='' />
					<property name='Data[15:8]' target='dataport_high' typeid='19' hidden='1' locked='0' info='' />
					<property name='Use Reset' target='UseReset' typeid='7' hidden='0' locked='0' info='Determines if the reset pin is used or if it is simply connected to VCC' />
					<property name='Reset' target='reset_pin' typeid='5' hidden='0' locked='0' info='Reset pin connection' />
					<property name='Use Backlight Pin' target='UseBacklight' typeid='7' hidden='0' locked='0' info='' />
					<property name='LED' target='led_pin' typeid='5' hidden='0' locked='0' info='LED backlight strobe pin connection' />
					<property name='ESP_OPT' target='ESP_OPT' typeid='7' hidden='1' locked='1' info='' />
				</property>
				<property name='Fonts' folder='Base_GLCD::property_2' hidden='0' >
					<property name='Font Count' target='Base_GLCD::FontCount' typeid='16' hidden='0' locked='0' info='Specifies the number of fonts available to use on the display.' filter='0011
0022
0033
0044' />
					<property name='Font 0' folder='Base_GLCD::property_3' hidden='0' >
						<property name='Font' target='Base_GLCD::gLCD_Font1::Font' typeid='16' hidden='0' locked='0' info='Font picker to decide which font to use on your display.' filter='000Default 8 (legacy)
001Arial 14
002Arial Bold 14
006Callibri 10
005Callibri 11
007Callibri 14
016Callibri Lite 24
015Callibri Black Number 36
003Corsiva 12
004System 7
008Times New Roman 13
009Times New Roman 16
010Verdana 12
014Verdana Number 24
012Fixed Number 15
013Fixed Number 16
011Fixed Number 31
017Tiny 6' />
						<property name='Character Spacing' target='Base_GLCD::gLCD_Font1::FontSpace' typeid='16' hidden='0' locked='0' info='Sets the number of blank pixels between each character when printing text.
Default 1.' filter='0000 Pixels
0011 Pixel
0022 Pixels
0033 Pixels' />
						<property name='Space Width' target='Base_GLCD::gLCD_Font1::SpaceWidth' typeid='16' hidden='0' locked='0' info='Sets the number of horizontal pixels used to represent a space character.' filter='0022
0033
0044
0055
0066
0077
0088' />
					</property>
					<property name='Font 1' folder='Base_GLCD::property_4' hidden='1' >
						<property name='Font' target='Base_GLCD::gLCD_Font2::Font' typeid='16' hidden='0' locked='0' info='Font picker to decide which font to use on your display.' filter='000Default 8 (legacy)
001Arial 14
002Arial Bold 14
006Callibri 10
005Callibri 11
007Callibri 14
016Callibri Lite 24
015Callibri Black Number 36
003Corsiva 12
004System 7
008Times New Roman 13
009Times New Roman 16
010Verdana 12
014Verdana Number 24
012Fixed Number 15
013Fixed Number 16
011Fixed Number 31
017Tiny 6' />
						<property name='Character Spacing' target='Base_GLCD::gLCD_Font2::FontSpace' typeid='16' hidden='0' locked='0' info='Sets the number of blank pixels between each character when printing text.
Default 1.' filter='0000 Pixels
0011 Pixel
0022 Pixels
0033 Pixels' />
						<property name='Space Width' target='Base_GLCD::gLCD_Font2::SpaceWidth' typeid='16' hidden='0' locked='0' info='Sets the number of horizontal pixels used to represent a space character.' filter='0022
0033
0044
0055
0066
0077
0088' />
					</property>
					<property name='Font 2' folder='Base_GLCD::property_5' hidden='1' >
						<property name='Font' target='Base_GLCD::gLCD_Font3::Font' typeid='16' hidden='0' locked='0' info='Font picker to decide which font to use on your display.' filter='000Default 8 (legacy)
001Arial 14
002Arial Bold 14
006Callibri 10
005Callibri 11
007Callibri 14
016Callibri Lite 24
015Callibri Black Number 36
003Corsiva 12
004System 7
008Times New Roman 13
009Times New Roman 16
010Verdana 12
014Verdana Number 24
012Fixed Number 15
013Fixed Number 16
011Fixed Number 31
017Tiny 6' />
						<property name='Character Spacing' target='Base_GLCD::gLCD_Font3::FontSpace' typeid='16' hidden='0' locked='0' info='Sets the number of blank pixels between each character when printing text.
Default 1.' filter='0000 Pixels
0011 Pixel
0022 Pixels
0033 Pixels' />
						<property name='Space Width' target='Base_GLCD::gLCD_Font3::SpaceWidth' typeid='16' hidden='0' locked='0' info='Sets the number of horizontal pixels used to represent a space character.' filter='0022
0033
0044
0055
0066
0077
0088' />
					</property>
					<property name='Font 3' folder='Base_GLCD::property_6' hidden='1' >
						<property name='Font' target='Base_GLCD::gLCD_Font4::Font' typeid='16' hidden='0' locked='0' info='Font picker to decide which font to use on your display.' filter='000Default 8 (legacy)
001Arial 14
002Arial Bold 14
006Callibri 10
005Callibri 11
007Callibri 14
016Callibri Lite 24
015Callibri Black Number 36
003Corsiva 12
004System 7
008Times New Roman 13
009Times New Roman 16
010Verdana 12
014Verdana Number 24
012Fixed Number 15
013Fixed Number 16
011Fixed Number 31
017Tiny 6' />
						<property name='Character Spacing' target='Base_GLCD::gLCD_Font4::FontSpace' typeid='16' hidden='0' locked='0' info='Sets the number of blank pixels between each character when printing text.
Default 1.' filter='0000 Pixels
0011 Pixel
0022 Pixels
0033 Pixels' />
						<property name='Space Width' target='Base_GLCD::gLCD_Font4::SpaceWidth' typeid='16' hidden='0' locked='0' info='Sets the number of horizontal pixels used to represent a space character.' filter='0022
0033
0044
0055
0066
0077
0088' />
					</property>
				</property>
				<property name='Simulation' folder='property_1' hidden='0' >
					<property name='Component Label' target='Base_GLCD::ComponentLabel' typeid='16' hidden='0' locked='0' info='' filter='000Same as Handle
001Custom' />
					<property name='User Label Text' target='Base_GLCD::GdiText1::sText' typeid='11' hidden='1' locked='1' info='Text to display' />
					<property name='Component Label Scale' target='Base_GLCD::GdiText1::dScale' typeid='15' hidden='0' locked='0' info='The label scale can be change if the amout of text is too wide for the display ' />
					<property name='Display Method' target='DisplayMethod' typeid='16' hidden='1' 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='Physical Orientation' target='Base_GLCD::PhysicalOrientation' typeid='16' hidden='0' locked='0' info='Rotates the simulated canvas to match the orientation of real world hardware.' filter='0000 (Default)
0011
0022
0033' />
				</property>
			</properties>
			<values >
				<value target='pixel_width' data='320' />
				<value target='pixel_height' data='480' />
				<value target='FlipX' data='1' />
				<value target='FlipY' data='0' />
				<value target='monochrome' data='0' />
				<value target='foreground_colour' data='0' />
				<value target='background_colour' data='16777215' />
				<value target='BGCOL' data='65535' />
				<value target='FGCOL' data='0' />
				<value target='InvertColour' data='0' />
				<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='ConnType' data='001' />
				<value target='dataout_pin' data='$PORTB.0' />
				<value target='clock_pin' data='$PORTB.1' />
				<value target='wr_pin' data='$PORTC.1' />
				<value target='rd_pin' data='$PORTC.0' />
				<value target='UseCS' data='1' />
				<value target='ToggleCS' data='0' />
				<value target='chip_sel_pin' data='$PORTC.3' />
				<value target='dc_pin' data='$PORTC.2' />
				<value target='UsePorts' data='0' />
				<value target='data0' data='$PORTB.0' />
				<value target='data1' data='$PORTB.1' />
				<value target='data2' data='$PORTD.2' />
				<value target='data3' data='$PORTD.3' />
				<value target='data4' data='$PORTD.4' />
				<value target='data5' data='$PORTD.5' />
				<value target='data6' data='$PORTD.6' />
				<value target='data7' data='$PORTD.7' />
				<value target='data8' data='$PORTD.0' />
				<value target='data9' data='$PORTD.1' />
				<value target='data10' data='$PORTD.2' />
				<value target='data11' data='$PORTD.3' />
				<value target='data12' data='$PORTD.4' />
				<value target='data13' data='$PORTD.5' />
				<value target='data14' data='$PORTD.6' />
				<value target='data15' data='$PORTD.7' />
				<value target='dataport_low' data='$PORTC0' />
				<value target='dataport_high' data='$PORTD0' />
				<value target='UseReset' data='1' />
				<value target='reset_pin' data='$PORTC.4' />
				<value target='UseBacklight' data='1' />
				<value target='led_pin' data='$PORTC.5' />
				<value target='ESP_OPT' data='0' />
				<value target='Base_GLCD::FontCount' data='001' />
				<value target='Base_GLCD::gLCD_Font1::Font' data='000' />
				<value target='Base_GLCD::gLCD_Font1::FontSpace' data='001' />
				<value target='Base_GLCD::gLCD_Font1::SpaceWidth' data='004' />
				<value target='Base_GLCD::gLCD_Font2::Font' data='005' />
				<value target='Base_GLCD::gLCD_Font2::FontSpace' data='001' />
				<value target='Base_GLCD::gLCD_Font2::SpaceWidth' data='004' />
				<value target='Base_GLCD::gLCD_Font3::Font' data='002' />
				<value target='Base_GLCD::gLCD_Font3::FontSpace' data='001' />
				<value target='Base_GLCD::gLCD_Font3::SpaceWidth' data='004' />
				<value target='Base_GLCD::gLCD_Font4::Font' data='015' />
				<value target='Base_GLCD::gLCD_Font4::FontSpace' data='001' />
				<value target='Base_GLCD::gLCD_Font4::SpaceWidth' data='004' />
				<value target='Base_GLCD::ComponentLabel' data='000' />
				<value target='Base_GLCD::GdiText1::sText' data='gLCD_ILI9488' />
				<value target='Base_GLCD::GdiText1::dScale' data='1.000000' />
				<value target='DisplayMethod' data='000' />
				<value target='Base_GLCD::PhysicalOrientation' data='000' />
			</values>
			<events >
				<event class='Components' event='Initialise' target='Ev_Initialise' />
				<event class='Components' event='Resize' target='Ev_Resize' />
				<event class='Components' event='Property' target='Ev_Property' />
				<event class='Simulation' event='Start' target='Ev_Initialise' />
			</events>
			<apis >
				<api name='ReadFontWidth' alt='ReadFontWidth' type='5' proto='0' />
				<api name='BacklightOn' alt='BacklightOn' type='1' proto='1' />
				<api name='SetFontScaler' alt='SetFontScalerSim' type='1' proto='1' />
				<api name='LCD_Write_Reg' alt='LCD_Write_Reg' type='1' proto='1' />
				<api name='PrintNumber' alt='PrintNumber_Sim' type='1' proto='1' />
				<api name='DrawLine' alt='DrawLine_Sim' type='1' proto='1' />
				<api name='LCD_Write_Data8' alt='LCD_Write_Data8' type='1' proto='1' />
				<api name='Plot' alt='PlotSim' type='1' proto='1' />
				<api name='DrawEllipse' alt='DrawEllipseSim' type='1' proto='1' />
				<api name='FastPlot' alt='FastPlot_Sim' type='1' proto='1' />
				<api name='SetDisplayOrientation' alt='SetDisplayOrientationSim' type='1' proto='1' />
				<api name='BacklightOff' alt='BacklightOff' type='1' proto='1' />
				<api name='BPlot' alt='BPlotSim' type='1' proto='1' />
				<api name='Window' alt='Window_Sim' type='1' proto='1' />
				<api name='ReadFontStat' alt='ReadFontStat' type='5' proto='0' />
				<api name='Print' alt='PrintSim' type='1' proto='1' />
				<api name='ClearDisplay' alt='ClearSim' type='1' proto='1' />
				<api name='SetBackgroundColour' alt='SetBGColourSim' type='1' proto='1' />
				<api name='DrawCircle' alt='DrawCircleSim' type='1' proto='1' />
				<api name='SetForegroundColour' alt='SetFGColourSim' type='1' proto='1' />
				<api name='DrawRectangle' alt='DrawRectangleSim' type='1' proto='1' />
				<api name='Initialise' alt='InitSim' type='1' proto='1' />
			</apis>
			<variables >
				<variable public='0' >
					<def class_type='variable' name='background_col_var' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='bg_col_var' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='3' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='foreground_col_var' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Parameter' type='s16' description='' isconst='1' isHidden='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='false' type='b1' description='' isconst='1' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Command' type='s16' description='' isconst='1' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='col' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='fg_col_var' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='3' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Orientation' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ScaleY' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ScaleX' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='row' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='true' type='b1' description='' isconst='1' isHidden='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='SetFontScalerSim' description='Allows the fonts to be scaled up by multiplying the number of pixels on the X and Y.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='ScaleX' type='u8' description='Sets the horizontal scale of the font, default 1' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='ScaleY' type='u8' description='Sets the vertical scale of the font, default 1' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='Base_GLCD' macro='SetFontScaler' >
							<argument exp='.ScaleX' />
							<argument exp='.ScaleY' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ReadFontWidth' description='Reads the number of pixel columns used in the selected font' statediag='0' >
						<return name='Return' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Font' type='u8' description='Font selection range: 0 to (NumFonts - 1)' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Character' type='u8' description='ASCII character to get the pixel width e.g. &apos;A&apos; or 65' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='ReadFontWidth' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='.Return = Base_GLCD :: ReadFontWidth (.Font, .Character)' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ClearSim' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='sim' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='Base_GLCD' macro='ClearDisplay' />
					</flowline>
				</macro>
				<macro >
					<flowline name='BacklightOn' description='Sets the backlight enable pin allowing the display backlight to switch on.
Switching the backlight on and off at high speed allow the light to be dimmed.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='UseBacklight' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='led_pin = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='FastBPlot' description='Sets a pixel with the current foreground colour at current pixel location.
Not compatible with orientations other than 0.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='temp' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Bus16' >
							<argument exp='0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SetFontScaler' description='Allows the fonts to be scaled up by multiplying the number of pixels on the X and Y.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='ScaleX' type='u8' description='Sets the horizontal scale of the font, default 1' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='ScaleY' type='u8' description='Sets the vertical scale of the font, default 1' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.ScaleX &gt; 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='ScaleX = .ScaleX' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='ScaleX = 1' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.ScaleY &gt; 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='ScaleY = .ScaleY' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='ScaleY = 1' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='LCD_Write_Reg' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='data' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='dc_pin = 0' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Bus8' >
							<argument exp='.data' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='LCD_Write_Bus16' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='data' type='b1' description='0=BG, 1=FG' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='dat' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='idx' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='UseCS &amp;&amp; ToggleCS' swap='0' >
							<flowline >
								<command class_type='calculation' title='Enable CS' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='chip_sel_pin = 0' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='ConnType = 0' swap='0' >
							<flowline >
								<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='2' forvar='.idx' exp='3' >
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.data' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
													<exp exp='.dat = fg_col_var[.idx]' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
													<exp exp='.dat = bg_col_var[.idx]' />
												</command>
											</flowline>
										</command>
										<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='2' exp='8' >
											<flowline >
												<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.dat &amp; 0x80' swap='0' >
													<flowline >
														<command class_type='calculation' title='Data High' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
															<exp exp='dataout_pin = 1' />
														</command>
													</flowline>
													<flowline >
														<command class_type='calculation' title='Data Low' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
															<exp exp='dataout_pin = 0' />
														</command>
													</flowline>
												</command>
												<command class_type='calculation' title='Clock Low' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
													<exp exp='clock_pin = 0' />
												</command>
												<command class_type='calculation' title='Clock High' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
													<exp exp='clock_pin = 1' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
													<exp exp='.dat = .dat &lt;&lt; 1' />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='ConnType = 1' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.data' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='.dat = foreground_col_var' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='.dat = background_col_var' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='UsePorts' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='dataport_low = .dat &gt;&gt; 8' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='data0 = ((.dat &gt;&gt; 8) &amp; 0x01)' />
											<exp exp='data1 = ((.dat &gt;&gt; 9) &amp; 0x01)' />
											<exp exp='data2 = ((.dat &gt;&gt; 10) &amp; 0x01)' />
											<exp exp='data3 = ((.dat &gt;&gt; 11) &amp; 0x01)' />
											<exp exp='data4 = ((.dat &gt;&gt; 12) &amp; 0x01)' />
											<exp exp='data5 = ((.dat &gt;&gt; 13) &amp; 0x01)' />
											<exp exp='data6 = ((.dat &gt;&gt; 14) &amp; 0x01)' />
											<exp exp='data7 = ((.dat &gt;&gt; 15) &amp; 0x01)' />
										</command>
									</flowline>
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='wr_pin = 0' />
									<exp exp='wr_pin = 1' />
									<exp exp='' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='UsePorts' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='dataport_low = .dat' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='data0 = (.dat &amp; 0x01)' />
											<exp exp='data1 = ((.dat &gt;&gt; 1) &amp; 0x01)' />
											<exp exp='data2 = ((.dat &gt;&gt; 2) &amp; 0x01)' />
											<exp exp='data3 = ((.dat &gt;&gt; 3) &amp; 0x01)' />
											<exp exp='data4 = ((.dat &gt;&gt; 4) &amp; 0x01)' />
											<exp exp='data5 = ((.dat &gt;&gt; 5) &amp; 0x01)' />
											<exp exp='data6 = ((.dat &gt;&gt; 6) &amp; 0x01)' />
											<exp exp='data7 = ((.dat &gt;&gt; 7) &amp; 0x01)' />
										</command>
									</flowline>
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='wr_pin = 0' />
									<exp exp='wr_pin = 1' />
									<exp exp='' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='ConnType = 2' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.data' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='.dat = foreground_col_var' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='.dat = background_col_var' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='ESP_OPT' swap='0' >
									<flowline >
										<command class_type='native' title='Code' ccode='GPIO.out_w1ts = FCL_DAT;
FCL_DAT = ~FCL_DAT;
GPIO.out_w1tc = FCL_DAT;' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' language='C' />
									</flowline>
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='UsePorts' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
													<exp exp='dataport_low = .dat' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
													<exp exp='dataport_high = .dat &gt;&gt; 8' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
													<exp exp='data0 = (.dat &amp; 0x01)' />
													<exp exp='data1 = (.dat &amp; 0x02)' />
													<exp exp='data2 = (.dat &amp; 0x04)' />
													<exp exp='data3 = (.dat &amp; 0x08)' />
													<exp exp='data4 = (.dat &amp; 0x10)' />
													<exp exp='data5 = (.dat &amp; 0x20)' />
													<exp exp='data6 = (.dat &amp; 0x40)' />
													<exp exp='data7 = (.dat &amp; 0x80)' />
													<exp exp='data8 = (.dat &amp; 0x0100)' />
													<exp exp='data9 = (.dat &amp; 0x0200)' />
													<exp exp='data10 = (.dat &amp; 0x400)' />
													<exp exp='data11 = (.dat &amp; 0x800)' />
													<exp exp='data12 = (.dat &amp; 0x1000)' />
													<exp exp='data13 = (.dat &amp; 0x2000)' />
													<exp exp='data14 = (.dat &amp; 0x4000)' />
													<exp exp='data15 = (.dat &amp; 0x8000)' />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='wr_pin = 0' />
									<exp exp='wr_pin = 1' />
									<exp exp='' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='UseCS &amp;&amp; ToggleCS' swap='0' >
							<flowline >
								<command class_type='calculation' title='Disable CS' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='chip_sel_pin = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='PrintNumber' description='This macro prints a decimal number to the Graphical LCD.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Number' type='s16' description='Byte or Integer number to send to the display.' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='X' type='u16' description='X pixel coordinate to set the output string position.' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y' type='u16' description='Y pixel coordinate to set the output string position.' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Font' type='u8' description='Range: 0 to 31 - 0=5x8, 1=10x8, 2=10x16, 3=5x16, 4-31=Extended Sizes' isconst='0' isHidden='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' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='temp' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='8' />
						</local>
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='.temp = ToString$ (.Number)' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Print' >
							<argument exp='.temp' />
							<argument exp='.X' />
							<argument exp='.Y' />
							<argument exp='.Font' />
							<argument exp='.Transparent' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Ev_Initialise' description='Initialisation routine for the component' statediag='0' >
						<return name='Return' type='u32' description='Non-zero to prevent initialisation' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Ev_Property' />
					</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.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='X2' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y2' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='C1' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='M1' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='D1' type='s16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='PixelX' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='PixelY' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Yinc' type='s16' description='' isconst='0' isHidden='0' isinit='1' usrinit='1' setinit='1' />
						<local name='Xinc' type='s16' description='' isconst='0' isHidden='0' isinit='1' usrinit='1' setinit='1' />
						<local name='Straight' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='.PixelX = .X2 - .X1' />
							<exp exp='.PixelY = .Y2 - .Y1' />
						</command>
						<command class_type='decision' title='If negative X direction' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.PixelX &lt; 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='.Xinc = -1' />
									<exp exp='.PixelX = .PixelX * -1' />
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.PixelX = 0' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='.Straight = 1' />
											<exp exp='.PixelX = 1' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='If negative Y direction' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.PixelY &lt; 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='.Yinc = -1' />
									<exp exp='.PixelY = .PixelY * -1' />
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.PixelY = 0' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='.Straight = 1' />
											<exp exp='.PixelY = 1' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.Straight' swap='0' >
							<flowline >
								<command class_type='call' title='User Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Window' >
									<argument exp='.X1' />
									<argument exp='.Y1' />
									<argument exp='.X2' />
									<argument exp='.Y2' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='.PixelX = (.PixelX * .PixelY) + 1' />
									<exp exp='' />
								</command>
								<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='2' exp='.PixelX' >
									<flowline >
										<command class_type='call' title='User Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='FastPlot' />
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.PixelY &lt;= .PixelX' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='.C1 = 2 * .PixelX' />
											<exp exp='.M1 = 2 * .PixelY' />
										</command>
										<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='0' exp='.X1 != .X2' >
											<flowline >
												<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Plot' >
													<argument exp='.X1' />
													<argument exp='.Y1' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
													<exp exp='.X1 = .X1 + .Xinc' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
													<exp exp='.D1 = .D1 + .M1' />
												</command>
												<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.D1 &gt; .PixelX' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
															<exp exp='.Y1 = .Y1 + .Yinc' />
														</command>
														<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
															<exp exp='.D1 = .D1 - .C1' />
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='.C1 = 2 * .PixelY' />
											<exp exp='.M1 = 2 * .PixelX' />
										</command>
										<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='0' exp='.Y1 != .Y2' >
											<flowline >
												<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Plot' >
													<argument exp='.X1' />
													<argument exp='.Y1' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
													<exp exp='.Y1 = .Y1 + .Yinc' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
													<exp exp='.D1 = .D1 + .M1' />
												</command>
												<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.D1 &gt; .PixelY' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
															<exp exp='.X1 = .X1 + .Xinc' />
														</command>
														<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
															<exp exp='.D1 = .D1 - .C1' />
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
								<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Plot' >
									<argument exp='.X1' />
									<argument exp='.Y1' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='PrintNumber_Sim' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Number' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='X' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Font' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Transparent' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='temp' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='6' />
						</local>
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='.temp = ToString$ (.Number)' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='PrintSim' >
							<argument exp='.temp' />
							<argument exp='.X' />
							<argument exp='.Y' />
							<argument exp='.Font' />
							<argument exp='.Transparent' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='LCD_Write_Data8' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='data' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='dc_pin = 1' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Bus8' >
							<argument exp='.data' />
						</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.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='temp' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='Base_GLCD' macro='FastPlot' />
					</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' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='X' type='u16' description='X Coordinate for the center of the circle' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y' type='u16' description='Y coordinate for the center of the circle' isconst='0' isHidden='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' isHidden='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' isHidden='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' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Solid' type='u8' description='0=Use Transparent Setting / 1=Fill with foreground colour' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='err' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='CurX' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='CurY' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='BGCol' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='FGCol' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Rep' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='e2' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='K' type='f32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<command class_type='decision' title='Draw the circle in solid foreground' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.Solid = 1' swap='0' >
							<flowline >
								<command class_type='label' title='Connection Point' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' labelid='0' labelname='A' />
								<command class_type='calculation' title='Start Locations' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='.CurX = 0' />
									<exp exp='.CurY = 0 - .YRadius' />
								</command>
								<command class_type='calculation' title='Calculate Decision Variable' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='.err = 2 - (2 * .XRadius)' />
								</command>
								<command class_type='calculation' title='Start K' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='.K = FLOAT (FLOAT .YRadius / FLOAT .XRadius)' />
								</command>
								<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='0' exp='.CurY &lt;= 0' start='0' >
									<flowline >
										<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' 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='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' 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='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='.e2 = .err' />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.e2 &lt;= .CurX' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
													<exp exp='.CurX = .CurX + 1' />
													<exp exp='.err = .err + ((.CurX * 2) + 1)' />
													<exp exp='' />
												</command>
												<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='(0 - .CurY == .CurX) &amp;&amp; (.e2 &lt;= .CurY)' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
															<exp exp='.e2 = 0' />
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.e2 &gt; .CurY' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
													<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='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.Transparent = 1' swap='0' >
									<flowline >
										<command class_type='label' title='Connection Point' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' labelid='1' labelname='B' />
										<command class_type='calculation' title='Start Locations' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='.CurX = 0' />
											<exp exp='.CurY = 0 - .YRadius' />
										</command>
										<command class_type='calculation' title='Calculate Decision Variable' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='.err = 2 - (2 * .XRadius)' />
										</command>
										<command class_type='calculation' title='Start K' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='.K = FLOAT (FLOAT .YRadius / FLOAT .XRadius)' />
										</command>
										<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='0' exp='.CurY &lt;= 0' start='0' >
											<flowline >
												<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Plot' >
													<argument exp='.X - (.CurX / .K)' />
													<argument exp='.Y + .CurY' />
												</command>
												<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Plot' >
													<argument exp='.X + (.CurX / .K)' />
													<argument exp='.Y + .CurY' />
												</command>
												<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Plot' >
													<argument exp='.X + (.CurX / .K)' />
													<argument exp='.Y - .CurY' />
												</command>
												<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Plot' >
													<argument exp='.X - (.CurX / .K)' />
													<argument exp='.Y - .CurY' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
													<exp exp='.e2 = .err' />
												</command>
												<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.e2 &lt;= .CurX' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
															<exp exp='.CurX = .CurX + 1' />
															<exp exp='.err = .err + ((.CurX * 2) + 1)' />
															<exp exp='' />
														</command>
														<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='(0 - .CurY == .CurX) &amp;&amp; (.e2 &lt;= .CurY)' swap='0' >
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
																	<exp exp='.e2 = 0' />
																</command>
															</flowline>
															<flowline />
														</command>
													</flowline>
													<flowline />
												</command>
												<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.e2 &gt; .CurY' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
															<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='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='.FGCol = foreground_col_var' />
											<exp exp='.BGCol = background_col_var' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='foreground_col_var = .BGCol' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='.Rep = 1' />
										</command>
										<command class_type='goto' title='Goto Connection Point' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' labelid='0' labelname='' />
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.Rep = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='.Rep = .Rep + 1' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='foreground_col_var = .FGCol' />
								</command>
								<command class_type='goto' title='Goto Connection Point' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' 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.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Window' >
							<argument exp='.X1' />
							<argument exp='.Y1' />
							<argument exp='.X1' />
							<argument exp='.Y1' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Bus16' >
							<argument exp='1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='PlotSim' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='Base_GLCD' macro='Plot' >
							<argument exp='.X1' />
							<argument exp='.Y1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SetDisplayOrientationSim' description='Controls the way text is printed out on the display allowing several different orientations. Default is 0.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Orientation' type='u8' description='0=Default, 1=90°CW, 2=180°CW, 3=270°CW' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='Base_GLCD' macro='SetDisplayOrientation' >
							<argument exp='.Orientation' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='InitSim' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='sim' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='Base_GLCD' macro='Initialise' />
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='foreground_col_var = foreground_colour' />
							<exp exp='background_col_var = background_colour' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SendByte' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Command' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='LCD_Out' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='dc_pin = .Command' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='2' exp='8' >
							<flowline >
								<command class_type='calculation' title='Clock Low' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='clock_pin = 0' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.LCD_Out &amp; 0x80' swap='0' >
									<flowline >
										<command class_type='calculation' title='Data High' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='dataout_pin = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Data Low' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='dataout_pin = 0' />
										</command>
									</flowline>
								</command>
								<command class_type='calculation' title='Clock High' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='clock_pin = 1' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='.LCD_Out = .LCD_Out &lt;&lt; 1' />
								</command>
							</flowline>
						</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.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='temp' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Bus16' >
							<argument exp='1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SetBGColourSim' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Red' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Green' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Blue' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='colour' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='Base_GLCD' macro='SetBackgroundColour' >
							<argument exp='.Red' />
							<argument exp='.Green' />
							<argument exp='.Blue' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='DrawLine_Sim' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='X2' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y2' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='C1' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='M1' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='D1' type='s16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='PixelX' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='PixelY' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Yinc' type='s16' description='' isconst='0' isHidden='0' isinit='1' usrinit='1' setinit='1' />
						<local name='Xinc' type='s16' description='' isconst='0' isHidden='0' isinit='1' usrinit='1' setinit='1' />
						<command class_type='sim' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='Base_GLCD' macro='DrawLine' >
							<argument exp='.X1' />
							<argument exp='.Y1' />
							<argument exp='.X2' />
							<argument exp='.Y2' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SetDisplayOrientation' description='Controls the way data is printed out on the display allowing multiple different viewing orientations. Default is 0.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Orientation' type='u8' description='0=Default, 1=90°CW, 2=180°CW, 3=270°CW' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='Orientation = .Orientation' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Ev_Property' description='Sent when a property has been changed by the User' statediag='0' >
						<return name='Return' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Blue' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Green' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Red' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Colour' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='str' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<command class_type='sim' title='Panel' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' 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='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' 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='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.CopyValue' >
							<argument exp='this' />
							<argument exp='Base_GLCD' />
							<argument exp='&quot;Monochrome&quot;' />
						</command>
						<command class_type='sim' title='Panel' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' 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='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' 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='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' 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='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' 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='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' 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='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' 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='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.CopyValue' >
							<argument exp='this' />
							<argument exp='Base_GLCD' />
							<argument exp='&quot;DisplayMethod&quot;' />
						</command>
						<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
							<argument exp='this' />
							<argument exp='&quot;led_pin&quot;' />
							<argument exp='UseBacklight' />
						</command>
						<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
							<argument exp='this' />
							<argument exp='&quot;reset_pin&quot;' />
							<argument exp='UseReset' />
						</command>
						<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
							<argument exp='this' />
							<argument exp='&quot;ToggleCS&quot;' />
							<argument exp='UseCS' />
						</command>
						<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
							<argument exp='this' />
							<argument exp='&quot;chip_sel_pin&quot;' />
							<argument exp='UseCS' />
						</command>
						<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='ConnType' >
							<case >
								<flowline >
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;colour_bit_depth&quot;' />
										<argument exp='18' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;red_bit_depth&quot;' />
										<argument exp='6' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;green_bit_depth&quot;' />
										<argument exp='6' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;blue_bit_depth&quot;' />
										<argument exp='6' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;dataout_pin&quot;' />
										<argument exp='1' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;clock_pin&quot;' />
										<argument exp='1' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;wr_pin&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;rd_pin&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;UsePorts&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;dataport_low&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;dataport_high&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data0&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data1&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data2&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data3&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data4&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data5&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data6&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data7&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data8&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data9&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data10&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data11&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data12&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data13&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data14&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data15&quot;' />
										<argument exp='0' />
									</command>
								</flowline>
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;colour_bit_depth&quot;' />
										<argument exp='16' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;red_bit_depth&quot;' />
										<argument exp='5' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;green_bit_depth&quot;' />
										<argument exp='6' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;blue_bit_depth&quot;' />
										<argument exp='5' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;dataout_pin&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;clock_pin&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;wr_pin&quot;' />
										<argument exp='1' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;rd_pin&quot;' />
										<argument exp='1' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;UsePorts&quot;' />
										<argument exp='1' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;dataport_high&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='UsePorts' swap='0' >
										<flowline >
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;dataport_low&quot;' />
												<argument exp='1' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data0&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data1&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data2&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data3&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data4&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data5&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data6&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data7&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data8&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data9&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data10&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data11&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data12&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data13&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data14&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data15&quot;' />
												<argument exp='0' />
											</command>
										</flowline>
										<flowline >
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;dataport_low&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data0&quot;' />
												<argument exp='1' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data1&quot;' />
												<argument exp='1' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data2&quot;' />
												<argument exp='1' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data3&quot;' />
												<argument exp='1' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data4&quot;' />
												<argument exp='1' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data5&quot;' />
												<argument exp='1' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data6&quot;' />
												<argument exp='1' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data7&quot;' />
												<argument exp='1' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data8&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data9&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data10&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data11&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data12&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data13&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data14&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data15&quot;' />
												<argument exp='0' />
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;colour_bit_depth&quot;' />
										<argument exp='16' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;red_bit_depth&quot;' />
										<argument exp='5' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;green_bit_depth&quot;' />
										<argument exp='6' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;blue_bit_depth&quot;' />
										<argument exp='5' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;dataout_pin&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;clock_pin&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;wr_pin&quot;' />
										<argument exp='1' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;rd_pin&quot;' />
										<argument exp='1' />
									</command>
									<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;UsePorts&quot;' />
										<argument exp='1' />
									</command>
									<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='UsePorts' swap='0' >
										<flowline >
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;dataport_low&quot;' />
												<argument exp='1' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;dataport_high&quot;' />
												<argument exp='1' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data0&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data1&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data2&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data3&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data4&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data5&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data6&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data7&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data8&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data9&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data10&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data11&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data12&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data13&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data14&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data15&quot;' />
												<argument exp='0' />
											</command>
										</flowline>
										<flowline >
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;dataport_low&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;dataport_high&quot;' />
												<argument exp='0' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data0&quot;' />
												<argument exp='1' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data1&quot;' />
												<argument exp='1' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data2&quot;' />
												<argument exp='1' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data3&quot;' />
												<argument exp='1' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data4&quot;' />
												<argument exp='1' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data5&quot;' />
												<argument exp='1' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data6&quot;' />
												<argument exp='1' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data7&quot;' />
												<argument exp='1' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data8&quot;' />
												<argument exp='1' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data9&quot;' />
												<argument exp='1' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data10&quot;' />
												<argument exp='1' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data11&quot;' />
												<argument exp='1' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data12&quot;' />
												<argument exp='1' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data13&quot;' />
												<argument exp='1' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data14&quot;' />
												<argument exp='1' />
											</command>
											<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetVisible' >
												<argument exp='this' />
												<argument exp='&quot;data15&quot;' />
												<argument exp='1' />
											</command>
										</flowline>
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='sim' title='Built-in Function' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetValue' >
							<argument exp='this' />
							<argument exp='&quot;ESP_OPT&quot;' />
							<argument exp='0' />
						</command>
						<command class_type='decision' title='16-bit mode?' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='ConnType = 2' swap='0' >
							<flowline >
								<command class_type='sim' title='Built-in Function' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='FCD.GetItemValue' >
									<return exp='.str' />
									<argument exp='&quot;device&quot;' />
									<argument exp='&quot;namealt&quot;' />
									<argument exp='&quot;&quot;' />
								</command>
								<command class_type='decision' title='Check for ESP32-S3' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='Compare$(&quot;esp32s3&quot;,.str,0) == 0' swap='0' >
									<flowline >
										<command class_type='decision' title='Check for Use Ports' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='UsePorts' swap='0' >
											<flowline >
												<command class_type='sim' title='Switch on ESP direct register optimisation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetValue' >
													<argument exp='this' />
													<argument exp='&quot;ESP_OPT&quot;' />
													<argument exp='1' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='.Red = foreground_colour &amp; 0xFF' />
							<exp exp='.Red = .Red &gt;&gt; (8 - red_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 - 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))' />
							<exp exp='' />
							<exp exp='' />
						</command>
						<command class_type='sim' title='Simulation' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetValue' >
							<argument exp='this' />
							<argument exp='&quot;FGCOL&quot;' />
							<argument exp='.Colour' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<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='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Component.Property.SetValue' >
							<argument exp='this' />
							<argument exp='&quot;BGCOL&quot;' />
							<argument exp='.Colour' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='BacklightOff' description='Clears the backlight enable pin allowing the display backlight to switch off.
Switching the backlight on and off at high speed allow the light to be dimmed.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='UseBacklight' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='led_pin = 0' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='DrawEllipseSim' description='Draws an ellipse object on the display with the center of the ellipse at the location X,Y' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='X' type='u16' description='X Coordinate for the center of the circle' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y' type='u16' description='Y coordinate for the center of the circle' isconst='0' isHidden='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' isHidden='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' isHidden='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' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Solid' type='u8' description='0=Use Transparent Setting / 1=Fill with foreground colour' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='err' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='CurX' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='CurY' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='BGCol' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='FGCol' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Rep' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='e2' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='K' type='f32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<command class_type='sim' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='Base_GLCD' macro='DrawEllipse' >
							<argument exp='.X' />
							<argument exp='.Y' />
							<argument exp='.XRadius' />
							<argument exp='.YRadius' />
							<argument exp='.Transparent' />
							<argument exp='.Solid' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='BPlot' description='Sets a pixel with the current background colour at pixel location X, Y.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Window' >
							<argument exp='.X1' />
							<argument exp='.Y1' />
							<argument exp='.X1' />
							<argument exp='.Y1' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Bus16' >
							<argument exp='0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SetFGColourSim' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Red' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Green' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Blue' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='colour' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='Base_GLCD' macro='SetForegroundColour' >
							<argument exp='.Red' />
							<argument exp='.Green' />
							<argument exp='.Blue' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Window_Sim' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='X2' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y2' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='Base_GLCD' macro='Window' >
							<argument exp='.X1' />
							<argument exp='.Y1' />
							<argument exp='.X2' />
							<argument exp='.Y2' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='DrawRectangleSim' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='X2' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y2' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Transparent' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Solid' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Xmin' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Xmax' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Ymin' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Ymax' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' 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='Window' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='X2' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y2' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='temp' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='Orientation' >
							<case >
								<flowline />
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='.temp = .Y1' />
										<exp exp='.Y1 = .Y2' />
										<exp exp='.Y2 = .temp' />
									</command>
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='.temp = pixel_width - (.Y1 + 1)' />
										<exp exp='.Y1 = .X1' />
										<exp exp='.X1 = .temp' />
									</command>
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='.temp = pixel_width - (.Y2 + 1)' />
										<exp exp='.Y2 = .X2' />
										<exp exp='.X2 = .temp' />
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='.temp = .Y1' />
										<exp exp='.Y1 = .Y2' />
										<exp exp='.Y2 = .temp' />
									</command>
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='.X1 = pixel_width - (.X1 + 1)' />
										<exp exp='.Y1 = pixel_height - (.Y1 + 1)' />
									</command>
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='.X2 = pixel_width - (.X2 + 1)' />
										<exp exp='.Y2 = pixel_height - (.Y2 + 1)' />
									</command>
								</flowline>
							</case>
							<case exp='3' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='.temp = .Y1' />
										<exp exp='.Y1 = pixel_height - (.X1 + 1)' />
										<exp exp='.X1 = .temp' />
									</command>
									<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
										<exp exp='.temp = .Y2' />
										<exp exp='.Y2 = pixel_height - (.X2 + 1)' />
										<exp exp='.X2 = .temp' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.X1 &gt; .X2' swap='0' >
							<flowline >
								<command class_type='calculation' title='Windows needs to run small to big' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='.temp = .X1' />
									<exp exp='.X1 = .X2' />
									<exp exp='.X2 = .temp' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.Y1 &gt; .Y2' swap='0' >
							<flowline >
								<command class_type='calculation' title='Windows needs to run small to big' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='.temp = .Y1' />
									<exp exp='.Y1 = .Y2' />
									<exp exp='.Y2 = .temp' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='(.x1 = .x2) &amp;&amp; (.x1 = col)' swap='0' >
							<flowline />
							<flowline >
								<command class_type='comment' title='' comment='Set Column Address' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
								<command class_type='calculation' title='Command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='dc_pin = 0' />
								</command>
								<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Bus8' >
									<argument exp='0x2A' />
								</command>
								<command class_type='calculation' title='Data' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='dc_pin = 1' />
								</command>
								<command class_type='call' title='User Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Bus8' >
									<argument exp='.X1&gt;&gt;8' />
								</command>
								<command class_type='call' title='User Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Bus8' >
									<argument exp='.X1' />
								</command>
								<command class_type='call' title='User Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Bus8' >
									<argument exp='.X2&gt;&gt;8' />
								</command>
								<command class_type='call' title='User Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Bus8' >
									<argument exp='.X2' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='col = .x1' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='(.y1 = .y2) &amp;&amp; (.y1 = row)' swap='0' >
							<flowline />
							<flowline >
								<command class_type='comment' title='' comment='Set Row Address' textarea='46,0,46,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
								<command class_type='calculation' title='Command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='dc_pin = 0' />
								</command>
								<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Bus8' >
									<argument exp='0x2B' />
								</command>
								<command class_type='calculation' title='Data' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='dc_pin = 1' />
								</command>
								<command class_type='call' title='User Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Bus8' >
									<argument exp='.Y1&gt;&gt;8' />
								</command>
								<command class_type='call' title='User Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Bus8' >
									<argument exp='.Y1' />
								</command>
								<command class_type='call' title='User Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Bus8' >
									<argument exp='.Y2&gt;&gt;8' />
								</command>
								<command class_type='call' title='User Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Bus8' >
									<argument exp='.Y2' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='row = .y1' />
								</command>
							</flowline>
						</command>
						<command class_type='comment' title='' comment='Prep for data' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='calculation' title='Command' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='dc_pin = 0' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Bus8' >
							<argument exp='0x2C' />
						</command>
						<command class_type='calculation' title='Data - To Follow' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='dc_pin = 1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ReadFontStat' description='Gets a stat from the selected embedded ASCII font data.' statediag='0' >
						<return name='Return' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Font' type='u8' description='Font selection range: 0 to (NumFonts - 1)' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Index' type='u8' description='0=SpaceWidth, 1=PixelHeight' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='ReadFontStat' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='.Return = Base_GLCD :: ReadFontStat (.Font, .Index)' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='PrintSim' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Str' type='T8*' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<param name='X1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Font' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Transparent' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='xpix' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='ypix' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='pos_str' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='len_str' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='count' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='xcount' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='ycount' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='height' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='width' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='idx' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='font_width' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='1' setinit='1' />
						<local name='font_height' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='1' setinit='1' />
						<local name='position' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='temp' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='6' />
						</local>
						<local name='temp2' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='6' />
						</local>
						<command class_type='sim' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' 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='Print' description='This macro prints a string of characters to the Graphical LCD.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Str' type='T8*' description='String of characters to send to the display.' isconst='0' isHidden='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' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='Y pixel coordinate to set the output string position.' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Font' type='u8' description='Selects which Font to use Range: 0 to Font Count' isconst='0' isHidden='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' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='BytesPerColumn' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='CharacterColumns' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='CharacterHeight' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='ColumnIndex' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='ColumnSubIndex' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='PixelData' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='SpaceColumns' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='idx' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='len_str' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='ycount' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='ypix' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='xcount' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='h' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='.xcount = 0' />
							<exp exp='.idx = 0' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='.len_str = Length$ (.Str)' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='Base_GLCD' macro='ReadFontStat' >
							<return exp='.SpaceColumns' />
							<argument exp='.Font' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='Base_GLCD' macro='ReadFontStat' >
							<return exp='.CharacterHeight' />
							<argument exp='.Font' />
							<argument exp='1' />
						</command>
						<command class_type='calculation' title='Calculate character height' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='.BytesPerColumn = ((.CharacterHeight - 1) &gt;&gt; 3) + 1' />
						</command>
						<command class_type='loop' title='Loop through characters in string' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='0' exp='.idx &lt; .len_str' >
							<flowline >
								<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='Base_GLCD' macro='ReadFontWidth' >
									<return exp='.CharacterColumns' />
									<argument exp='.Font' />
									<argument exp='.STr[.Idx]' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='.ColumnSubIndex = 0' />
								</command>
								<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='0' exp='.ColumnSubIndex &lt; .BytesPerColumn' >
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.ColumnSubIndex' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
													<exp exp='.xcount = .xcount - ((.CharacterColumns + .SpaceColumns) * ScaleX)' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='.ColumnIndex = 0' />
										</command>
										<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='0' exp='.ColumnIndex &lt; (.CharacterColumns + .SpaceColumns)' >
											<flowline >
												<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='2' exp='ScaleX' >
													<flowline >
														<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.ColumnIndex &lt; .CharacterColumns' swap='0' >
															<flowline >
																<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='Base_GLCD' macro='ReadFontByte' >
																	<return exp='.PixelData' />
																	<argument exp='.Font' />
																	<argument exp='.str[.idx]' />
																	<argument exp='.ColumnIndex + (.CharacterColumns * .ColumnSubIndex)' />
																</command>
															</flowline>
															<flowline >
																<command class_type='calculation' title='Character Spacing' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
																	<exp exp='.PixelData = 0' />
																</command>
															</flowline>
														</command>
														<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
															<exp exp='.ycount = (.ColumnSubIndex * 8) * ScaleY' />
														</command>
														<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='((.ColumnSubIndex + 1) * 8) &lt; .CharacterHeight' swap='0' >
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
																	<exp exp='.ypix = 0' />
																</command>
																<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
																	<exp exp='.h = 8' />
																</command>
															</flowline>
															<flowline >
																<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='((Orientation = 1) || (Orientation = 2)) &amp;&amp; .Transparent = 0' swap='0' >
																	<flowline >
																		<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
																			<exp exp='.ypix = 0' />
																		</command>
																		<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
																			<exp exp='.h = .CharacterHeight - (.ColumnSubIndex * 8)' />
																		</command>
																	</flowline>
																	<flowline >
																		<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
																			<exp exp='.ypix = ((.ColumnSubIndex + 1) * 8) - .CharacterHeight' />
																		</command>
																		<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
																			<exp exp='.h = 8' />
																		</command>
																	</flowline>
																</command>
															</flowline>
														</command>
														<command class_type='comment' title='' comment='We can only do window and fast plot when transparent = 0' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
														<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.Transparent = 0' swap='0' >
															<flowline >
																<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Window' >
																	<argument exp='.X1 + .xcount' />
																	<argument exp='.Y1 + .Ycount' />
																	<argument exp='.X1 + .xcount' />
																	<argument exp='.Y1 + .Ycount + ((.h - .ypix) * ScaleY)- 1' />
																</command>
																<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='0' exp='.ypix &lt; .h' >
																	<flowline >
																		<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='2' exp='ScaleY' >
																			<flowline >
																				<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='(Orientation = 1) || (Orientation = 2)' swap='0' >
																					<flowline >
																						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.PixelData &amp; (0x80 &gt;&gt; .ypix)' swap='0' >
																							<flowline >
																								<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='FastPlot' />
																							</flowline>
																							<flowline >
																								<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.Transparent = 0' swap='0' >
																									<flowline >
																										<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='FastBPlot' />
																									</flowline>
																									<flowline />
																								</command>
																							</flowline>
																						</command>
																					</flowline>
																					<flowline >
																						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.PixelData &amp; (0x01 &lt;&lt; .ypix)' swap='0' >
																							<flowline >
																								<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='FastPlot' />
																							</flowline>
																							<flowline >
																								<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.Transparent = 0' swap='0' >
																									<flowline >
																										<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='FastBPlot' />
																									</flowline>
																									<flowline />
																								</command>
																							</flowline>
																						</command>
																					</flowline>
																				</command>
																				<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
																					<exp exp='.ycount = .ycount + 1' />
																				</command>
																			</flowline>
																		</command>
																		<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
																			<exp exp='.ypix = .ypix + 1' />
																			<exp exp='' />
																		</command>
																	</flowline>
																</command>
															</flowline>
															<flowline >
																<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='0' exp='.ypix &lt; 8' >
																	<flowline >
																		<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='2' exp='ScaleY' >
																			<flowline >
																				<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.PixelData &amp; (0x01 &lt;&lt; .ypix)' swap='0' >
																					<flowline >
																						<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Plot' >
																							<argument exp='.X1 + .xcount' />
																							<argument exp='.Y1 + .ycount' />
																						</command>
																					</flowline>
																					<flowline >
																						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.Transparent = 0' swap='0' >
																							<flowline >
																								<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='BPlot' >
																									<argument exp='.X1 + .xcount' />
																									<argument exp='.Y1 + .ycount' />
																								</command>
																							</flowline>
																							<flowline />
																						</command>
																					</flowline>
																				</command>
																				<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
																					<exp exp='.ycount = .ycount + 1' />
																				</command>
																			</flowline>
																		</command>
																		<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
																			<exp exp='.ypix = .ypix + 1' />
																			<exp exp='' />
																		</command>
																	</flowline>
																</command>
															</flowline>
														</command>
														<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
															<exp exp='.xcount = .xcount + 1' />
														</command>
													</flowline>
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
													<exp exp='.ColumnIndex = .ColumnIndex + 1' />
												</command>
											</flowline>
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='.ColumnSubIndex = .ColumnSubIndex + 1' />
										</command>
									</flowline>
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='.idx = .idx + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='DisplayMethod = 1' swap='0' >
							<flowline />
							<flowline >
								<command class_type='sim' title='Panel' textarea='36,0,511,300' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Panel.Graphics.DrawEnd' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='BPlotSim' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='Base_GLCD' macro='BPlot' >
							<argument exp='.X1' />
							<argument exp='.Y1' />
						</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.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='Y' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='X' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='OrientationSave' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='.OrientationSave = Orientation' />
							<exp exp='Orientation = 0' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Window' >
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='pixel_width - 1' />
							<argument exp='pixel_height - 1' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='dc_pin = 1' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='0' exp='.Y &lt; pixel_height' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='.X = 0' />
								</command>
								<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='0' exp='.X &lt; pixel_width' >
									<flowline >
										<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Bus16' >
											<argument exp='0' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='.X = .X + 1' />
										</command>
									</flowline>
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='.Y = .Y + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='Orientation = .OrientationSave' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SetBackgroundColour' description='Specifies the colour of the background by creating a mixture of red, green and blue.
' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Red' type='u8' description='0 - 255 where 0 = no red and 255 = maximum red' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Green' type='u8' description='0 - 255 where 0 = no green and 255 = maximum green' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Blue' type='u8' description='0 - 255 where 0 = no blue and 255 = maximum blue' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='ConnType = 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='fg_col_var[0] = .Red' />
									<exp exp='fg_col_var[1] = .Green' />
									<exp exp='fg_col_var[2] = .Blue' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<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='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<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>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Ev_Resize' description='Sent to the mouse target when the user has altered the position of a component child' statediag='0' >
						<return name='Return' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Component' type='h32' description='The component that has been altered' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='PrevPos' type='h32' description='The position of the object before the start of positioning' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Final' type='b1' description='True if this is the end of a drag operation' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Built-in Function' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='System.Forward' >
							<argument exp='Base_GLCD' />
						</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' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='X' type='u16' description='X Coordinate for the center of the circle' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y' type='u16' description='Y coordinate for the center of the circle' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Radius' type='u16' description='Radius of the circle specified in pixels' isconst='0' isHidden='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' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Solid' type='u8' description='0=Use Transparent Setting / 1=Fill with foreground colour' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='D' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='CurX' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='CurY' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='BGCol' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='FGCol' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Rep' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='decision' title='Draw the circle in solid foreground' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.Solid = 1' swap='0' >
							<flowline >
								<command class_type='label' title='Connection Point' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' labelid='0' labelname='A' />
								<command class_type='calculation' title='Calculate Decision Variable' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='.D = 3 - (.Radius &lt;&lt; 1)' />
								</command>
								<command class_type='calculation' title='Start Locations' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='.CurX = 0' />
									<exp exp='.CurY = .Radius' />
								</command>
								<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='0' exp='.CurX &lt;= .CurY' >
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.CurY &gt; 0' swap='0' >
											<flowline >
												<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' 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='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' 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='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.CurX &gt; 0' swap='0' >
											<flowline >
												<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' 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='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' 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='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.D &lt; 0' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
													<exp exp='.D = .D + ((.CurX &lt;&lt; 2) + 6)' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
													<exp exp='.D = .D + (((.CurX - .CurY) &lt;&lt; 2) + 10)' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
													<exp exp='.CurY = .CurY - 1' />
												</command>
											</flowline>
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='.CurX = .CurX + 1' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='Draw the background colour?' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.Transparent = 1' swap='0' >
									<flowline >
										<command class_type='label' title='Connection Point' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' labelid='1' labelname='B' />
										<command class_type='calculation' title='Calculate Decision Variable' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='.D = 3 - (.Radius &lt;&lt; 1)' />
										</command>
										<command class_type='calculation' title='Start Locations' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='.CurX = 0' />
											<exp exp='.CurY = .Radius' />
										</command>
										<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='0' exp='.CurX &lt;= .CurY' >
											<flowline >
												<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Plot' >
													<argument exp='.X + .CurX' />
													<argument exp='.Y - .CurY' />
												</command>
												<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Plot' >
													<argument exp='.X - .CurX' />
													<argument exp='.Y - .CurY' />
												</command>
												<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Plot' >
													<argument exp='.X + .CurY' />
													<argument exp='.Y - .CurX' />
												</command>
												<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Plot' >
													<argument exp='.X - .CurY' />
													<argument exp='.Y - .CurX' />
												</command>
												<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Plot' >
													<argument exp='.X + .CurX' />
													<argument exp='.Y + .CurY' />
												</command>
												<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Plot' >
													<argument exp='.X - .CurX' />
													<argument exp='.Y + .CurY' />
												</command>
												<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Plot' >
													<argument exp='.X + .CurY' />
													<argument exp='.Y + .CurX' />
												</command>
												<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Plot' >
													<argument exp='.X - .CurY' />
													<argument exp='.Y + .CurX' />
												</command>
												<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.D &lt; 0' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
															<exp exp='.D = .D + ((.CurX &lt;&lt; 2) + 6)' />
														</command>
													</flowline>
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
															<exp exp='.D = .D + (((.CurX - .CurY) &lt;&lt; 2) + 10)' />
														</command>
														<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
															<exp exp='.CurY = .CurY - 1' />
														</command>
													</flowline>
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
													<exp exp='.CurX = .CurX + 1' />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='.FGCol = foreground_col_var' />
											<exp exp='.BGCol = background_col_var' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='foreground_col_var = .BGCol' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='.Rep = 1' />
										</command>
										<command class_type='goto' title='Goto Connection Point' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' labelid='0' labelname='' />
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.Rep = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='.Rep = .Rep + 1' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='foreground_col_var = .FGCol' />
								</command>
								<command class_type='goto' title='Goto Connection Point' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' labelid='1' labelname='' />
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro keep='1' >
					<flowline name='ReadASCIILUT' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
					</flowline>
				</macro>
				<macro >
					<flowline name='SetForegroundColour' description='Specifies the colour of the foreground by creating a mixture of red, green and blue.
' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Red' type='u8' description='0 - 255 where 0 = no red and 255 = maximum red' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Green' type='u8' description='0 - 255 where 0 = no green and 255 = maximum green' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Blue' type='u8' description='0 - 255 where 0 = no blue and 255 = maximum blue' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='ConnType = 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='fg_col_var[0] = .Red' />
									<exp exp='fg_col_var[1] = .Green' />
									<exp exp='fg_col_var[2] = .Blue' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<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='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<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>
							</flowline>
						</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' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='X2' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y2' type='u16' description='' isconst='0' isHidden='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' isHidden='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' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Xmin' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Xmax' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Ymin' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Ymax' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='DrawLine' >
							<argument exp='.X1' />
							<argument exp='.Y1' />
							<argument exp='.X2' />
							<argument exp='.Y1' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='DrawLine' >
							<argument exp='.X2' />
							<argument exp='.Y1' />
							<argument exp='.X2' />
							<argument exp='.Y2' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='DrawLine' >
							<argument exp='.X1' />
							<argument exp='.Y2' />
							<argument exp='.X2' />
							<argument exp='.Y2' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='DrawLine' >
							<argument exp='.X1' />
							<argument exp='.Y1' />
							<argument exp='.X1' />
							<argument exp='.Y2' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.Transparent = 0' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.X1 &gt; .X2' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='.Xmax = .X1' />
											<exp exp='.Xmin = .X2 + 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='.Xmax = .X2' />
											<exp exp='.Xmin = .X1 + 1' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.Y1 &gt; .Y2' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='.Ymax = .Y1' />
											<exp exp='.Ymin = .Y2 + 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='.Ymax = .Y2' />
											<exp exp='.Ymin = .Y1 + 1' />
										</command>
									</flowline>
								</command>
								<command class_type='call' title='User Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Window' >
									<argument exp='.Xmin' />
									<argument exp='.Ymin' />
									<argument exp='.Xmax - 1' />
									<argument exp='.Ymax - 1' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='.Y1 = .Ymin' />
								</command>
								<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='0' exp='.Y1 &lt; .YMax' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='.X1 = .Xmin' />
										</command>
										<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='0' exp='.X1 &lt; .XMax' >
											<flowline >
												<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.Solid' swap='0' >
													<flowline >
														<command class_type='call' title='User Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='FastPlot' />
													</flowline>
													<flowline >
														<command class_type='call' title='User Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='FastBPlot' />
													</flowline>
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
													<exp exp='.X1 = .X1 + 1' />
												</command>
											</flowline>
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='.Y1 = .Y1 + 1' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Initialise' />
						<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='Print' >
							<argument exp='&quot;Hello&quot;' />
							<argument exp='5' />
							<argument exp='5' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='DrawCircleSim' description='Draws a circle object on the display with the center of the circle at the location X,Y' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='X' type='u16' description='X Coordinate for the center of the circle' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y' type='u16' description='Y coordinate for the center of the circle' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Radius' type='u16' description='Radius of the circle specified in pixels' isconst='0' isHidden='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' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Solid' type='u8' description='0=Use Transparent Setting / 1=Fill with foreground colour' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='D' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='CurX' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='CurY' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='BGCol' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='FGCol' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Rep' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='sim' title='Call Component Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' component='Base_GLCD' macro='DrawCircle' >
							<argument exp='.X' />
							<argument exp='.Y' />
							<argument exp='.Radius' />
							<argument exp='.Transparent' />
							<argument exp='.Solid' />
						</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.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='dat' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='UseReset' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='reset_pin = 1' />
								</command>
								<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='5' type='1' />
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='reset_pin = 0' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='5' type='1' />
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='dc_pin = 0' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='UseCS' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='chip_sel_pin = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='ConnType = 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='dataout_pin = 1' />
									<exp exp='clock_pin = 1' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='rd_pin = 1' />
									<exp exp='wr_pin = 1' />
									<exp exp='' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='ConnType = 2' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='data0 = 0' />
											<exp exp='data1 = 0' />
											<exp exp='data2 = 0' />
											<exp exp='data3 = 0' />
											<exp exp='data4 = 0' />
											<exp exp='data5 = 0' />
											<exp exp='data6 = 0' />
											<exp exp='data7 = 0' />
											<exp exp='data8 = 0' />
											<exp exp='data9 = 0' />
											<exp exp='data10 = 0' />
											<exp exp='data11 = 0' />
											<exp exp='data12 = 0' />
											<exp exp='data13 = 0' />
											<exp exp='data14 = 0' />
											<exp exp='data15 = 0' />
											<exp exp='' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='data0 = 0' />
											<exp exp='data1 = 0' />
											<exp exp='data2 = 0' />
											<exp exp='data3 = 0' />
											<exp exp='data4 = 0' />
											<exp exp='data5 = 0' />
											<exp exp='data6 = 0' />
											<exp exp='data7 = 0' />
											<exp exp='' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='UseReset' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='reset_pin = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='5' type='1' />
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='UseCS' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='ToggleCS' swap='0' >
									<flowline />
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='chip_sel_pin = 0' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='comment' title='' comment='Next we write to the display registers to setup the device ready for use' textarea='12,0,12,0' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' />
						<command class_type='call' title='Set Gamma' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Reg' >
							<argument exp='0xE0' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x00' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x03' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x09' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x08' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x16' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x0A' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x3F' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x78' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x4C' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x09' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x0A' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x08' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x16' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x1A' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x0F' />
						</command>
						<command class_type='call' title='Set Gamma' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Reg' >
							<argument exp='0xE1' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x00' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x16' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x19' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x03' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x0F' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x05' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x32' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x45' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x46' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x04' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x0E' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x0D' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x35' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x37' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x0F' />
						</command>
						<command class_type='call' title='Power Control' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Reg' >
							<argument exp='0xC0' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x17' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x15' />
						</command>
						<command class_type='call' title='Power Control 2' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Reg' >
							<argument exp='0xC1' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x47' />
						</command>
						<command class_type='call' title='VCM Control' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Reg' >
							<argument exp='0xC5' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x00' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x12' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x80' />
						</command>
						<command class_type='call' title='TFT_MADCTL' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Reg' >
							<argument exp='0x36' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
							<exp exp='.dat = 0x08' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='FlipY' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='.dat = .dat | 0x80' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='FlipX' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='.dat = .dat | 0x40' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='.dat' />
						</command>
						<command class_type='call' title='Pixel Interface' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Reg' >
							<argument exp='0x3A' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='ConnType = 0' swap='0' >
							<flowline >
								<command class_type='call' title='18-bit Colour' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
									<argument exp='0x66' />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='16-bit Colour' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
									<argument exp='0x55' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Brightness' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Reg' >
							<argument exp='0x51' />
						</command>
						<command class_type='call' title='Full Brightness' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0xFF' />
						</command>
						<command class_type='call' title='CTRL DIsplay Value' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Reg' >
							<argument exp='0x53' />
						</command>
						<command class_type='call' title='Full Brightness' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x20' />
						</command>
						<command class_type='call' title='Content Adaptive Brightness' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Reg' >
							<argument exp='0x56' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x00' />
						</command>
						<command class_type='call' title='Off' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x00' />
						</command>
						<command class_type='call' title='Interface Mode Control' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Reg' >
							<argument exp='0xB0' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x00' />
						</command>
						<command class_type='call' title='Frame Rate Control' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Reg' >
							<argument exp='0xB1' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0xA0' />
						</command>
						<command class_type='call' title='Display INversion Control' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Reg' >
							<argument exp='0xB4' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x02' />
						</command>
						<command class_type='call' title='Display Function Control' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Reg' >
							<argument exp='0xB6' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x02' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x02' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x3B' />
						</command>
						<command class_type='call' title='Entry Mode Set' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Reg' >
							<argument exp='0xB7' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0xC6' />
						</command>
						<command class_type='call' title='Adjust Control 3' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Reg' >
							<argument exp='0xF7' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0xA9' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x51' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x2C' />
						</command>
						<command class_type='call' title='' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Data8' >
							<argument exp='0x82' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='InvertColour' swap='0' >
							<flowline >
								<command class_type='call' title='Display Inversion On' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Reg' >
									<argument exp='0x21' />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Display Inversion Off' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Reg' >
									<argument exp='0x20' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Exit Sleep' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Reg' >
							<argument exp='0x11' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='120' type='1' />
						<command class_type='call' title='Display On' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='LCD_Write_Reg' >
							<argument exp='0x29' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='25' type='1' />
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='ConnType = 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='fg_col_var[0] = (FGCOL) &amp; 0xFF' />
									<exp exp='fg_col_var[1] = (FGCOL &gt;&gt; 8) &amp; 0xFF' />
									<exp exp='fg_col_var[2] = (FGCOL &gt;&gt; 16) &amp; 0xFF' />
									<exp exp='' />
									<exp exp='bg_col_var[0] = (BGCOL) &amp; 0xFF' />
									<exp exp='bg_col_var[1] = (BGCOL &gt;&gt; 8) &amp; 0xFF' />
									<exp exp='bg_col_var[2] = (BGCOL &gt;&gt; 16) &amp; 0xFF' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='foreground_col_var = FGCOL' />
									<exp exp='background_col_var = BGCOL' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='UseBacklight' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='led_pin = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='4487093' cmdcolor_sec='11066367' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' macro='ClearDisplay' />
					</flowline>
				</macro>
				<macro >
					<flowline name='LCD_Write_Bus8' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='data' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='UseCS &amp;&amp; ToggleCS' swap='0' >
							<flowline >
								<command class_type='calculation' title='Enable CS' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='chip_sel_pin = 0' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='ConnType = 0' swap='0' >
							<flowline >
								<command class_type='loop' title='Loop' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' type='2' exp='8' >
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='.data &amp; 0x80' swap='0' >
											<flowline >
												<command class_type='calculation' title='Data High' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
													<exp exp='dataout_pin = 1' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Data Low' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
													<exp exp='dataout_pin = 0' />
												</command>
											</flowline>
										</command>
										<command class_type='calculation' title='Clock Low' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='clock_pin = 0' />
										</command>
										<command class_type='calculation' title='Clock High' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='clock_pin = 1' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
											<exp exp='.data = .data &lt;&lt; 1' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='ESP_OPT' swap='0' >
									<flowline >
										<command class_type='native' title='Code' ccode='GPIO.out_w1ts = FCL_DATA;
FCL_DATA = ~FCL_DATA;
GPIO.out_w1tc = FCL_DATA;' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' language='C' />
									</flowline>
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='UsePorts' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
													<exp exp='dataport_low = .data' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
													<exp exp='data0 = (.data &amp; 0x01)' />
													<exp exp='data1 = (.data &amp; 0x02)' />
													<exp exp='data2 = (.data &amp; 0x04)' />
													<exp exp='data3 = (.data &amp; 0x08)' />
													<exp exp='data4 = (.data &amp; 0x10)' />
													<exp exp='data5 = (.data &amp; 0x20)' />
													<exp exp='data6 = (.data &amp; 0x40)' />
													<exp exp='data7 = (.data &amp; 0x80)' />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='wr_pin = 0' />
									<exp exp='wr_pin = 1' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='4767473' cmdcolor_sec='11337727' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' exp='UseCS &amp;&amp; ToggleCS' swap='0' >
							<flowline >
								<command class_type='calculation' title='Disable CS' cmdcolor='4206456' cmdcolor_sec='10785756' cmdcolor_txt='16777215' cmdgradient='4' cmdopacity='0.64' >
									<exp exp='chip_sel_pin = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='4384cba9-0bea-4359-8c5b-dcd046aa7778' vmin='0' vmaj='3' codename='Base_GLCD' panelId='-1' x='0' y='0' z='0' xsz='25' ysz='25' zsz='25' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='1' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='pixel_width' data='320' />
					<value target='pixel_height' data='480' />
					<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='FontCount' data='001' />
					<value target='gLCD_Font1::Font' data='000' />
					<value target='gLCD_Font1::FontSpace' data='001' />
					<value target='gLCD_Font1::SpaceWidth' data='004' />
					<value target='gLCD_Font2::Font' data='005' />
					<value target='gLCD_Font2::FontSpace' data='001' />
					<value target='gLCD_Font2::SpaceWidth' data='004' />
					<value target='gLCD_Font3::Font' data='002' />
					<value target='gLCD_Font3::FontSpace' data='001' />
					<value target='gLCD_Font3::SpaceWidth' data='004' />
					<value target='gLCD_Font4::Font' data='015' />
					<value target='gLCD_Font4::FontSpace' data='001' />
					<value target='gLCD_Font4::SpaceWidth' data='004' />
					<value target='ShowBackground' data='1' />
					<value target='ComponentLabel' data='000' />
					<value target='GdiText1::sText' data='gLCD_ILI9488' />
					<value target='GdiText1::dScale' data='1.000000' />
					<value target='DisplayType' data='002' />
					<value target='EmbedFontSet' data='1' />
					<value target='NumParents' data='1' />
					<value target='ShowGLCDIcon' data='1' />
					<value target='TouchHandler' data='0' />
					<value target='PhysicalOrientation' data='000' />
				</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='1.12941' ye='7.19306' ze='427.098' xt='1.12941' yt='7.19306' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<viewport dx='429' dy='752' zoom='121.539' fix_topleft='0' />
		<page x='1000' y='1000' show='0' rgb='0' />
		<winpos ID='7005' RectRecentFloat='1270,427,1920,877' RectRecentDocked='814,141,1263,983' RecentFrameAlignment='16384' RecentRowIndex='0' IsFloating='0' MRUWidth='32767' PinState='0' IsMaximized='0' IsVisible='0' />
	</panel2d>
	<panel3d shadows='0' lighting='2' brightness='0' perspective='1' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='0' />
		<camera xe='-73.8689' ye='-30.5458' ze='80.8487' xt='-2.71302' yt='0.252125' zt='-2.53427' xquat='-0.30578' yquat='0.200844' zquat='0.510936' wquat='0.777885' />
		<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' />
		<winpos ID='7004' RectRecentFloat='564,312,1214,762' RectRecentDocked='0,0,222,606' RecentFrameAlignment='16384' RecentRowIndex='0' IsFloating='0' MRUWidth='32767' PinState='0' IsMaximized='0' IsVisible='0' />
	</panel3d>
	<panels2d count='0' />
	<layout >
		<view type='0' name='FastBPlot' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAfgMAAEUDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAfgMAAEUDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ReadASCIILUT' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAfgMAAEUDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='BacklightOn' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAfgMAAEUDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='BacklightOff' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAfgMAAEUDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='FastPlot_Sim' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAfgMAAEUDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Window_Sim' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAfgMAAEUDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SendByte' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAfgMAAEUDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='InitSim' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAfgMAAEUDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Ev_Initialise' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAfgMAAEUDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Ev_Property' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAfgMAAEUDAAA' zoom='75' scrollx='0' scrolly='1973' flags='0' />
		<view type='0' name='Print' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAfgMAAEUDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='LCD_Write_Bus8' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAfgMAAEUDAAA' zoom='75' scrollx='0' scrolly='89' flags='0' />
		<view type='0' name='LCD_Write_Data8' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAfgMAAEUDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='LCD_Write_Reg' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAfgMAAEUDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='LCD_Write_Bus16' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAfgMAAEUDAAA' zoom='75' scrollx='0' scrolly='1695' flags='0' />
		<view type='0' name='Plot' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAfgMAAEUDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='BPlot' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAfgMAAEUDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='FastPlot' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAfgMAAEUDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Window' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAfgMAAEUDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ClearDisplay' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAfgMAAEUDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Initialise' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAfgMAAEUDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='DrawRectangle' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAfgMAAEUDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SetFontScaler' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAfgMAAEUDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SetBackgroundColour' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAfgMAAEUDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SetForegroundColour' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAfgMAAEUDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='DrawLine' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAfgMAAEUDAAA' zoom='100' scrollx='0' scrolly='228' flags='0' />
	</layout>
</document>
</root>
