<root>
<document schema='101' license='1,Dev User,HJVC24' title='' description='' target='PIC.16F.16F877A' >
	<config data='!0,3f72%0,2%2,0%3,0%6,1%7,0%9,3%b,1%8,1%d,1' clkspd='19660800' simspd='1' usewdt='0' constif='0' />
	<plugins >
		<dll_dbg_icd enabled='0' >
			<data name='debug' value='1' />
			<data name='userpins' value='0' />
			<data name='speed' value='1000' />
			<data name='usev9' value='0' />
			<data name='breaks' value='8' />
			<data name='stacks' value='8' />
			<data name='clkport' value='1' />
			<data name='clkbit' value='6' />
			<data name='dataport' value='1' />
			<data name='databit' value='7' />
			<data name='ghostype' value='0' />
			<data name='monitor' value='1' />
			<data name='ictloop' value='1' />
			<data name='ictrate' value='1000' />
			<data name='ictmask' value='-1' />
			<data name='anlpres' value='255' />
			<data name='digmask1' value='-1' />
			<data name='digmask2' value='-1' />
		</dll_dbg_icd>
		<dll_models enabled='1' />
		<dll_upgrader enabled='1' />
		<dll_webhelp 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>
	<components >
		<settings autoimg='0' center='1' unitscale='0' fixedscale='0' fixedx='0' fixedy='0' fixedz='0' headcode='0' keygen='uhVMT46217yBzLyA1hcxuV' />
		<definition guid='9d414a42-fd9b-4afd-9493-dbf80eece14a' vstate='40' vmin='0' vmaj='1' srcleaf='glcd_SSD1963.fcfx' visiblename='GLCD (SSD1963) Parallel' description='Graphical display component designed to work with the SSD1963 controller IC
Based on the SSD1963 16-bit colour graphical controller IC.' category='' catenable='1' author='Matrix Ltd' manuname='' manucode='' sysinfo='1053483' keywords='' dynamic='1' group='displays' protect='1' expose='Base_GLCD' exposeid='4384cba9-0bea-4359-8c5b-dcd046aa7778' iconpath='..\icons\components\glcd.png' />
		<component class_type='root' codename='gLCD_SSD1963' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' macronames='$(type)_$(module)__$(macro)' varnames='$(type)_$(module)__$(variable:u)' >
			<resources />
			<properties >
				<property name='Dimensions' hidden='0' >
					<property name='Pixel Height' target='pixel_height' typeid='14' hidden='0' locked='0' info='Heigt of gLCD canvas measured in pixels.
' />
					<property name='Pixel Width' target='pixel_width' typeid='14' hidden='0' locked='0' info='Width of gLCD canvas measured in pixels.
' />
				</property>
				<property name='Colour' hidden='0' >
					<property name='Monochrome' target='monochrome' typeid='7' hidden='0' locked='1' info='Specifies if the display is capable of colour or monochrome only.
' />
					<property name='Foreground Color' target='foreground_colour' typeid='1' hidden='0' locked='0' info='Specifies the initial foreground color.
' />
					<property name='Background Color' target='background_colour' typeid='1' hidden='0' locked='0' info='Specifies the initial background color.
' />
					<property name='BGCOL' target='BGCOL' typeid='21' hidden='1' locked='0' info='' />
					<property name='FGCOL' target='FGCOL' typeid='21' hidden='1' locked='0' info='' />
					<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='DataMode' target='data_mode' typeid='16' hidden='0' locked='0' info='Configures how the displays data pins are connected.
Port uses a single port byte allowing for high speed.
Individual pins allow for any combination of pins allowing for flexibility.' filter='000Port
001Individual Bits' />
					<property name='Data Port' target='data_port' typeid='19' hidden='0' locked='0' info='Microcontroller port pins to use to pass 8-bit parrallel data to the graphical display' />
					<property name='Data 0' target='data_pin0' typeid='5' hidden='1' locked='0' info='Data pin connection' />
					<property name='Data 1' target='data_pin1' typeid='5' hidden='1' locked='0' info='Data pin connection' />
					<property name='Data 2' target='data_pin2' typeid='5' hidden='1' locked='0' info='Data pin connection' />
					<property name='Data 3' target='data_pin3' typeid='5' hidden='1' locked='0' info='Data pin connection' />
					<property name='Data 4' target='data_pin4' typeid='5' hidden='1' locked='0' info='Data pin connection' />
					<property name='Data 5' target='data_pin5' typeid='5' hidden='1' locked='0' info='Data pin connection' />
					<property name='Data 6' target='data_pin6' typeid='5' hidden='1' locked='0' info='Data pin connection' />
					<property name='Data 7' target='data_pin7' typeid='5' hidden='1' locked='0' info='Data pin connection' />
					<property name='Chip Select' target='chip_sel_pin' typeid='5' hidden='0' locked='0' info='Chip select pin connection
' expansion='' initialiser='' />
					<property name='Write' target='write_pin' typeid='5' hidden='0' locked='0' info='Write pin connection
' expansion='' initialiser='' />
					<property name='Read' target='read_pin' typeid='5' hidden='0' locked='0' info='Read pin connection' />
					<property name='Register Select (RS)' target='rs_pin' typeid='5' hidden='0' locked='0' info='Instruction / Command pin connection' />
					<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='Controls if the backlight is controlled using an I/O pin or fixed to be always on by the circuitry.' />
					<property name='Backlight' target='led_pin' typeid='5' hidden='1' locked='0' info='Backlight control pin connection
' />
				</property>
				<property name='Display Properties' folder='property_3' hidden='0' >
					<property name='FlipX' target='FlipX' typeid='7' hidden='0' locked='0' info='Flips the horizontal axis ' />
					<property name='FlipY' target='FlipY' typeid='7' hidden='0' locked='0' info='Flips the vertical axis ' />
					<property name='TFT Colour  Bits' target='ColourWidth' typeid='16' hidden='0' locked='0' info='Sets the colour depth of the display so the SSD1963 controller IC outputs the correct colour sequences.' filter='00018-bit
00124-bit' />
					<property name='OffsetX' target='OffX' typeid='21' hidden='0' locked='0' info='Pixel offset on the x axis' />
					<property name='OffsetY' target='OffY' typeid='21' hidden='0' locked='0' info='Pixel offset on the y axis' />
				</property>
				<property name='Display Refresh Rate' folder='property_2' hidden='0' >
					<property name='PLL Multiplier' target='PLLMult' typeid='21' hidden='0' locked='0' info='Controls the refresh rate of the display.
Range 0 - 255' />
					<property name='PLL Divider' target='PLLDiv' typeid='21' hidden='0' locked='0' info='Controls the refresh rate of the display.
Range 0 - 15' />
				</property>
				<property name='Simulation Mode' folder='property_1' hidden='0' >
					<property name='Display Method' target='DisplayMethod' typeid='16' hidden='0' locked='0' info='Chooses which method to use when drawing to the gLCD component
The bitmap is the more common mode but may run slowly on some machines.
The point cloud should run faster but may use more memory.
' filter='000Bitmap
001Point Cloud' />
				</property>
			</properties>
			<values >
				<value target='pixel_height' data='480' />
				<value target='pixel_width' data='864' />
				<value target='monochrome' data='0' />
				<value target='foreground_colour' data='0' />
				<value target='background_colour' data='16777215' />
				<value target='BGCOL' data='262143' />
				<value target='FGCOL' data='0' />
				<value target='colour_bit_depth' data='18' />
				<value target='red_bit_depth' data='6' />
				<value target='green_bit_depth' data='6' />
				<value target='blue_bit_depth' data='6' />
				<value target='data_mode' data='000' />
				<value target='data_port' data='$PORTB0' />
				<value target='data_pin0' data='$PORTB.0' />
				<value target='data_pin1' data='$PORTB.1' />
				<value target='data_pin2' data='$PORTB.2' />
				<value target='data_pin3' data='$PORTB.3' />
				<value target='data_pin4' data='$PORTB.4' />
				<value target='data_pin5' data='$PORTB.5' />
				<value target='data_pin6' data='$PORTB.6' />
				<value target='data_pin7' data='$PORTB.7' />
				<value target='chip_sel_pin' data='$PORTC.0' />
				<value target='write_pin' data='$PORTC.1' />
				<value target='read_pin' data='$PORTC.2' />
				<value target='rs_pin' data='$PORTC.3' />
				<value target='reset_pin' data='$PORTC.4' />
				<value target='UseBacklight' data='0' />
				<value target='led_pin' data='$PORTC.5' />
				<value target='FlipX' data='0' />
				<value target='FlipY' data='0' />
				<value target='ColourWidth' data='000' />
				<value target='OffX' data='0' />
				<value target='OffY' data='0' />
				<value target='PLLMult' data='40' />
				<value target='PLLDiv' data='2' />
				<value target='DisplayMethod' data='001' />
			</values>
			<events >
				<event class='Compile' event='AddProperty' target='Ev_AddProperty' />
				<event class='Components' event='Initialise' target='prv_init' />
				<event class='Simulation' event='Start' target='prv_init' />
				<event class='Components' event='Property' target='prv_init' />
			</events>
			<apis >
				<api name='BacklightOn' alt='BacklightOn' 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='Plot' alt='PlotSim' 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='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='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='BR' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Parameter' type='s16' description='' isconst='1' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='false' type='b1' description='' isconst='1' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Command' type='s16' description='' isconst='1' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='BG' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Orientation' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='BB' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FR' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Number' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FG' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='true' type='b1' description='' isconst='1' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FB' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='ClearSim' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='sim' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='Base_GLCD' macro='ClearDisplay' />
					</flowline>
				</macro>
				<macro >
					<flowline name='SetPostProc' description='Allows the display&apos;s contrast, brightness and saturation to be controlled by the user.
' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='Contrast' type='u8' description='Range 0-255, Default = 128' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Brightness' type='u8' description='Range 0-255, Default = 128' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Saturation' type='u8' description='Range 0-255, Default = 128' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='PostProcessorEnabled' type='u8' description='0=Off, 1=On - Default = Off' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Set Post Proc' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Reg' >
							<argument exp='0xBC' />
						</command>
						<command class_type='call' title='Param1' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='.Contrast' />
						</command>
						<command class_type='call' title='Param2' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='.Brightness' />
						</command>
						<command class_type='call' title='Param3' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='.Saturation' />
						</command>
						<command class_type='call' title='Param1' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='.PostProcessorEnabled' />
						</command>
					</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.' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='UseBacklight' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='read_pin = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='FastBPlot' description='Sets a pixel with the current background colour at pixel location X, Y.' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<local name='temp' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='BR' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='BG' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='BB' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='LCD_Write_Reg' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='data' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='rs_pin = 0' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='data_mode = 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='data_port = .data' />
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.data &amp; 0x01' swap='0' >
									<flowline >
										<command class_type='calculation' title='Data High' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='data_pin0 = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Data Low' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='data_pin0 = 0' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.data &amp; 0x02' swap='0' >
									<flowline >
										<command class_type='calculation' title='Data High' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='data_pin1 = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Data Low' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='data_pin1 = 0' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.data &amp; 0x04' swap='0' >
									<flowline >
										<command class_type='calculation' title='Data High' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='data_pin2 = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Data Low' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='data_pin2 = 0' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.data &amp; 0x08' swap='0' >
									<flowline >
										<command class_type='calculation' title='Data High' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='data_pin3 = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Data Low' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='data_pin3 = 0' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.data &amp; 0x10' swap='0' >
									<flowline >
										<command class_type='calculation' title='Data High' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='data_pin4 = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Data Low' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='data_pin4 = 0' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.data &amp; 0x20' swap='0' >
									<flowline >
										<command class_type='calculation' title='Data High' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='data_pin5 = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Data Low' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='data_pin5 = 0' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.data &amp; 0x40' swap='0' >
									<flowline >
										<command class_type='calculation' title='Data High' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='data_pin6 = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Data Low' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='data_pin6 = 0' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.data &amp; 0x80' swap='0' >
									<flowline >
										<command class_type='calculation' title='Data High' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='data_pin7 = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Data Low' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='data_pin7 = 0' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='chip_sel_pin = 0' />
						</command>
						<command class_type='calculation' title='Clock Low' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='write_pin = 0' />
						</command>
						<command class_type='calculation' title='Clock High' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='write_pin = 1' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='chip_sel_pin = 1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='LCD_Write_Data' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='data' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='native' title='C Code' ccode='#if defined(MX_CAL_PIC) || defined(MX_CAL_PIC16) || defined(MX_CAL_PIC32)' cmdcolor='3389439' cmdcolor_sec='3389439' language='C' />
						<command class_type='native' title='C Code' ccode='LCDRSPIN = 1;' cmdcolor='3389439' cmdcolor_sec='3389439' language='C' />
						<command class_type='native' title='C Code' ccode='#else' cmdcolor='3389439' cmdcolor_sec='3389439' language='C' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='rs_pin = 1' />
						</command>
						<command class_type='native' title='C Code' ccode='#endif' cmdcolor='3389439' cmdcolor_sec='3389439' language='C' />
						<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='data_mode = 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='data_port = .data' />
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.data &amp; 0x01' swap='0' >
									<flowline >
										<command class_type='calculation' title='Data High' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='data_pin0 = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Data Low' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='data_pin0 = 0' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.data &amp; 0x02' swap='0' >
									<flowline >
										<command class_type='calculation' title='Data High' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='data_pin1 = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Data Low' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='data_pin1 = 0' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.data &amp; 0x04' swap='0' >
									<flowline >
										<command class_type='calculation' title='Data High' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='data_pin2 = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Data Low' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='data_pin2 = 0' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.data &amp; 0x08' swap='0' >
									<flowline >
										<command class_type='calculation' title='Data High' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='data_pin3 = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Data Low' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='data_pin3 = 0' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.data &amp; 0x10' swap='0' >
									<flowline >
										<command class_type='calculation' title='Data High' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='data_pin4 = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Data Low' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='data_pin4 = 0' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.data &amp; 0x20' swap='0' >
									<flowline >
										<command class_type='calculation' title='Data High' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='data_pin5 = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Data Low' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='data_pin5 = 0' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.data &amp; 0x40' swap='0' >
									<flowline >
										<command class_type='calculation' title='Data High' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='data_pin6 = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Data Low' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='data_pin6 = 0' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.data &amp; 0x80' swap='0' >
									<flowline >
										<command class_type='calculation' title='Data High' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='data_pin7 = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Data Low' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='data_pin7 = 0' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='native' title='C Code' ccode='#if defined(MX_CAL_PIC) || defined(MX_CAL_PIC16) || defined(MX_CAL_PIC32)' cmdcolor='3389439' cmdcolor_sec='3389439' language='C' />
						<command class_type='native' title='C Code' ccode='LCDCSPIN = 0;' cmdcolor='3389439' cmdcolor_sec='3389439' language='C' />
						<command class_type='native' title='Clock Low' ccode='LCDWRPIN = 0;' cmdcolor='3389439' cmdcolor_sec='3389439' language='C' />
						<command class_type='native' title='Clock High' ccode='LCDWRPIN = 1;' cmdcolor='3389439' cmdcolor_sec='3389439' language='C' />
						<command class_type='native' title='C Code' ccode='LCDCSPIN = 1;' cmdcolor='3389439' cmdcolor_sec='3389439' language='C' />
						<command class_type='native' title='C Code' ccode='#else' cmdcolor='3389439' cmdcolor_sec='3389439' language='C' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='chip_sel_pin = 0' />
						</command>
						<command class_type='calculation' title='Clock Low' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='write_pin = 0' />
						</command>
						<command class_type='calculation' title='Clock High' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='write_pin = 1' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='chip_sel_pin = 1' />
						</command>
						<command class_type='native' title='C Code' ccode='#endif' cmdcolor='3389439' cmdcolor_sec='3389439' language='C' />
					</flowline>
				</macro>
				<macro >
					<flowline name='PrintNumber' description='This macro prints a decimal number to the Graphical LCD.' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='Number' type='s16' description='Byte or Integer number to send to the display.' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='X' type='u16' description='X pixel coordinate to set the output string position.' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y' type='u16' description='Y pixel coordinate to set the output string position.' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Font' type='u8' description='Size of the font - 0 = Normal, 1 = Double Width, 2 = Double Width and Height, 3 = Double Height' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Transparent' type='u8' description='Specifies if the background of the text is drawn - 0 = Background colour is drawn, 1 = Background colour not drawn.' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='temp' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='8' />
						</local>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='.temp = ToString$ (.Number)' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Print' >
							<argument exp='.temp' />
							<argument exp='.X' />
							<argument exp='.Y' />
							<argument exp='.Font' />
							<argument exp='.Transparent' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='DrawLine' description='Draws a line with the current foreground colour from pixel location X1, Y1 to pixel location X2, Y2.' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='X2' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y2' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='C1' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='M1' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='D1' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<local name='PixelX' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='PixelY' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Yinc' type='s16' description='' isconst='0' isinit='1' usrinit='1' setinit='1' />
						<local name='Xinc' type='s16' description='' isconst='0' isinit='1' usrinit='1' setinit='1' />
						<local name='X' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Y' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='.PixelX = .X2 - .X1' />
							<exp exp='.PixelY = .Y2 - .Y1' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='.X = .X1' />
							<exp exp='.Y = .Y1' />
						</command>
						<command class_type='decision' title='If negative X direction' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.PixelX &lt; 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.Xinc = -1' />
									<exp exp='.PixelX = .PixelX * -1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='If negative Y direction' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.PixelY &lt; 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.Yinc = -1' />
									<exp exp='.PixelY = .PixelY * -1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.PixelY &lt;= .PixelX' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.C1 = 2 * .PixelX' />
									<exp exp='.M1 = 2 * .PixelY' />
								</command>
								<command class_type='loop' title='Loop' cmdcolor='3568629' cmdcolor_sec='3568629' type='0' exp='.X != .X2' >
									<flowline >
										<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Plot' >
											<argument exp='.X' />
											<argument exp='.Y' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='.X = .X + .Xinc' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='.D1 = .D1 + .M1' />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.D1 &gt; .PixelX' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
													<exp exp='.Y = .Y + .Yinc' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
													<exp exp='.D1 = .D1 - .C1' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.C1 = 2 * .PixelY' />
									<exp exp='.M1 = 2 * .PixelX' />
								</command>
								<command class_type='loop' title='Loop' cmdcolor='3568629' cmdcolor_sec='3568629' type='0' exp='.Y != .Y2' >
									<flowline >
										<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Plot' >
											<argument exp='.X' />
											<argument exp='.Y' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='.Y = .Y + .Yinc' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='.D1 = .D1 + .M1' />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.D1 &gt; .PixelY' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
													<exp exp='.X = .X + .Xinc' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
													<exp exp='.D1 = .D1 - .C1' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Plot' >
							<argument exp='.X' />
							<argument exp='.Y' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='PrintNumber_Sim' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='Number' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='X' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Font' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Transparent' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='temp' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='6' />
						</local>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='.temp = ToString$ (.Number)' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='PrintSim' >
							<argument exp='.temp' />
							<argument exp='.X' />
							<argument exp='.Y' />
							<argument exp='.Font' />
							<argument exp='.Transparent' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Ev_AddProperty' description='Sent to a component to allow dynamic amendment of global property declarations' >
						<return name='Return' type='u32' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='PropName' type='T8' description='The original Flowcode property' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<param name='Expansion' type='T8*' description='The expanded string to inline to the code' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<local name='NStr' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<local name='PStr' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<local name='TStr' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='.Return = 1' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='Compare$ (.PropName,&quot;chip_sel_pin&quot;,1) == 0' swap='0' >
							<flowline >
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.GetValue' >
									<return exp='.PStr' />
									<argument exp='this' />
									<argument exp='&quot;chip_sel_pin&quot;' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.TStr[0] = .PStr[5]' />
									<exp exp='.TStr[1] = 0' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.NStr[0] = .PStr[7]' />
									<exp exp='.NStr[1] = .PStr[8]' />
									<exp exp='.NStr[2] = .PStr[9]' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.Expansion = &quot;#if defined(_LAT&quot;' />
									<exp exp='.Expansion = .Expansion + .TStr' />
									<exp exp='.Expansion = .Expansion + .NStr' />
									<exp exp='.Expansion = .Expansion + &quot;) || defined(_LAT&quot;' />
									<exp exp='.Expansion = .Expansion + .TStr' />
									<exp exp='.Expansion = .Expansion + &quot;_LAT&quot;' />
									<exp exp='.Expansion = .Expansion + .TStr' />
									<exp exp='.Expansion = .Expansion + .NStr' />
									<exp exp='.Expansion = .Expansion + &quot;_POSITION&quot;' />
									<exp exp='.Expansion = .Expansion + &quot;)\n&quot;' />
									<exp exp='.Expansion = .Expansion + &quot;#define LCDCSPIN LAT&quot;' />
									<exp exp='.Expansion = .Expansion + .TStr' />
									<exp exp='.Expansion = .Expansion + &quot;bits.LAT&quot;' />
									<exp exp='.Expansion = .Expansion + .TStr' />
									<exp exp='.Expansion = .Expansion + .NStr' />
									<exp exp='.Expansion = .Expansion + &quot;\n#else\n&quot;' />
									<exp exp='.Expansion = .Expansion + &quot;#define LCDCSPIN PORT&quot;' />
									<exp exp='.Expansion = .Expansion + .TStr' />
									<exp exp='.Expansion = .Expansion + &quot;bits.R&quot;' />
									<exp exp='.Expansion = .Expansion + .TStr' />
									<exp exp='.Expansion = .Expansion + .NStr' />
									<exp exp='.Expansion = .Expansion + &quot;\n#endif\n&quot;' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='Compare$ (.PropName,&quot;write_pin&quot;,1) == 0' swap='0' >
							<flowline >
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.GetValue' >
									<return exp='.PStr' />
									<argument exp='this' />
									<argument exp='&quot;write_pin&quot;' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.TStr[0] = .PStr[5]' />
									<exp exp='.TStr[1] = 0' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.NStr[0] = .PStr[7]' />
									<exp exp='.NStr[1] = .PStr[8]' />
									<exp exp='.NStr[2] = .PStr[9]' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.Expansion = &quot;#if defined(_LAT&quot;' />
									<exp exp='.Expansion = .Expansion + .TStr' />
									<exp exp='.Expansion = .Expansion + .NStr' />
									<exp exp='.Expansion = .Expansion + &quot;) || defined(_LAT&quot;' />
									<exp exp='.Expansion = .Expansion + .TStr' />
									<exp exp='.Expansion = .Expansion + &quot;_LAT&quot;' />
									<exp exp='.Expansion = .Expansion + .TStr' />
									<exp exp='.Expansion = .Expansion + .NStr' />
									<exp exp='.Expansion = .Expansion + &quot;_POSITION&quot;' />
									<exp exp='.Expansion = .Expansion + &quot;)\n&quot;' />
									<exp exp='.Expansion = .Expansion + &quot;#define LCDWRPIN LAT&quot;' />
									<exp exp='.Expansion = .Expansion + .TStr' />
									<exp exp='.Expansion = .Expansion + &quot;bits.LAT&quot;' />
									<exp exp='.Expansion = .Expansion + .TStr' />
									<exp exp='.Expansion = .Expansion + .NStr' />
									<exp exp='.Expansion = .Expansion + &quot;\n#else\n&quot;' />
									<exp exp='.Expansion = .Expansion + &quot;#define LCDWRPIN PORT&quot;' />
									<exp exp='.Expansion = .Expansion + .TStr' />
									<exp exp='.Expansion = .Expansion + &quot;bits.R&quot;' />
									<exp exp='.Expansion = .Expansion + .TStr' />
									<exp exp='.Expansion = .Expansion + .NStr' />
									<exp exp='.Expansion = .Expansion + &quot;\n#endif\n&quot;' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='Compare$ (.PropName,&quot;rs_pin&quot;,1) == 0' swap='0' >
							<flowline >
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.GetValue' >
									<return exp='.PStr' />
									<argument exp='this' />
									<argument exp='&quot;rs_pin&quot;' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.TStr[0] = .PStr[5]' />
									<exp exp='.TStr[1] = 0' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.NStr[0] = .PStr[7]' />
									<exp exp='.NStr[1] = .PStr[8]' />
									<exp exp='.NStr[2] = .PStr[9]' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.Expansion = &quot;#if defined(_LAT&quot;' />
									<exp exp='.Expansion = .Expansion + .TStr' />
									<exp exp='.Expansion = .Expansion + .NStr' />
									<exp exp='.Expansion = .Expansion + &quot;) || defined(_LAT&quot;' />
									<exp exp='.Expansion = .Expansion + .TStr' />
									<exp exp='.Expansion = .Expansion + &quot;_LAT&quot;' />
									<exp exp='.Expansion = .Expansion + .TStr' />
									<exp exp='.Expansion = .Expansion + .NStr' />
									<exp exp='.Expansion = .Expansion + &quot;_POSITION&quot;' />
									<exp exp='.Expansion = .Expansion + &quot;)\n&quot;' />
									<exp exp='.Expansion = .Expansion + &quot;#define LCDRSPIN LAT&quot;' />
									<exp exp='.Expansion = .Expansion + .TStr' />
									<exp exp='.Expansion = .Expansion + &quot;bits.LAT&quot;' />
									<exp exp='.Expansion = .Expansion + .TStr' />
									<exp exp='.Expansion = .Expansion + .NStr' />
									<exp exp='.Expansion = .Expansion + &quot;\n#else\n&quot;' />
									<exp exp='.Expansion = .Expansion + &quot;#define LCDRSPIN PORT&quot;' />
									<exp exp='.Expansion = .Expansion + .TStr' />
									<exp exp='.Expansion = .Expansion + &quot;bits.R&quot;' />
									<exp exp='.Expansion = .Expansion + .TStr' />
									<exp exp='.Expansion = .Expansion + .NStr' />
									<exp exp='.Expansion = .Expansion + &quot;\n#endif\n&quot;' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Plot' description='Sets a pixel with the current foreground colour at pixel location X, Y.' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='temp' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='3568629' cmdcolor_sec='3568629' exp='Orientation' >
							<case >
								<flowline />
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
										<exp exp='.temp = pixel_width - (.Y1 + 1)' />
										<exp exp='.Y1 = .X1' />
										<exp exp='.X1 = .temp' />
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
										<exp exp='.X1 = pixel_width - (.X1 + 1)' />
										<exp exp='.Y1 = pixel_height - (.Y1 + 1)' />
									</command>
								</flowline>
							</case>
							<case exp='3' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
										<exp exp='.temp = .Y1' />
										<exp exp='.Y1 = pixel_height - (.X1 + 1)' />
										<exp exp='.X1 = .temp' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Address_Set' >
							<argument exp='.X1' />
							<argument exp='.Y1' />
							<argument exp='.X1' />
							<argument exp='.Y1' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='FR' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='FG' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='FB' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='PlotSim' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' 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.' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='Orientation' type='u8' description='0=Default, 1=90°CW, 2=180°CW, 3=270°CW' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='Base_GLCD' macro='SetDisplayOrientation' >
							<argument exp='.Orientation' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='InitSim' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='sim' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='Base_GLCD' macro='Initialise' />
					</flowline>
				</macro>
				<macro >
					<flowline name='SendByte' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='Command' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='LCD_Out' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Select Display' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='chip_sel_pin = 0' />
						</command>
						<command class_type='calculation' title='Command' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='rs_pin = .Command' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='3568629' cmdcolor_sec='3568629' type='2' exp='8' >
							<flowline >
								<command class_type='calculation' title='Clock Low' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='write_pin = 0' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.LCD_Out &amp; 0x80' swap='0' >
									<flowline >
										<command class_type='calculation' title='Data High' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='data_pin0 = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Data Low' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='data_pin0 = 0' />
										</command>
									</flowline>
								</command>
								<command class_type='calculation' title='Clock High' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='write_pin = 1' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.LCD_Out = .LCD_Out &lt;&lt; 1' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='chip_sel_pin = 1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='FastPlot' description='Sets a pixel with the current foreground colour at pixel location X, Y.' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<local name='temp' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='FR' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='FG' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='FB' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SetBGColourSim' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='Red' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Green' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Blue' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='colour' type='u32' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='Base_GLCD' macro='SetBackgroundColour' >
							<argument exp='.Red' />
							<argument exp='.Green' />
							<argument exp='.Blue' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='DrawLine_Sim' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='X2' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y2' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='C1' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='M1' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='D1' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<local name='PixelX' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='PixelY' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Yinc' type='s16' description='' isconst='0' isinit='1' usrinit='1' setinit='1' />
						<local name='Xinc' type='s16' description='' isconst='0' isinit='1' usrinit='1' setinit='1' />
						<command class_type='sim' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' 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.' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='Orientation' type='u8' description='0=Default, 1=90°CW, 2=180°CW, 3=270°CW' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='Orientation = .Orientation' />
						</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.' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='UseBacklight' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='read_pin = 0' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='prv_init' description='Initialisation routine for the component' >
						<return name='Return' type='u32' description='Non-zero to prevent initialisation' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Red' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Green' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Blue' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Colour' type='u32' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Panel' cmdcolor='1975743' cmdcolor_sec='1975743' 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='1975743' cmdcolor_sec='1975743' 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='1975743' cmdcolor_sec='1975743' macro='Component.Property.CopyValue' >
							<argument exp='this' />
							<argument exp='Base_GLCD' />
							<argument exp='&quot;Monochrome&quot;' />
						</command>
						<command class_type='sim' title='Panel' cmdcolor='1975743' cmdcolor_sec='1975743' 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='1975743' cmdcolor_sec='1975743' 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='1975743' cmdcolor_sec='1975743' 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='1975743' cmdcolor_sec='1975743' 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='1975743' cmdcolor_sec='1975743' 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='1975743' cmdcolor_sec='1975743' 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='1975743' cmdcolor_sec='1975743' macro='Component.Property.CopyValue' >
							<argument exp='this' />
							<argument exp='Base_GLCD' />
							<argument exp='&quot;DisplayMethod&quot;' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='UseBacklight' swap='0' >
							<flowline >
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.SetVisible' >
									<argument exp='this' />
									<argument exp='&quot;led_pin&quot;' />
									<argument exp='1' />
								</command>
							</flowline>
							<flowline >
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.SetVisible' >
									<argument exp='this' />
									<argument exp='&quot;led_pin&quot;' />
									<argument exp='0' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='data_mode = 0' swap='0' >
							<flowline >
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.SetVisible' >
									<argument exp='this' />
									<argument exp='&quot;data_port&quot;' />
									<argument exp='1' />
								</command>
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.SetVisible' >
									<argument exp='this' />
									<argument exp='&quot;data_pin0&quot;' />
									<argument exp='0' />
								</command>
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.SetVisible' >
									<argument exp='this' />
									<argument exp='&quot;data_pin1&quot;' />
									<argument exp='0' />
								</command>
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.SetVisible' >
									<argument exp='this' />
									<argument exp='&quot;data_pin2&quot;' />
									<argument exp='0' />
								</command>
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.SetVisible' >
									<argument exp='this' />
									<argument exp='&quot;data_pin3&quot;' />
									<argument exp='0' />
								</command>
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.SetVisible' >
									<argument exp='this' />
									<argument exp='&quot;data_pin4&quot;' />
									<argument exp='0' />
								</command>
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.SetVisible' >
									<argument exp='this' />
									<argument exp='&quot;data_pin5&quot;' />
									<argument exp='0' />
								</command>
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.SetVisible' >
									<argument exp='this' />
									<argument exp='&quot;data_pin6&quot;' />
									<argument exp='0' />
								</command>
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.SetVisible' >
									<argument exp='this' />
									<argument exp='&quot;data_pin7&quot;' />
									<argument exp='0' />
								</command>
							</flowline>
							<flowline >
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.SetVisible' >
									<argument exp='this' />
									<argument exp='&quot;data_port&quot;' />
									<argument exp='0' />
								</command>
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.SetVisible' >
									<argument exp='this' />
									<argument exp='&quot;data_pin0&quot;' />
									<argument exp='1' />
								</command>
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.SetVisible' >
									<argument exp='this' />
									<argument exp='&quot;data_pin1&quot;' />
									<argument exp='1' />
								</command>
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.SetVisible' >
									<argument exp='this' />
									<argument exp='&quot;data_pin2&quot;' />
									<argument exp='1' />
								</command>
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.SetVisible' >
									<argument exp='this' />
									<argument exp='&quot;data_pin3&quot;' />
									<argument exp='1' />
								</command>
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.SetVisible' >
									<argument exp='this' />
									<argument exp='&quot;data_pin4&quot;' />
									<argument exp='1' />
								</command>
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.SetVisible' >
									<argument exp='this' />
									<argument exp='&quot;data_pin5&quot;' />
									<argument exp='1' />
								</command>
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.SetVisible' >
									<argument exp='this' />
									<argument exp='&quot;data_pin6&quot;' />
									<argument exp='1' />
								</command>
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.SetVisible' >
									<argument exp='this' />
									<argument exp='&quot;data_pin7&quot;' />
									<argument exp='1' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='.Red = foreground_colour &amp; 0xFF' />
							<exp exp='.Red = .Red &gt;&gt; (8 - blue_bit_depth)' />
							<exp exp='.Green = (foreground_colour &gt;&gt; 8) &amp; 0xFF' />
							<exp exp='.Green = .Green &gt;&gt; (8 - green_bit_depth)' />
							<exp exp='.Blue = (foreground_colour &gt;&gt; 16) &amp; 0xFF' />
							<exp exp='.Blue = .Blue &gt;&gt; (8 - red_bit_depth)' />
							<exp exp='.Colour = .Blue | (.Green &lt;&lt; green_bit_depth)' />
							<exp exp='.Colour = .Colour | (.Red &lt;&lt; (blue_bit_depth + green_bit_depth))' />
							<exp exp='' />
							<exp exp='' />
						</command>
						<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.SetValue' >
							<argument exp='this' />
							<argument exp='&quot;FGCOL&quot;' />
							<argument exp='.Colour' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<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='1975743' cmdcolor_sec='1975743' macro='Component.Property.SetValue' >
							<argument exp='this' />
							<argument exp='&quot;BGCOL&quot;' />
							<argument exp='.Colour' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='BPlot' description='Sets a pixel with the current background colour at pixel location X, Y.' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='temp' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='3568629' cmdcolor_sec='3568629' exp='Orientation' >
							<case >
								<flowline />
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
										<exp exp='.temp = pixel_width - (.Y1 + 1)' />
										<exp exp='.Y1 = .X1' />
										<exp exp='.X1 = .temp' />
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
										<exp exp='.X1 = pixel_width - (.X1 + 1)' />
										<exp exp='.Y1 = pixel_height - (.Y1 + 1)' />
									</command>
								</flowline>
							</case>
							<case exp='3' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
										<exp exp='.temp = .Y1' />
										<exp exp='.Y1 = pixel_height - (.X1 + 1)' />
										<exp exp='.X1 = .temp' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Address_Set' >
							<argument exp='.X1' />
							<argument exp='.Y1' />
							<argument exp='.X1' />
							<argument exp='.Y1' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='BR' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='BG' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='BB' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SetFGColourSim' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='Red' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Green' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Blue' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='colour' type='u32' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='Base_GLCD' macro='SetForegroundColour' >
							<argument exp='.Red' />
							<argument exp='.Green' />
							<argument exp='.Blue' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='DrawRectangleSim' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='X2' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y2' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Transparent' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Solid' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Xmin' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Xmax' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Ymin' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Ymax' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' 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='Address_Set' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='X2' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y2' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='comment' title='' comment='Set Column Address' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Reg' >
							<argument exp='0x2A' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='.x1 = .x1 + OffX' />
							<exp exp='.x2 = .x2 + OffX' />
							<exp exp='' />
							<exp exp='.y1 = .y1 + OffY' />
							<exp exp='.y2 = .y2 + OffY' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='.X1 &gt;&gt; 8' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='.X1' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='.X2 &gt;&gt; 8' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='.X2' />
						</command>
						<command class_type='comment' title='' comment='Set Row Address' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Reg' >
							<argument exp='0x2B' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='.Y1 &gt;&gt; 8' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='.Y1' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='.Y2 &gt;&gt; 8' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='.Y2' />
						</command>
						<command class_type='comment' title='' comment='Prep for data' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Reg' >
							<argument exp='0x2C' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='PrintSim' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='Str' type='T8*' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<param name='X1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Font' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Transparent' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='xpix' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='ypix' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='pos_str' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='len_str' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='count' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='xcount' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='ycount' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='height' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='width' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='idx' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='font_width' type='u8' description='' isconst='0' isinit='1' usrinit='1' setinit='1' />
						<local name='font_height' type='u8' description='' isconst='0' isinit='1' usrinit='1' setinit='1' />
						<local name='position' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='temp' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='6' />
						</local>
						<local name='temp2' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='6' />
						</local>
						<command class_type='sim' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' 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.' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='Str' type='T8*' description='String of characters to send to the display.' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<param name='X1' type='u16' description='X pixel coordinate to set the output string position.' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='Y pixel coordinate to set the output string position.' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Font' type='u8' description='Size of the font - 0 = Normal, 1 = Double Width, 2 = Double Width and Height, 3 = Double Height' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Transparent' type='u8' description='Specifies if the background of the text is drawn - 0 = Background colour is drawn, 1 = Background colour not drawn.' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='xpix' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='ypix' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='pos_str' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='len_str' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='count' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='xcount' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='ycount' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='height' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='width' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='idx' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='font_width' type='u8' description='' isconst='0' isinit='1' usrinit='1' setinit='1' />
						<local name='font_height' type='u8' description='' isconst='0' isinit='1' usrinit='1' setinit='1' />
						<local name='position' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='temp' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='6' />
						</local>
						<local name='dat' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.Font' >
							<case >
								<flowline >
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='1' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='0' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='1' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='0' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='1' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='0' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='1' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='0' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='1' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='0' />
								</flowline>
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='1' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='0' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='1' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='0' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='1' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='0' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='1' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='0' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='1' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='0' />
									<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
										<exp exp='.font_width = 2' />
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='1' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='0' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='1' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='0' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='1' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='0' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='1' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='0' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='1' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='0' />
									<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
										<exp exp='.font_width = 2' />
										<exp exp='.font_height = 2' />
									</command>
								</flowline>
							</case>
							<case exp='3' >
								<flowline >
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='1' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='0' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='1' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='0' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='1' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='0' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='1' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='0' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='1' />
									<command class_type='block' title='' hide='1' cmdcolor='1975743' cmdcolor_sec='1975743' start='0' />
									<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
										<exp exp='.font_height = 2' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='3568629' cmdcolor_sec='3568629' exp='Orientation' >
							<case >
								<flowline />
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
										<exp exp='.temp[0] = pixel_width - .Y1' />
										<exp exp='.Y1 = .X1' />
										<exp exp='.X1 = .temp[0]' />
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
										<exp exp='.X1 = pixel_width - .X1' />
										<exp exp='.Y1 = pixel_height - .Y1' />
									</command>
								</flowline>
							</case>
							<case exp='3' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
										<exp exp='.temp[0] = .Y1' />
										<exp exp='.Y1 = pixel_height - .X1' />
										<exp exp='.X1 = .temp[0]' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='.xcount = 0' />
							<exp exp='.idx = 0' />
							<exp exp='.temp[5] = 0' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='.len_str = Length$ (.Str)' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='3568629' cmdcolor_sec='3568629' type='0' exp='.idx &lt; .len_str' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.pos_str = .Str[.idx] - 32' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.count = 0' />
								</command>
								<command class_type='loop' title='Loop' cmdcolor='3568629' cmdcolor_sec='3568629' type='0' exp='.count &lt; 5' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='Base_GLCD' macro='ReadASCIILUT' >
											<return exp='.temp[.count]' />
											<argument exp='.pos_str' />
											<argument exp='.count' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='.count = .count + 1' />
										</command>
									</flowline>
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.temp[.count] = 0' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.xpix = 0' />
								</command>
								<command class_type='loop' title='Loop' cmdcolor='3568629' cmdcolor_sec='3568629' type='0' exp='.xpix &lt; 6' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='.width = 0' />
										</command>
										<command class_type='loop' title='Loop' cmdcolor='3568629' cmdcolor_sec='3568629' type='0' exp='.width &lt; .font_width' >
											<flowline >
												<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='3568629' cmdcolor_sec='3568629' exp='Orientation' >
													<case >
														<flowline >
															<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Address_Set' >
																<argument exp='.X1 + .xcount' />
																<argument exp='.Y1' />
																<argument exp='.X1 + .xcount' />
																<argument exp='.Y1 + (.font_height * 8)' />
															</command>
														</flowline>
													</case>
													<case exp='1' >
														<flowline >
															<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Address_Set' >
																<argument exp='.X1' />
																<argument exp='.Y1 + .xcount' />
																<argument exp='.X1 + (.font_height * 8)' />
																<argument exp='.Y1 + .xcount' />
															</command>
														</flowline>
													</case>
													<case exp='2' >
														<flowline >
															<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Address_Set' >
																<argument exp='.X1 + .xcount' />
																<argument exp='.Y1' />
																<argument exp='.X1 + .xcount' />
																<argument exp='.Y1 + (.font_height * 8)' />
															</command>
														</flowline>
													</case>
													<case exp='3' >
														<flowline >
															<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Address_Set' >
																<argument exp='.X1' />
																<argument exp='.Y1 - .xcount' />
																<argument exp='.X1 + (.font_height * 8)' />
																<argument exp='.Y1 - .xcount' />
															</command>
														</flowline>
													</case>
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
													<exp exp='.ycount = 0' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
													<exp exp='.ypix = 0' />
												</command>
												<command class_type='loop' title='Loop' cmdcolor='3568629' cmdcolor_sec='3568629' type='0' exp='.ypix &lt; 8' >
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
															<exp exp='.height = 0' />
														</command>
														<command class_type='loop' title='Loop' cmdcolor='3568629' cmdcolor_sec='3568629' type='0' exp='.height &lt; .font_height' >
															<flowline >
																<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='3568629' cmdcolor_sec='3568629' exp='Orientation' >
																	<case >
																		<flowline >
																			<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
																				<exp exp='.dat = .temp[.xpix] &amp; (0x01 &lt;&lt; .ypix)' />
																			</command>
																		</flowline>
																	</case>
																	<case exp='1' >
																		<flowline >
																			<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
																				<exp exp='.dat = .temp[.xpix] &amp; (0x80 &gt;&gt; .ypix)' />
																			</command>
																		</flowline>
																	</case>
																	<case exp='2' >
																		<flowline >
																			<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
																				<exp exp='.dat = .temp[.xpix] &amp; (0x01 &lt;&lt; .ypix)' />
																			</command>
																		</flowline>
																	</case>
																	<case exp='3' >
																		<flowline >
																			<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
																				<exp exp='.dat = .temp[.xpix] &amp; (0x01 &lt;&lt; .ypix)' />
																			</command>
																		</flowline>
																	</case>
																</command>
																<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.dat' swap='0' >
																	<flowline >
																		<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='FastPlot' />
																	</flowline>
																	<flowline >
																		<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.Transparent = 0' swap='0' >
																			<flowline >
																				<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='FastBPlot' />
																			</flowline>
																			<flowline >
																				<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='FastBPlot' />
																			</flowline>
																		</command>
																	</flowline>
																</command>
																<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
																	<exp exp='.height = .height + 1' />
																	<exp exp='.ycount = .ycount + 1' />
																</command>
															</flowline>
														</command>
														<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
															<exp exp='.ypix = .ypix + 1' />
															<exp exp='' />
														</command>
													</flowline>
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
													<exp exp='.width = .width + 1' />
													<exp exp='.xcount = .xcount + 1' />
												</command>
											</flowline>
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='.xpix = .xpix + 1' />
										</command>
									</flowline>
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.idx = .idx + 1' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='BPlotSim' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' 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.' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<local name='Y' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<local name='X' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Address_Set' >
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='pixel_width - 1' />
							<argument exp='pixel_height - 1' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='3568629' cmdcolor_sec='3568629' type='0' exp='.Y &lt; pixel_height' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.X = 0' />
								</command>
								<command class_type='loop' title='Loop' cmdcolor='3568629' cmdcolor_sec='3568629' type='0' exp='.X &lt; pixel_width' >
									<flowline >
										<command class_type='call' title='R' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
											<argument exp='BR' />
										</command>
										<command class_type='call' title='G' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
											<argument exp='BG' />
										</command>
										<command class_type='call' title='B' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
											<argument exp='BB' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='.X = .X + 1' />
										</command>
									</flowline>
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.Y = .Y + 1' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SetBackgroundColour' description='Specifies the colour of the background by creating a mixture of red, green and blue.
' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='Red' type='u8' description='0 - 255 where 0 = no red and 255 = maximum red' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Green' type='u8' description='0 - 255 where 0 = no green and 255 = maximum green' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Blue' type='u8' description='0 - 255 where 0 = no blue and 255 = maximum blue' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='BR = .Red' />
							<exp exp='BG = .Green' />
							<exp exp='BB = .Blue' />
						</command>
					</flowline>
				</macro>
				<macro keep='1' >
					<flowline name='ReadASCIILUT' description='' >
						<return name='Return' type='v0' description='' isconst='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.
' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='Red' type='u8' description='0 - 255 where 0 = no red and 255 = maximum red' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Green' type='u8' description='0 - 255 where 0 = no green and 255 = maximum green' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Blue' type='u8' description='0 - 255 where 0 = no blue and 255 = maximum blue' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='FR = .Red' />
							<exp exp='FG = .Green' />
							<exp exp='FB = .Blue' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='DrawRectangle' description='Draws a rectangle with the current foreground colour from pixel loaction X1, Y1 to pixel location X2, Y2' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='X2' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y2' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Transparent' type='u8' description='Chooses the transparency of the box - 0 = Box contains background colour, 1 = Box contains previous pixel data.' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Solid' type='u8' description='Chooses to fill the box with colour - 0 = Box contains transparency data, 1 = Box contains foreground colour.' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Xmin' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Xmax' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Ymin' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Ymax' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='DrawLine' >
							<argument exp='.X1' />
							<argument exp='.Y1' />
							<argument exp='.X2' />
							<argument exp='.Y1' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='DrawLine' >
							<argument exp='.X2' />
							<argument exp='.Y1' />
							<argument exp='.X2' />
							<argument exp='.Y2' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='DrawLine' >
							<argument exp='.X1' />
							<argument exp='.Y2' />
							<argument exp='.X2' />
							<argument exp='.Y2' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='DrawLine' >
							<argument exp='.X1' />
							<argument exp='.Y1' />
							<argument exp='.X1' />
							<argument exp='.Y2' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.Transparent = 0' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.X1 &gt; .X2' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='.Xmax = .X1' />
											<exp exp='.Xmin = .X2 + 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='.Xmax = .X2' />
											<exp exp='.Xmin = .X1 + 1' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.Y1 &gt; .Y2' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='.Ymax = .Y1' />
											<exp exp='.Ymin = .Y2 + 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='.Ymax = .Y2' />
											<exp exp='.Ymin = .Y1 + 1' />
										</command>
									</flowline>
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.Y1 = .Ymin' />
								</command>
								<command class_type='loop' title='Loop' cmdcolor='3568629' cmdcolor_sec='3568629' type='0' exp='.Y1 &lt; .YMax' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='.X1 = .Xmin' />
										</command>
										<command class_type='loop' title='Loop' cmdcolor='3568629' cmdcolor_sec='3568629' type='0' exp='.X1 &lt; .XMax' >
											<flowline >
												<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.Solid' swap='0' >
													<flowline >
														<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Plot' >
															<argument exp='.X1' />
															<argument exp='.Y1' />
														</command>
													</flowline>
													<flowline >
														<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='BPlot' >
															<argument exp='.X1' />
															<argument exp='.Y1' />
														</command>
													</flowline>
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
													<exp exp='.X1 = .X1 + 1' />
												</command>
											</flowline>
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='.Y1 = .Y1 + 1' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='InitSim' />
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='SetDisplayOrientationSim' >
							<argument exp='3' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='PrintSim' >
							<argument exp='&quot;Hello&quot;' />
							<argument exp='5' />
							<argument exp='5' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Initialise' description='The Init macro must be called once to initialise the Graphical LCD display before any other Graphical LCD component macros are called.' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<local name='P_Width' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Flip' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='chip_sel_pin = 1' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='reset_pin = 1' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='7895044' cmdcolor_sec='7895044' exp='5' type='1' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='reset_pin = 0' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='7895044' cmdcolor_sec='7895044' exp='5' type='1' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='rs_pin = 0' />
							<exp exp='write_pin = 1' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='reset_pin = 1' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='7895044' cmdcolor_sec='7895044' exp='5' type='1' />
						<command class_type='comment' title='' comment='PLL Config' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Display Off' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Reg' >
							<argument exp='0x28' />
						</command>
						<command class_type='call' title='PLL Control' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Reg' >
							<argument exp='0xE0' />
						</command>
						<command class_type='call' title='PLL Off' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='0x00' />
						</command>
						<command class_type='call' title='PLL MN Control' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Reg' >
							<argument exp='0xE2' />
						</command>
						<command class_type='call' title='PLL M' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='PLLMult' />
						</command>
						<command class_type='call' title='PLL N' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='PLLDiv' />
						</command>
						<command class_type='call' title='PLL C' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='0x04' />
						</command>
						<command class_type='call' title='PLL Control' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Reg' >
							<argument exp='0xE0' />
						</command>
						<command class_type='call' title='PLL On' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='0x01' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='7895044' cmdcolor_sec='7895044' exp='100' type='1' />
						<command class_type='call' title='PLL Control' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Reg' >
							<argument exp='0xE0' />
						</command>
						<command class_type='call' title='PLL On &amp; Used as Clk' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='0x03' />
						</command>
						<command class_type='call' title='Soft Reset' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Reg' >
							<argument exp='0x01' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='7895044' cmdcolor_sec='7895044' exp='5' type='1' />
						<command class_type='comment' title='' comment='Display Setup' textarea='52,28,52,28' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Set LShift Frequency' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Reg' >
							<argument exp='0xE6' />
						</command>
						<command class_type='call' title='Param1' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='0x00' />
						</command>
						<command class_type='call' title='Param2' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='0xB4' />
						</command>
						<command class_type='call' title='Param3' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='0xE7' />
						</command>
						<command class_type='call' title='Set LCD Mode' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Reg' >
							<argument exp='0xB0' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='ColourWidth' swap='0' >
							<flowline >
								<command class_type='call' title='Param1 - Was 0' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
									<argument exp='0x20' />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Param1 - Was 0' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
									<argument exp='0x00' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Param2' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='0x00' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='pixel_width = 800' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.P_Width = 864' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.P_Width = pixel_width' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Param3' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='.P_Width &gt;&gt; 8' />
						</command>
						<command class_type='call' title='Param4' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='.P_Width' />
						</command>
						<command class_type='call' title='Param5' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='pixel_height &gt;&gt; 8' />
						</command>
						<command class_type='call' title='Param6' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='pixel_height' />
						</command>
						<command class_type='call' title='Param7' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='0x00' />
						</command>
						<command class_type='call' title='Set Pixel Data Interface' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Reg' >
							<argument exp='0xF0' />
						</command>
						<command class_type='call' title='Param1 - 8-Bit' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='0x00' />
						</command>
						<command class_type='call' title='Set Address Mode' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Reg' >
							<argument exp='0x36' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='.Flip = 0' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='FlipY' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.Flip = .Flip | 1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='FlipX' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.Flip = .Flip | 2' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' disable='1' cmdcolor='3568629' cmdcolor_sec='3568629' exp='ColourWidth &gt; 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.Flip = .Flip | 8' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Param1 - Flip Horizontal' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Data' >
							<argument exp='.Flip' />
						</command>
						<command class_type='comment' title='' comment='Display On' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Display On' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_Write_Reg' >
							<argument exp='0x29' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='FR = foreground_colour' />
							<exp exp='FG = foreground_colour / 256' />
							<exp exp='FB = foreground_colour / 65536' />
							<exp exp='BR = background_colour' />
							<exp exp='BG = background_colour / 256' />
							<exp exp='BB = background_colour / 65536' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='ClearDisplay' />
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='4384cba9-0bea-4359-8c5b-dcd046aa7778' vmin='5' vmaj='1' codename='Base_GLCD' x='13.8692' y='4.83245' z='0' xsz='0.218984' ysz='0.219' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pixel_height' data='480' />
					<value target='pixel_width' data='864' />
					<value target='monochrome' data='0' />
					<value target='foreground_colour' data='0' />
					<value target='background_colour' data='16777215' />
					<value target='colour_bit_depth' data='18' />
					<value target='red_bit_depth' data='6' />
					<value target='green_bit_depth' data='6' />
					<value target='blue_bit_depth' data='6' />
					<value target='DisplayMethod' data='001' />
					<value target='EmbedFontSet' data='1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<keymap />
	<panel2d shadows='0' lighting='0' brightness='0' perspective='0' >
		<background rgb='9737364' img='' style='0' />
		<camera xe='0' ye='0' ze='157.282' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel2d>
	<panel3d shadows='0' lighting='2' brightness='0' perspective='1' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='0' />
		<camera xe='-110.455' ye='-39.6072' ze='149.151' xt='7.78003' yt='11.5675' zt='10.5995' 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' />
	</panel3d>
	<layout >
		<view type='0' name='LCD_Write_Data' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAxwMAAKYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Ev_AddProperty' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAxwMAAKYDAAA' zoom='75' scrollx='0' scrolly='1380' flags='0' />
		<view type='0' name='Plot' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAxwMAAKYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SendByte' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAxwMAAKYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='BPlot' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAxwMAAKYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Initialise' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAxwMAAKYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SetPostProc' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAxwMAAKYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SetForegroundColour' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAxwMAAKYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='FastBPlot' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAxwMAAKYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='FastPlot' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAxwMAAKYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Print' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAxwMAAKYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Address_Set' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAxwMAAKYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='InitSim' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAxwMAAKYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SetBackgroundColour' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAxwMAAKYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ClearDisplay' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAxwMAAKYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SetFGColourSim' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAxwMAAKYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ClearSim' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAxwMAAKYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='LCD_Write_Reg' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAxwMAAKYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='prv_init' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAxwMAAKYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAxwMAAKYDAAA' zoom='55' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='BacklightOff' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAxwMAAKYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='BacklightOn' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAxwMAAKYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ReadASCIILUT' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAxwMAAKYDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
