<root>
<document scada='0' projtype='1' schema='103' license='1,82702381,95CJQR' title='' description='' fcversion='720899' target='PIC.16F.16F18877' >
	<config data='!0,3f8c!10,37fd!20,3f92!30,1fff!40,3fff%0,4%4,0%8,1%b,1%d,1%10,1%11,0%15,1%16,3%19,1%1a,1%1b,0%1c,1%1d,1%20,12%25,0%28,7%2b,7%30,3%3c,1%3d,0%40,1%41,1' clkspd='32000000' simspd='1' usewdt='0' constif='0' Use3V3='0' />
	<plugins >
		<dll_models enabled='1' />
	</plugins>
	<supplement use='0' head='#define FCD FCV' body='' />
	<debug >
		<watch expr='.idx' />
		<watch expr='.xcount' />
		<watch expr='.len_str' />
		<watch expr='.temp[0]' />
		<watch expr='.temp[1]' />
		<watch expr='.height' />
		<watch expr='.ypix' />
		<watch expr='.xpix' />
		<watch expr='.width' />
		<watch expr='.count' />
		<watch expr='ba' />
	</debug>
	<traces />
	<ghost >
		<FK2 >
			<data name='FK2D0' port='4294967295' pin='4294967295' />
			<data name='FK2D1' port='4294967295' pin='4294967295' />
			<data name='FK2D2' port='4294967295' pin='4294967295' />
			<data name='FK2D3' port='4294967295' pin='4294967295' />
			<data name='FK2D4' port='4294967295' pin='4294967295' />
			<data name='FK2D5' port='4294967295' pin='4294967295' />
			<data name='FK2D6' port='4294967295' pin='4294967295' />
			<data name='FK2D7' port='4294967295' pin='4294967295' />
			<data name='FK2D8' port='4294967295' pin='4294967295' />
			<data name='FK2D9' port='4294967295' pin='4294967295' />
			<data name='FK2D10' port='4294967295' pin='4294967295' />
			<data name='FK2D11' port='4294967295' pin='4294967295' />
			<data name='FK2D12' port='4294967295' pin='4294967295' />
			<data name='FK2D13' port='4294967295' pin='4294967295' />
			<data name='FK2D14' port='4294967295' pin='4294967295' />
			<data name='FK2D15' port='4294967295' pin='4294967295' />
			<data name='FK2A0' port='4294967295' pin='4294967295' />
			<data name='FK2A1' port='4294967295' pin='4294967295' />
			<data name='FK2A2' port='4294967295' pin='4294967295' />
			<data name='FK2A3' port='4294967295' pin='4294967295' />
			<data name='FK2A4' port='4294967295' pin='4294967295' />
			<data name='FK2A5' port='4294967295' pin='4294967295' />
		</FK2>
		<ICD >
			<data name='AnalogPrescaleValue' value='19' />
			<data name='DigitalSampleRate' value='100000' />
			<data name='BreakpointCount' value='8' />
			<data name='CallStackDepthCount' value='8' />
			<data name='ClockPort' value='1' />
			<data name='ClockPin' value='6' />
			<data name='DataPort' value='1' />
			<data name='DataPin' value='7' />
			<data name='UseDefaultPins' value='1' />
			<data name='WrapEnabled' value='1' />
			<data name='CommsDelayOverridden' value='0' />
			<data name='CommsDelay' value='6' />
			<data name='CalculatedCommsDelay' value='6' />
			<data name='AnalogEB2PrescaleValue' value='2' />
			<data name='DigitalEB2SampleRate' value='100000' />
		</ICD>
		<pins >
			<digital A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
			<analog A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
		</pins>
	</ghost>
	<components >
		<settings autoimg='0' center='1' unitscale='1' fixedscale='0' fixedx='0' fixedy='0' fixedz='0' headcode='0' />
		<definition guid='a586cc1a-e489-4a63-8cc7-e7e21676f5b4' vstate='40' vmin='0' vmaj='1' srcleaf='glcd_SSD1963.fcfx' visiblename='GLCD (SSD1963) Parallel CUSTOM' description='Graphical display component designed to work with the SSD1963 controller IC
Based on the SSD1963 16-bit colour graphical controller IC.' category='Graphical Color' category2='' category3='' bIs2dOnly='1' bIs3dOnly='0' bIsWysiwyg='0' catenable='1' author='Matrix Ltd' manuname='' manucode='' sysinfo='1053483' keywords='' dynamic='1' scadaCompatible='0' embeddedCompatible='1' showmacros='1' iconpath='..\..\icons\components\glcd.png' />
		<component class_type='root' codename='gLCD_SSD1963_Custom' panelId='-1' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='0' poslock='1' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' angle2d='0' comp2dType='0' macronames='$(type)_$(module)__$(macro)' varnames='$(type)_$(module)__$(variable:u)' >
			<resources />
			<properties >
				<property name='Dimensions' hidden='0' >
					<property name='Pixel Width' target='pixel_width' typeid='14' hidden='0' locked='0' info='Width of gLCD canvas measured in pixels.' />
					<property name='Pixel Height' target='pixel_height' typeid='14' hidden='0' locked='0' info='Heigt of gLCD canvas measured in pixels.' />
				</property>
				<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='DataMode' 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 8 Bit
001Port 16 Bit
002Individual 8 Bits
003Individual 16 Bits' />
					<property name='Data 0' target='data0' typeid='5' hidden='1' locked='0' info='Data pin connection' />
					<property name='Data 1' target='data1' typeid='5' hidden='1' locked='0' info='Data pin connection' />
					<property name='Data 2' target='data2' typeid='5' hidden='1' locked='0' info='Data pin connection' />
					<property name='Data 3' target='data3' typeid='5' hidden='1' locked='0' info='Data pin connection' />
					<property name='Data 4' target='data4' typeid='5' hidden='1' locked='0' info='Data pin connection' />
					<property name='Data 5' target='data5' typeid='5' hidden='1' locked='0' info='Data pin connection' />
					<property name='Data 6' target='data6' typeid='5' hidden='1' locked='0' info='Data pin connection' />
					<property name='Data 7' target='data7' typeid='5' hidden='1' locked='0' info='Data pin connection' />
					<property name='Data 8' target='data8' typeid='5' hidden='1' locked='0' info='Data pin connection' />
					<property name='Data 9' target='data9' typeid='5' hidden='1' locked='0' info='Data pin connection' />
					<property name='Data 10' target='data10' typeid='5' hidden='1' locked='0' info='Data pin connection' />
					<property name='Data 11' target='data11' typeid='5' hidden='1' locked='0' info='Data pin connection' />
					<property name='Data 12' target='data12' typeid='5' hidden='1' locked='0' info='Data pin connection' />
					<property name='Data 13' target='data13' typeid='5' hidden='1' locked='0' info='Data pin connection' />
					<property name='Data 14' target='data14' typeid='5' hidden='1' locked='0' info='Data pin connection' />
					<property name='Data 15' target='data15' typeid='5' hidden='1' locked='0' info='Data pin connection' />
					<property name='Data[7:0]' target='dataport_low' 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[15:8]' target='dataport_high' typeid='19' hidden='1' locked='0' info='Microcontroller port pins to use to pass 8-bit parrallel data to the graphical display' />
					<property name='Write' target='write_pin' typeid='5' hidden='0' locked='0' info='Write pin connection
' expansion='x' 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' expansion='x' initialiser='' />
					<property name='Use CS' target='UseCS' 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='Chip Select' target='chip_sel_pin' typeid='5' hidden='0' locked='0' info='Chip select pin connection
' expansion='x' initialiser='' />
					<property name='Use Reset' target='UseReset' 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='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 name='ESP_OPT' target='ESP_OPT' typeid='7' hidden='1' locked='0' info='Controls if the backlight is controlled using an I/O pin or fixed to be always on by the circuitry.' />
				</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='Fonts' folder='Base_GLCD::property_2' hidden='0' >
					<property name='Font Count' target='Base_GLCD::FontCount' typeid='16' hidden='0' locked='0' info='Specifies the number of fonts available to use on the display.' filter='0011
0022
0033
0044
0055
0066
0077
0088' />
					<property name='Font 0' folder='Base_GLCD::property_3' hidden='0' >
						<property name='Font' target='Base_GLCD::gLCD_Font1::Font' typeid='16' hidden='0' locked='0' info='Font picker to decide which font to use on your display.' filter='000Default 8 (Legacy)
001Arial 14
019Arial 24
020Arial 32
021Arial 40
028Arial 48
045Arial 59
046Arial 70
047Arial 80
048Arial 89
055Arial 100
057Arial 119
059Arial 130
061Arial 140
084Arial 150
087Arial 160
002Arial Bold 14
049Arial Bold 24
050Arial Bold 32
051Arial Bold 40
029Arial Bold 47
052Arial Bold 60
053Arial Bold 70
054Arial Bold 80
031Arial Bold 90
056Arial Bold 100
058Arial Bold 120
060Arial Bold 130
083Arial Bold 140
085Arial Bold 150
086Arial Bold 159
003Courier New 9
004Courier New 20
005Courier New 29
006Courier New 40
007Courier New 49
008Courier New 60
009Courier New 69
010Courier New 80
011Courier New 89
012Courier New 100
026Seven Segment 24
027Seven Segment 32
091Seven Segment 40
013Seven Segment 49
014Seven Segment 59
015Seven Segment 70
016Seven Segment 79
017Seven Segment 89
018Seven Segment 100
022Seven Segment 110
023Seven Segment 120
024Seven Segment 130
025Seven Segment 140
030Seven Segment 150
032Seven Segment 160
018Custom
' />
						<property name='Custom Font File' target='Base_GLCD::gLCD_Font1::CustomFontFile' typeid='13' hidden='1' locked='0' info='Points to the .c file produced by the dot factory application.' />
						<property name='Bytes Required' target='Base_GLCD::gLCD_Font1::BytesRequired' typeid='21' hidden='0' locked='1' info='Number of bytes required in program memory to store the selected font.' />
						<property name='Character Spacing' target='Base_GLCD::gLCD_Font1::FontSpace' typeid='21' hidden='0' locked='0' info='Sets the number of blank pixels between each character when printing text.' />
						<property name='Space Width' target='Base_GLCD::gLCD_Font1::SpaceWidth' typeid='21' hidden='0' locked='0' info='Sets the number of horizontal pixels used to represent a space character.' />
					</property>
					<property name='Font 1' folder='Base_GLCD::property_4' hidden='1' >
						<property name='Font' target='Base_GLCD::gLCD_Font2::Font' typeid='16' hidden='0' locked='0' info='Font picker to decide which font to use on your display.' filter='000Default 8 (Legacy)
001Arial 14
019Arial 24
020Arial 32
021Arial 40
028Arial 48
045Arial 59
046Arial 70
047Arial 80
048Arial 89
055Arial 100
057Arial 119
059Arial 130
061Arial 140
084Arial 150
087Arial 160
002Arial Bold 14
049Arial Bold 24
050Arial Bold 32
051Arial Bold 40
029Arial Bold 47
052Arial Bold 60
053Arial Bold 70
054Arial Bold 80
031Arial Bold 90
056Arial Bold 100
058Arial Bold 120
060Arial Bold 130
083Arial Bold 140
085Arial Bold 150
086Arial Bold 159
003Courier New 9
004Courier New 20
005Courier New 29
006Courier New 40
007Courier New 49
008Courier New 60
009Courier New 69
010Courier New 80
011Courier New 89
012Courier New 100
026Seven Segment 24
027Seven Segment 32
091Seven Segment 40
013Seven Segment 49
014Seven Segment 59
015Seven Segment 70
016Seven Segment 79
017Seven Segment 89
018Seven Segment 100
022Seven Segment 110
023Seven Segment 120
024Seven Segment 130
025Seven Segment 140
030Seven Segment 150
032Seven Segment 160
018Custom
' />
						<property name='Custom Font File' target='Base_GLCD::gLCD_Font2::CustomFontFile' typeid='13' hidden='1' locked='0' info='Points to the .c file produced by the dot factory application.' />
						<property name='Bytes Required' target='Base_GLCD::gLCD_Font2::BytesRequired' typeid='21' hidden='0' locked='1' info='Number of bytes required in program memory to store the selected font.' />
						<property name='Character Spacing' target='Base_GLCD::gLCD_Font2::FontSpace' typeid='21' hidden='0' locked='0' info='Sets the number of blank pixels between each character when printing text.' />
						<property name='Space Width' target='Base_GLCD::gLCD_Font2::SpaceWidth' typeid='21' hidden='0' locked='0' info='Sets the number of horizontal pixels used to represent a space character.' />
					</property>
					<property name='Font 2' folder='Base_GLCD::property_5' hidden='1' >
						<property name='Font' target='Base_GLCD::gLCD_Font3::Font' typeid='16' hidden='0' locked='0' info='Font picker to decide which font to use on your display.' filter='000Default 8 (Legacy)
001Arial 14
019Arial 24
020Arial 32
021Arial 40
028Arial 48
045Arial 59
046Arial 70
047Arial 80
048Arial 89
055Arial 100
057Arial 119
059Arial 130
061Arial 140
084Arial 150
087Arial 160
002Arial Bold 14
049Arial Bold 24
050Arial Bold 32
051Arial Bold 40
029Arial Bold 47
052Arial Bold 60
053Arial Bold 70
054Arial Bold 80
031Arial Bold 90
056Arial Bold 100
058Arial Bold 120
060Arial Bold 130
083Arial Bold 140
085Arial Bold 150
086Arial Bold 159
003Courier New 9
004Courier New 20
005Courier New 29
006Courier New 40
007Courier New 49
008Courier New 60
009Courier New 69
010Courier New 80
011Courier New 89
012Courier New 100
026Seven Segment 24
027Seven Segment 32
091Seven Segment 40
013Seven Segment 49
014Seven Segment 59
015Seven Segment 70
016Seven Segment 79
017Seven Segment 89
018Seven Segment 100
022Seven Segment 110
023Seven Segment 120
024Seven Segment 130
025Seven Segment 140
030Seven Segment 150
032Seven Segment 160
018Custom
' />
						<property name='Custom Font File' target='Base_GLCD::gLCD_Font3::CustomFontFile' typeid='13' hidden='1' locked='0' info='Points to the .c file produced by the dot factory application.' />
						<property name='Bytes Required' target='Base_GLCD::gLCD_Font3::BytesRequired' typeid='21' hidden='0' locked='1' info='Number of bytes required in program memory to store the selected font.' />
						<property name='Character Spacing' target='Base_GLCD::gLCD_Font3::FontSpace' typeid='21' hidden='0' locked='0' info='Sets the number of blank pixels between each character when printing text.' />
						<property name='Space Width' target='Base_GLCD::gLCD_Font3::SpaceWidth' typeid='21' hidden='0' locked='0' info='Sets the number of horizontal pixels used to represent a space character.' />
					</property>
					<property name='Font 3' folder='Base_GLCD::property_6' hidden='1' >
						<property name='Font' target='Base_GLCD::gLCD_Font4::Font' typeid='16' hidden='0' locked='0' info='Font picker to decide which font to use on your display.' filter='000Default 8 (Legacy)
001Arial 14
019Arial 24
020Arial 32
021Arial 40
028Arial 48
045Arial 59
046Arial 70
047Arial 80
048Arial 89
055Arial 100
057Arial 119
059Arial 130
061Arial 140
084Arial 150
087Arial 160
002Arial Bold 14
049Arial Bold 24
050Arial Bold 32
051Arial Bold 40
029Arial Bold 47
052Arial Bold 60
053Arial Bold 70
054Arial Bold 80
031Arial Bold 90
056Arial Bold 100
058Arial Bold 120
060Arial Bold 130
083Arial Bold 140
085Arial Bold 150
086Arial Bold 159
003Courier New 9
004Courier New 20
005Courier New 29
006Courier New 40
007Courier New 49
008Courier New 60
009Courier New 69
010Courier New 80
011Courier New 89
012Courier New 100
026Seven Segment 24
027Seven Segment 32
091Seven Segment 40
013Seven Segment 49
014Seven Segment 59
015Seven Segment 70
016Seven Segment 79
017Seven Segment 89
018Seven Segment 100
022Seven Segment 110
023Seven Segment 120
024Seven Segment 130
025Seven Segment 140
030Seven Segment 150
032Seven Segment 160
018Custom
' />
						<property name='Custom Font File' target='Base_GLCD::gLCD_Font4::CustomFontFile' typeid='13' hidden='1' locked='0' info='Points to the .c file produced by the dot factory application.' />
						<property name='Bytes Required' target='Base_GLCD::gLCD_Font4::BytesRequired' typeid='21' hidden='0' locked='1' info='Number of bytes required in program memory to store the selected font.' />
						<property name='Character Spacing' target='Base_GLCD::gLCD_Font4::FontSpace' typeid='21' hidden='0' locked='0' info='Sets the number of blank pixels between each character when printing text.' />
						<property name='Space Width' target='Base_GLCD::gLCD_Font4::SpaceWidth' typeid='21' hidden='0' locked='0' info='Sets the number of horizontal pixels used to represent a space character.' />
					</property>
					<property name='Font 4' folder='Base_GLCD::property_7' hidden='1' >
						<property name='Font' target='Base_GLCD::gLCD_Font5::Font' typeid='16' hidden='0' locked='0' info='Font picker to decide which font to use on your display.' filter='000Default 8 (Legacy)
001Arial 14
019Arial 24
020Arial 32
021Arial 40
028Arial 48
045Arial 59
046Arial 70
047Arial 80
048Arial 89
055Arial 100
057Arial 119
059Arial 130
061Arial 140
084Arial 150
087Arial 160
002Arial Bold 14
049Arial Bold 24
050Arial Bold 32
051Arial Bold 40
029Arial Bold 47
052Arial Bold 60
053Arial Bold 70
054Arial Bold 80
031Arial Bold 90
056Arial Bold 100
058Arial Bold 120
060Arial Bold 130
083Arial Bold 140
085Arial Bold 150
086Arial Bold 159
003Courier New 9
004Courier New 20
005Courier New 29
006Courier New 40
007Courier New 49
008Courier New 60
009Courier New 69
010Courier New 80
011Courier New 89
012Courier New 100
026Seven Segment 24
027Seven Segment 32
091Seven Segment 40
013Seven Segment 49
014Seven Segment 59
015Seven Segment 70
016Seven Segment 79
017Seven Segment 89
018Seven Segment 100
022Seven Segment 110
023Seven Segment 120
024Seven Segment 130
025Seven Segment 140
030Seven Segment 150
032Seven Segment 160
018Custom
' />
						<property name='Custom Font File' target='Base_GLCD::gLCD_Font5::CustomFontFile' typeid='13' hidden='1' locked='0' info='Points to the .c file produced by the dot factory application.' />
						<property name='Bytes Required' target='Base_GLCD::gLCD_Font5::BytesRequired' typeid='21' hidden='0' locked='1' info='Number of bytes required in program memory to store the selected font.' />
						<property name='Character Spacing' target='Base_GLCD::gLCD_Font5::FontSpace' typeid='21' hidden='0' locked='0' info='Sets the number of blank pixels between each character when printing text.' />
						<property name='Space Width' target='Base_GLCD::gLCD_Font5::SpaceWidth' typeid='21' hidden='0' locked='0' info='Sets the number of horizontal pixels used to represent a space character.' />
					</property>
					<property name='Font 5' folder='Base_GLCD::property_8' hidden='1' >
						<property name='Font' target='Base_GLCD::gLCD_Font6::Font' typeid='16' hidden='0' locked='0' info='Font picker to decide which font to use on your display.' filter='000Default 8 (Legacy)
001Arial 14
019Arial 24
020Arial 32
021Arial 40
028Arial 48
045Arial 59
046Arial 70
047Arial 80
048Arial 89
055Arial 100
057Arial 119
059Arial 130
061Arial 140
084Arial 150
087Arial 160
002Arial Bold 14
049Arial Bold 24
050Arial Bold 32
051Arial Bold 40
029Arial Bold 47
052Arial Bold 60
053Arial Bold 70
054Arial Bold 80
031Arial Bold 90
056Arial Bold 100
058Arial Bold 120
060Arial Bold 130
083Arial Bold 140
085Arial Bold 150
086Arial Bold 159
003Courier New 9
004Courier New 20
005Courier New 29
006Courier New 40
007Courier New 49
008Courier New 60
009Courier New 69
010Courier New 80
011Courier New 89
012Courier New 100
026Seven Segment 24
027Seven Segment 32
091Seven Segment 40
013Seven Segment 49
014Seven Segment 59
015Seven Segment 70
016Seven Segment 79
017Seven Segment 89
018Seven Segment 100
022Seven Segment 110
023Seven Segment 120
024Seven Segment 130
025Seven Segment 140
030Seven Segment 150
032Seven Segment 160
018Custom
' />
						<property name='Custom Font File' target='Base_GLCD::gLCD_Font6::CustomFontFile' typeid='13' hidden='1' locked='0' info='Points to the .c file produced by the dot factory application.' />
						<property name='Bytes Required' target='Base_GLCD::gLCD_Font6::BytesRequired' typeid='21' hidden='0' locked='1' info='Number of bytes required in program memory to store the selected font.' />
						<property name='Character Spacing' target='Base_GLCD::gLCD_Font6::FontSpace' typeid='21' hidden='0' locked='0' info='Sets the number of blank pixels between each character when printing text.' />
						<property name='Space Width' target='Base_GLCD::gLCD_Font6::SpaceWidth' typeid='21' hidden='0' locked='0' info='Sets the number of horizontal pixels used to represent a space character.' />
					</property>
					<property name='Font 6' folder='Base_GLCD::property_9' hidden='1' >
						<property name='Font' target='Base_GLCD::gLCD_Font7::Font' typeid='16' hidden='0' locked='0' info='Font picker to decide which font to use on your display.' filter='000Default 8 (Legacy)
001Arial 14
019Arial 24
020Arial 32
021Arial 40
028Arial 48
045Arial 59
046Arial 70
047Arial 80
048Arial 89
055Arial 100
057Arial 119
059Arial 130
061Arial 140
084Arial 150
087Arial 160
002Arial Bold 14
049Arial Bold 24
050Arial Bold 32
051Arial Bold 40
029Arial Bold 47
052Arial Bold 60
053Arial Bold 70
054Arial Bold 80
031Arial Bold 90
056Arial Bold 100
058Arial Bold 120
060Arial Bold 130
083Arial Bold 140
085Arial Bold 150
086Arial Bold 159
003Courier New 9
004Courier New 20
005Courier New 29
006Courier New 40
007Courier New 49
008Courier New 60
009Courier New 69
010Courier New 80
011Courier New 89
012Courier New 100
026Seven Segment 24
027Seven Segment 32
091Seven Segment 40
013Seven Segment 49
014Seven Segment 59
015Seven Segment 70
016Seven Segment 79
017Seven Segment 89
018Seven Segment 100
022Seven Segment 110
023Seven Segment 120
024Seven Segment 130
025Seven Segment 140
030Seven Segment 150
032Seven Segment 160
018Custom
' />
						<property name='Custom Font File' target='Base_GLCD::gLCD_Font7::CustomFontFile' typeid='13' hidden='1' locked='0' info='Points to the .c file produced by the dot factory application.' />
						<property name='Bytes Required' target='Base_GLCD::gLCD_Font7::BytesRequired' typeid='21' hidden='0' locked='1' info='Number of bytes required in program memory to store the selected font.' />
						<property name='Character Spacing' target='Base_GLCD::gLCD_Font7::FontSpace' typeid='21' hidden='0' locked='0' info='Sets the number of blank pixels between each character when printing text.' />
						<property name='Space Width' target='Base_GLCD::gLCD_Font7::SpaceWidth' typeid='21' hidden='0' locked='0' info='Sets the number of horizontal pixels used to represent a space character.' />
					</property>
					<property name='Font 7' folder='Base_GLCD::property_10' hidden='1' >
						<property name='Font' target='Base_GLCD::gLCD_Font8::Font' typeid='16' hidden='0' locked='0' info='Font picker to decide which font to use on your display.' filter='000Default 8 (Legacy)
001Arial 14
019Arial 24
020Arial 32
021Arial 40
028Arial 48
045Arial 59
046Arial 70
047Arial 80
048Arial 89
055Arial 100
057Arial 119
059Arial 130
061Arial 140
084Arial 150
087Arial 160
002Arial Bold 14
049Arial Bold 24
050Arial Bold 32
051Arial Bold 40
029Arial Bold 47
052Arial Bold 60
053Arial Bold 70
054Arial Bold 80
031Arial Bold 90
056Arial Bold 100
058Arial Bold 120
060Arial Bold 130
083Arial Bold 140
085Arial Bold 150
086Arial Bold 159
003Courier New 9
004Courier New 20
005Courier New 29
006Courier New 40
007Courier New 49
008Courier New 60
009Courier New 69
010Courier New 80
011Courier New 89
012Courier New 100
026Seven Segment 24
027Seven Segment 32
091Seven Segment 40
013Seven Segment 49
014Seven Segment 59
015Seven Segment 70
016Seven Segment 79
017Seven Segment 89
018Seven Segment 100
022Seven Segment 110
023Seven Segment 120
024Seven Segment 130
025Seven Segment 140
030Seven Segment 150
032Seven Segment 160
018Custom
' />
						<property name='Custom Font File' target='Base_GLCD::gLCD_Font8::CustomFontFile' typeid='13' hidden='1' locked='0' info='Points to the .c file produced by the dot factory application.' />
						<property name='Bytes Required' target='Base_GLCD::gLCD_Font8::BytesRequired' typeid='21' hidden='0' locked='1' info='Number of bytes required in program memory to store the selected font.' />
						<property name='Character Spacing' target='Base_GLCD::gLCD_Font8::FontSpace' typeid='21' hidden='0' locked='0' info='Sets the number of blank pixels between each character when printing text.' />
						<property name='Space Width' target='Base_GLCD::gLCD_Font8::SpaceWidth' typeid='21' hidden='0' locked='0' info='Sets the number of horizontal pixels used to represent a space character.' />
					</property>
				</property>
				<property name='Simulation' folder='property_1' hidden='0' >
					<property name='Display Method' target='DisplayMethod' typeid='16' hidden='1' locked='0' info='Chooses which method to use when drawing to the gLCD component
The bitmap is the more common mode but may run slowly on some machines.
The point cloud should run faster but may use more memory.
' filter='000Bitmap
001Point Cloud' />
					<property name='Component Label' target='Base_GLCD::ComponentLabel' typeid='16' hidden='0' locked='0' info='' filter='000Same as Handle
001Custom' />
					<property name='User Label Text' target='Base_GLCD::GdiText1::sText' typeid='11' hidden='0' locked='0' info='Text to display' />
					<property name='Component Label Scale' target='Base_GLCD::GdiText1::dScale' typeid='15' hidden='0' locked='0' info='The label scale can be change if the amout of text is too wide for the display ' />
					<property name='Physical Orientation' target='Base_GLCD::PhysicalOrientation' typeid='16' hidden='0' locked='0' info='Rotates the simulated canvas to match the orientation of real world hardware.' filter='0000 (Default)
0011
0022
0033' />
				</property>
			</properties>
			<values >
				<value target='pixel_width' data='864' />
				<value target='pixel_height' data='480' />
				<value target='monochrome' data='0' />
				<value target='foreground_colour' data='0' />
				<value target='background_colour' data='16777215' />
				<value target='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='DataMode' data='000' />
				<value target='data0' data='$PORTB.0' />
				<value target='data1' data='$PORTB.1' />
				<value target='data2' data='$PORTB.2' />
				<value target='data3' data='$PORTB.3' />
				<value target='data4' data='$PORTB.4' />
				<value target='data5' data='$PORTB.5' />
				<value target='data6' data='$PORTB.6' />
				<value target='data7' data='$PORTB.7' />
				<value target='data8' data='$PORTC.0' />
				<value target='data9' data='$PORTC.1' />
				<value target='data10' data='$PORTC.2' />
				<value target='data11' data='$PORTC.3' />
				<value target='data12' data='$PORTC.4' />
				<value target='data13' data='$PORTC.5' />
				<value target='data14' data='$PORTC.6' />
				<value target='data15' data='$PORTC.7' />
				<value target='dataport_low' data='$PORTB' />
				<value target='dataport_high' data='$PORTC' />
				<value target='write_pin' data='$PORTC.1' />
				<value target='read_pin' data='$PORTC.2' />
				<value target='rs_pin' data='$PORTC.3' />
				<value target='UseCS' data='1' />
				<value target='chip_sel_pin' data='$PORTC.0' />
				<value target='UseReset' data='1' />
				<value target='reset_pin' data='$PORTC.4' />
				<value target='UseBacklight' data='0' />
				<value target='led_pin' data='$PORTC.1' />
				<value target='ESP_OPT' data='0' />
				<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='Base_GLCD::FontCount' data='001' />
				<value target='Base_GLCD::gLCD_Font1::Font' data='000' />
				<value target='Base_GLCD::gLCD_Font1::CustomFontFile' data='C:\Users\BenR\Desktop\customfont.h.c' />
				<value target='Base_GLCD::gLCD_Font1::BytesRequired' data='' />
				<value target='Base_GLCD::gLCD_Font1::FontSpace' data='001' />
				<value target='Base_GLCD::gLCD_Font1::SpaceWidth' data='004' />
				<value target='Base_GLCD::gLCD_Font2::Font' data='005' />
				<value target='Base_GLCD::gLCD_Font2::CustomFontFile' data='C:\Users\BenR\Desktop\customfont.h.c' />
				<value target='Base_GLCD::gLCD_Font2::BytesRequired' data='' />
				<value target='Base_GLCD::gLCD_Font2::FontSpace' data='001' />
				<value target='Base_GLCD::gLCD_Font2::SpaceWidth' data='004' />
				<value target='Base_GLCD::gLCD_Font3::Font' data='002' />
				<value target='Base_GLCD::gLCD_Font3::CustomFontFile' data='C:\Users\BenR\Desktop\customfont.h.c' />
				<value target='Base_GLCD::gLCD_Font3::BytesRequired' data='' />
				<value target='Base_GLCD::gLCD_Font3::FontSpace' data='001' />
				<value target='Base_GLCD::gLCD_Font3::SpaceWidth' data='004' />
				<value target='Base_GLCD::gLCD_Font4::Font' data='015' />
				<value target='Base_GLCD::gLCD_Font4::CustomFontFile' data='C:\Users\BenR\Desktop\customfont.h.c' />
				<value target='Base_GLCD::gLCD_Font4::BytesRequired' data='' />
				<value target='Base_GLCD::gLCD_Font4::FontSpace' data='001' />
				<value target='Base_GLCD::gLCD_Font4::SpaceWidth' data='004' />
				<value target='Base_GLCD::gLCD_Font5::Font' data='008' />
				<value target='Base_GLCD::gLCD_Font5::CustomFontFile' data='' />
				<value target='Base_GLCD::gLCD_Font5::BytesRequired' data='' />
				<value target='Base_GLCD::gLCD_Font5::FontSpace' data='001' />
				<value target='Base_GLCD::gLCD_Font5::SpaceWidth' data='004' />
				<value target='Base_GLCD::gLCD_Font6::Font' data='010' />
				<value target='Base_GLCD::gLCD_Font6::CustomFontFile' data='' />
				<value target='Base_GLCD::gLCD_Font6::BytesRequired' data='' />
				<value target='Base_GLCD::gLCD_Font6::FontSpace' data='001' />
				<value target='Base_GLCD::gLCD_Font6::SpaceWidth' data='004' />
				<value target='Base_GLCD::gLCD_Font7::Font' data='021' />
				<value target='Base_GLCD::gLCD_Font7::CustomFontFile' data='' />
				<value target='Base_GLCD::gLCD_Font7::BytesRequired' data='' />
				<value target='Base_GLCD::gLCD_Font7::FontSpace' data='001' />
				<value target='Base_GLCD::gLCD_Font7::SpaceWidth' data='004' />
				<value target='Base_GLCD::gLCD_Font8::Font' data='003' />
				<value target='Base_GLCD::gLCD_Font8::CustomFontFile' data='' />
				<value target='Base_GLCD::gLCD_Font8::BytesRequired' data='' />
				<value target='Base_GLCD::gLCD_Font8::FontSpace' data='001' />
				<value target='Base_GLCD::gLCD_Font8::SpaceWidth' data='004' />
				<value target='DisplayMethod' data='000' />
				<value target='Base_GLCD::ComponentLabel' data='001' />
				<value target='Base_GLCD::GdiText1::sText' data='gLCD_SSD1963' />
				<value target='Base_GLCD::GdiText1::dScale' data='1.000000' />
				<value target='Base_GLCD::PhysicalOrientation' data='000' />
			</values>
			<events >
				<event class='Components' event='Property' target='prv_init' />
				<event class='Components' event='Initialise' target='prv_init' />
				<event class='Simulation' event='Start' target='prv_init' />
				<event class='Components' event='Resize' target='Ev_Resize' />
				<event class='Compile' event='AddProperty' target='Ev_AddProperty' />
			</events>
			<apis >
				<api name='ReadFontWidth' alt='ReadFontWidth' type='5' proto='0' />
				<api name='BacklightOn' alt='BacklightOn' type='1' proto='1' />
				<api name='FastBPlot' alt='FastBPlot' type='1' proto='1' />
				<api name='SetFontScaler' alt='SetFontScalerSim' 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='DrawEllipse' alt='DrawEllipseSim' type='1' proto='1' />
				<api name='FastPlot' alt='FastPlot' type='1' proto='1' />
				<api name='DrawArc' alt='DrawArcSim' 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='DrawBezier' alt='DrawBezierSim' type='1' proto='1' />
				<api name='Window' alt='Window_Sim' type='1' proto='1' />
				<api name='ReadFontStat' alt='ReadFontStat' type='5' proto='0' />
				<api name='Print' alt='PrintSim' type='1' proto='1' />
				<api name='ClearDisplay' alt='ClearSim' type='1' proto='1' />
				<api name='SetBackgroundColour' alt='SetBGColourSim' type='1' proto='1' />
				<api name='DrawCircle' alt='DrawCircleSim' type='1' proto='1' />
				<api name='DrawRoundedRectangle' alt='DrawRoundedRectangleSim' 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' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='background_col_var' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='bg_col_var' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='3' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='foreground_col_var' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='BG' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='OldData' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='fg_col_var' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='3' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Orientation' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='BB' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ScaleY' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ScaleX' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FR' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FG' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FB' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='SetFontScalerSim' description='Allows the fonts to be scaled up by multiplying the number of pixels on the X and Y.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='ScaleX' type='u8' description='Sets the horizontal scale of the font, default 1' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='ScaleY' type='u8' description='Sets the vertical scale of the font, default 1' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Component Macro' component='Base_GLCD' macro='SetFontScaler' >
							<argument exp='.ScaleX' />
							<argument exp='.ScaleY' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ReadFontWidth' description='Reads the number of pixel columns used in the selected font' statediag='0' >
						<return name='Return' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Font' type='u8' description='Font selection range: 0 to (NumFonts - 1)' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Character' type='u8' description='ASCII character to get the pixel width e.g. &apos;A&apos; or 65' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='ReadFontWidth' >
							<exp exp='.Return = Base_GLCD :: ReadFontWidth (.Font, .Character)' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ClearSim' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='sim' title='Call Component Macro' 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.
' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Contrast' type='u8' description='Range 0-255, Default = 128' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Brightness' type='u8' description='Range 0-255, Default = 128' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Saturation' type='u8' description='Range 0-255, Default = 128' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='PostProcessorEnabled' type='u8' description='0=Off, 1=On - Default = Off' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Set Post Proc' macro='LCD_Write_Reg' >
							<argument exp='0xBC' />
						</command>
						<command class_type='call' title='Param1' macro='LCD_Write_Data' >
							<argument exp='.Contrast' />
						</command>
						<command class_type='call' title='Param2' macro='LCD_Write_Data' >
							<argument exp='.Brightness' />
						</command>
						<command class_type='call' title='Param3' macro='LCD_Write_Data' >
							<argument exp='.Saturation' />
						</command>
						<command class_type='call' title='Param1' 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.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Decision' exp='UseBacklight' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<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.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='temp' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Macro' macro='LCD_Write_Data' >
							<argument exp='BR' />
						</command>
						<command class_type='call' title='Call Macro' macro='LCD_Write_Data' >
							<argument exp='BG' />
						</command>
						<command class_type='call' title='Call Macro' macro='LCD_Write_Data' >
							<argument exp='BB' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SetFontScaler' description='Allows the fonts to be scaled up by multiplying the number of pixels on the X and Y.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='ScaleX' type='u8' description='Sets the horizontal scale of the font, default 1' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='ScaleY' type='u8' description='Sets the vertical scale of the font, default 1' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='decision' title='Decision' exp='.ScaleX &gt; 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='ScaleX = .ScaleX' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='ScaleX = 1' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' exp='.ScaleY &gt; 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='ScaleY = .ScaleY' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='ScaleY = 1' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='LCD_Write_Reg' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='data' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='native' title='Code' ccode='LATBbits.LATB15 = 0;
PMDIN = FCL_CMD; 
while(PMMODEbits.BUSY);
LATBbits.LATB15 = 1;
' language='C' />
					</flowline>
				</macro>
				<macro >
					<flowline name='LCD_Write_Data' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='data' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='native' title='Code' ccode='LATBbits.LATB15 = 1;    // Garante modo DADO (RS = 1)
PMDIN = FCL_DATA;       // Escreve o dado de 16 bits
while(PMMODEbits.BUSY); // Aguarda a sincronização do ciclo PMP
' language='C' />
					</flowline>
				</macro>
				<macro >
					<flowline name='PrintNumber' description='This macro prints a decimal number to the Graphical LCD.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Number' type='s16' description='Byte or Integer number to send to the display.' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='X' type='u16' description='X pixel coordinate to set the output string position.' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y' type='u16' description='Y pixel coordinate to set the output string position.' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Font' type='u8' description='Range: 0 to 31 - 0=5x8, 1=10x8, 2=10x16, 3=5x16, 4-31=Extended Sizes' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Transparent' type='u8' description='Specifies if the background of the text is drawn - 0 = Background colour is drawn, 1 = Background colour not drawn.' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='temp' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='8' />
						</local>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.temp = ToString$ (.Number)' />
						</command>
						<command class_type='call' title='Call Macro' macro='Print' >
							<argument exp='.temp' />
							<argument exp='.X' />
							<argument exp='.Y' />
							<argument exp='.Font' />
							<argument exp='.Transparent' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='DrawRoundedRectangleSim' description='Draws a rectangle with rounded corners' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='X2' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y2' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Radius' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Transparent' type='u8' description='Chooses the transparency of the box - 0 = Box contains background colour, 1 = Box contains previous pixel data.' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Solid' type='u8' description='Chooses to fill the box with colour - 0 = Box contains transparency data, 1 = Box contains foreground colour.' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Call Component Macro' component='Base_GLCD' macro='DrawRoundedRectangle' >
							<argument exp='.X1' />
							<argument exp='.Y1' />
							<argument exp='.X2' />
							<argument exp='.Y2' />
							<argument exp='.Radius' />
							<argument exp='.Transparent' />
							<argument exp='.Solid' />
						</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.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='X2' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y2' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='C1' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='M1' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='D1' type='s16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='PixelX' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='PixelY' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Yinc' type='s16' description='' isconst='0' isHidden='0' isinit='1' usrinit='1' setinit='1' />
						<local name='Xinc' type='s16' description='' isconst='0' isHidden='0' isinit='1' usrinit='1' setinit='1' />
						<local name='X' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Y' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='.PixelX = .X2 - .X1' />
							<exp exp='.PixelY = .Y2 - .Y1' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.X = .X1' />
							<exp exp='.Y = .Y1' />
						</command>
						<command class_type='decision' title='If negative X direction' exp='.PixelX &lt; 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Xinc = -1' />
									<exp exp='.PixelX = .PixelX * -1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='If negative Y direction' exp='.PixelY &lt; 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Yinc = -1' />
									<exp exp='.PixelY = .PixelY * -1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' exp='.PixelY &lt;= .PixelX' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='.C1 = 2 * .PixelX' />
									<exp exp='.M1 = 2 * .PixelY' />
								</command>
								<command class_type='loop' title='Loop' type='0' exp='.X != .X2' for1='' for3='' >
									<flowline >
										<command class_type='call' title='Call Macro' macro='Plot' >
											<argument exp='.X' />
											<argument exp='.Y' />
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='.X = .X + .Xinc' />
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='.D1 = .D1 + .M1' />
										</command>
										<command class_type='decision' title='Decision' exp='.D1 &gt; .PixelX' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='.Y = .Y + .Yinc' />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='.D1 = .D1 - .C1' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='.C1 = 2 * .PixelY' />
									<exp exp='.M1 = 2 * .PixelX' />
								</command>
								<command class_type='loop' title='Loop' type='0' exp='.Y != .Y2' for1='' for3='' >
									<flowline >
										<command class_type='call' title='Call Macro' macro='Plot' >
											<argument exp='.X' />
											<argument exp='.Y' />
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='.Y = .Y + .Yinc' />
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='.D1 = .D1 + .M1' />
										</command>
										<command class_type='decision' title='Decision' exp='.D1 &gt; .PixelY' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='.X = .X + .Xinc' />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='.D1 = .D1 - .C1' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Call Macro' macro='Plot' >
							<argument exp='.X' />
							<argument exp='.Y' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='PrintNumber_Sim' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Number' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='X' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Font' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Transparent' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='temp' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='6' />
						</local>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.temp = ToString$ (.Number)' />
						</command>
						<command class_type='call' title='Call Macro' 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' statediag='0' >
						<return name='Return' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='PropName' type='T8' description='The original Flowcode property' isconst='0' isHidden='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' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<local name='NStr' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<local name='PStr' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<local name='TStr' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.Return = 1' />
						</command>
						<command class_type='decision' title='Decision' exp='Compare$ (.PropName,&quot;chip_sel_pin&quot;,1) == 0' swap='0' >
							<flowline >
								<command class_type='sim' title='Simulation' macro='Component.Property.GetValue' >
									<return exp='.PStr' />
									<argument exp='this' />
									<argument exp='&quot;chip_sel_pin&quot;' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='.TStr[0] = .PStr[5]' />
									<exp exp='.TStr[1] = 0' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<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' >
									<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' exp='Compare$ (.PropName,&quot;write_pin&quot;,1) == 0' swap='0' >
							<flowline >
								<command class_type='sim' title='Simulation' macro='Component.Property.GetValue' >
									<return exp='.PStr' />
									<argument exp='this' />
									<argument exp='&quot;write_pin&quot;' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='.TStr[0] = .PStr[5]' />
									<exp exp='.TStr[1] = 0' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<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' >
									<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' exp='Compare$ (.PropName,&quot;rs_pin&quot;,1) == 0' swap='0' >
							<flowline >
								<command class_type='sim' title='Simulation' macro='Component.Property.GetValue' >
									<return exp='.PStr' />
									<argument exp='this' />
									<argument exp='&quot;rs_pin&quot;' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='.TStr[0] = .PStr[5]' />
									<exp exp='.TStr[1] = 0' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<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' >
									<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='FastPlot_Sim' description='Sets a pixel with the current foreground colour at current pixel location.
Not compatible with orientations other than 0.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='sim' title='Call Component Macro' component='Base_GLCD' macro='FastPlot' />
					</flowline>
				</macro>
				<macro >
					<flowline name='DrawEllipse' description='Draws an ellipse object on the display with the center of the ellipse at the location X,Y' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='X' type='u16' description='X Coordinate for the center of the circle' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y' type='u16' description='Y coordinate for the center of the circle' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='XRadius' type='u16' description='Radius of the circle on the X axis specified in pixels' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='YRadius' type='u16' description='Radius of the circle on the Y axis specified in pixels' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Transparent' type='u8' description='0=Fill inside circle using background colour / 1=Draw outer circle only' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Solid' type='u8' description='0=Use Transparent Setting / 1=Fill with foreground colour' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='err' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='CurX' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='CurY' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Rep' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='e2' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='K' type='f32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<local name='FG' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='3' />
						</local>
						<local name='BG' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='3' />
						</local>
						<command class_type='decision' title='Draw the circle in solid foreground' exp='.Solid = 1' swap='0' >
							<flowline >
								<command class_type='label' title='Connection Point' labelid='0' labelname='A' labeltype='4' />
								<command class_type='decision' title='Decision' exp='.XRadius &gt; .YRadius' swap='0' >
									<flowline >
										<command class_type='calculation' title='Start Locations' >
											<exp exp='.CurX = 0 - .XRadius' />
											<exp exp='.CurY = 0' />
										</command>
										<command class_type='calculation' title='Calculate Decision Variable' >
											<exp exp='.err = 2 - (2 * .YRadius)' />
										</command>
										<command class_type='calculation' title='Start K' >
											<exp exp='.K = FLOAT (FLOAT .XRadius / FLOAT .YRadius)' />
										</command>
										<command class_type='loop' title='Loop' type='0' exp='.CurX &lt;= 0' start='0' for1='' for3='' >
											<flowline >
												<command class_type='call' title='Call Macro' macro='DrawLine' >
													<argument exp='.X + .CurX' />
													<argument exp='.Y - (.CurY / .K)' />
													<argument exp='.X + .CurX' />
													<argument exp='.Y + (.CurY / .K)' />
												</command>
												<command class_type='call' title='Call Macro' macro='DrawLine' >
													<argument exp='.X - .CurX' />
													<argument exp='.Y - (.CurY / .K)' />
													<argument exp='.X - .CurX' />
													<argument exp='.Y + (.CurY / .K)' />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='.e2 = .err' />
												</command>
												<command class_type='decision' title='Decision' exp='.e2 &lt;= .CurY' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' >
															<exp exp='.CurY = .CurY + 1' />
															<exp exp='.err = .err + ((.CurY * 2) + 1)' />
															<exp exp='' />
														</command>
														<command class_type='decision' title='Decision' exp='(0 - .CurX == .CurY) &amp;&amp; (.e2 &lt;= .CurX)' swap='0' >
															<flowline >
																<command class_type='calculation' title='Calculation' >
																	<exp exp='.e2 = 0' />
																</command>
															</flowline>
															<flowline />
														</command>
													</flowline>
													<flowline />
												</command>
												<command class_type='decision' title='Decision' exp='.e2 &gt; .CurX' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' >
															<exp exp='.CurX = .CurX + 1' />
															<exp exp='.err = .err + ((.CurX * 2) + 1)' />
															<exp exp='' />
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Start Locations' >
											<exp exp='.CurX = 0' />
											<exp exp='.CurY = 0 - .YRadius' />
										</command>
										<command class_type='calculation' title='Calculate Decision Variable' >
											<exp exp='.err = 2 - (2 * .XRadius)' />
										</command>
										<command class_type='calculation' title='Start K' >
											<exp exp='.K = FLOAT (FLOAT .YRadius / FLOAT .XRadius)' />
										</command>
										<command class_type='loop' title='Loop' type='0' exp='.CurY &lt;= 0' start='0' for1='' for3='' >
											<flowline >
												<command class_type='call' title='Call Macro' macro='DrawLine' >
													<argument exp='.X - (.CurX / .K)' />
													<argument exp='.Y + .CurY' />
													<argument exp='.X + (.CurX / .K)' />
													<argument exp='.Y + .CurY' />
												</command>
												<command class_type='call' title='Call Macro' macro='DrawLine' >
													<argument exp='.X - (.CurX / .K)' />
													<argument exp='.Y - .CurY' />
													<argument exp='.X + (.CurX / .K)' />
													<argument exp='.Y -.CurY' />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='.e2 = .err' />
												</command>
												<command class_type='decision' title='Decision' exp='.e2 &lt;= .CurX' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' >
															<exp exp='.CurX = .CurX + 1' />
															<exp exp='.err = .err + ((.CurX * 2) + 1)' />
															<exp exp='' />
														</command>
														<command class_type='decision' title='Decision' exp='(0 - .CurY == .CurX) &amp;&amp; (.e2 &lt;= .CurY)' swap='0' >
															<flowline >
																<command class_type='calculation' title='Calculation' >
																	<exp exp='.e2 = 0' />
																</command>
															</flowline>
															<flowline />
														</command>
													</flowline>
													<flowline />
												</command>
												<command class_type='decision' title='Decision' exp='.e2 &gt; .CurY' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' >
															<exp exp='.CurY = .CurY + 1' />
															<exp exp='.err = .err + ((.CurY * 2) + 1)' />
															<exp exp='' />
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='Draw the background colour?' exp='.Transparent = 1' swap='0' >
									<flowline >
										<command class_type='label' title='Connection Point' labelid='1' labelname='B' labeltype='4' />
										<command class_type='decision' title='Decision' exp='.XRadius &gt; .YRadius' swap='0' >
											<flowline >
												<command class_type='calculation' title='Start Locations' >
													<exp exp='.CurX = 0 - .XRadius' />
													<exp exp='.CurY = 0' />
												</command>
												<command class_type='calculation' title='Calculate Decision Variable' >
													<exp exp='.err = 2 - (2 * .YRadius)' />
												</command>
												<command class_type='calculation' title='Start K' >
													<exp exp='.K = FLOAT (FLOAT .XRadius / FLOAT .YRadius)' />
												</command>
												<command class_type='loop' title='Loop' type='0' exp='.CurX &lt;= 0' start='0' for1='' for3='' >
													<flowline >
														<command class_type='call' title='Call Macro' macro='Plot' >
															<argument exp='.X + .CurX' />
															<argument exp='.Y - (.CurY / .K)' />
														</command>
														<command class_type='call' title='Call Macro' macro='Plot' >
															<argument exp='.X + .CurX' />
															<argument exp='.Y + (.CurY / .K)' />
														</command>
														<command class_type='call' title='Call Macro' macro='Plot' >
															<argument exp='.X - .CurX' />
															<argument exp='.Y - (.CurY / .K)' />
														</command>
														<command class_type='call' title='Call Macro' macro='Plot' >
															<argument exp='.X - .CurX' />
															<argument exp='.Y + (.CurY / .K)' />
														</command>
														<command class_type='calculation' title='Calculation' >
															<exp exp='.e2 = .err' />
														</command>
														<command class_type='decision' title='Decision' exp='.e2 &lt;= .CurY' swap='0' >
															<flowline >
																<command class_type='calculation' title='Calculation' >
																	<exp exp='.CurY = .CurY + 1' />
																	<exp exp='.err = .err + ((.CurY * 2) + 1)' />
																	<exp exp='' />
																</command>
																<command class_type='decision' title='Decision' exp='(0 - .CurX == .CurY) &amp;&amp; (.e2 &lt;= .CurX)' swap='0' >
																	<flowline >
																		<command class_type='calculation' title='Calculation' >
																			<exp exp='.e2 = 0' />
																		</command>
																	</flowline>
																	<flowline />
																</command>
															</flowline>
															<flowline />
														</command>
														<command class_type='decision' title='Decision' exp='.e2 &gt; .CurX' swap='0' >
															<flowline >
																<command class_type='calculation' title='Calculation' >
																	<exp exp='.CurX = .CurX + 1' />
																	<exp exp='.err = .err + ((.CurX * 2) + 1)' />
																	<exp exp='' />
																</command>
															</flowline>
															<flowline />
														</command>
													</flowline>
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Start Locations' >
													<exp exp='.CurX = 0' />
													<exp exp='.CurY = 0 - .YRadius' />
												</command>
												<command class_type='calculation' title='Calculate Decision Variable' >
													<exp exp='.err = 2 - (2 * .XRadius)' />
												</command>
												<command class_type='calculation' title='Start K' >
													<exp exp='.K = FLOAT (FLOAT .YRadius / FLOAT .XRadius)' />
												</command>
												<command class_type='loop' title='Loop' type='0' exp='.CurY &lt;= 0' start='0' for1='' for3='' >
													<flowline >
														<command class_type='call' title='Call Macro' macro='Plot' >
															<argument exp='.X - (.CurX / .K)' />
															<argument exp='.Y + .CurY' />
														</command>
														<command class_type='call' title='Call Macro' macro='Plot' >
															<argument exp='.X + (.CurX / .K)' />
															<argument exp='.Y + .CurY' />
														</command>
														<command class_type='call' title='Call Macro' macro='Plot' >
															<argument exp='.X + (.CurX / .K)' />
															<argument exp='.Y - .CurY' />
														</command>
														<command class_type='call' title='Call Macro' macro='Plot' >
															<argument exp='.X - (.CurX / .K)' />
															<argument exp='.Y - .CurY' />
														</command>
														<command class_type='calculation' title='Calculation' >
															<exp exp='.e2 = .err' />
														</command>
														<command class_type='decision' title='Decision' exp='.e2 &lt;= .CurX' swap='0' >
															<flowline >
																<command class_type='calculation' title='Calculation' >
																	<exp exp='.CurX = .CurX + 1' />
																	<exp exp='.err = .err + ((.CurX * 2) + 1)' />
																	<exp exp='' />
																</command>
																<command class_type='decision' title='Decision' exp='(0 - .CurY == .CurX) &amp;&amp; (.e2 &lt;= .CurY)' swap='0' >
																	<flowline >
																		<command class_type='calculation' title='Calculation' >
																			<exp exp='.e2 = 0' />
																		</command>
																	</flowline>
																	<flowline />
																</command>
															</flowline>
															<flowline />
														</command>
														<command class_type='decision' title='Decision' exp='.e2 &gt; .CurY' swap='0' >
															<flowline >
																<command class_type='calculation' title='Calculation' >
																	<exp exp='.CurY = .CurY + 1' />
																	<exp exp='.err = .err + ((.CurY * 2) + 1)' />
																	<exp exp='' />
																</command>
															</flowline>
															<flowline />
														</command>
													</flowline>
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='.FG[0] = FR' />
											<exp exp='.FG[1] = FG' />
											<exp exp='.FG[2] = FB' />
											<exp exp='.BG[0] = BR' />
											<exp exp='.BG[1] = BG' />
											<exp exp='.BG[2] = BB' />
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='FR = .BG[0]' />
											<exp exp='FG = .BG[1]' />
											<exp exp='FB = .BG[2]' />
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='.Rep = 1' />
										</command>
										<command class_type='goto' title='Goto Connection Point' labelid='0' labelname='' labeltype='0' />
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' exp='.Rep = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Rep = .Rep + 1' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='FR = .FG[0]' />
									<exp exp='FG = .FG[1]' />
									<exp exp='FB = .FG[2]' />
								</command>
								<command class_type='goto' title='Goto Connection Point' labelid='1' labelname='' labeltype='0' />
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Plot' description='Sets a pixel with the current foreground colour at pixel location X, Y.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Macro' macro='Window' >
							<argument exp='.X1' />
							<argument exp='.Y1' />
							<argument exp='.X1' />
							<argument exp='.Y1' />
						</command>
						<command class_type='call' title='Call Macro' macro='LCD_Write_Data' >
							<argument exp='FR' />
						</command>
						<command class_type='call' title='Call Macro' macro='LCD_Write_Data' >
							<argument exp='FG' />
						</command>
						<command class_type='call' title='Call Macro' macro='LCD_Write_Data' >
							<argument exp='FB' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='PlotSim' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Call Component Macro' component='Base_GLCD' macro='Plot' >
							<argument exp='.X1' />
							<argument exp='.Y1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SetDisplayOrientationSim' description='Controls the way text is printed out on the display allowing several different orientations. Default is 0.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Orientation' type='u8' description='0=Default, 1=90°CW, 2=180°CW, 3=270°CW' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Call Macro' component='Base_GLCD' macro='SetDisplayOrientation' >
							<argument exp='.Orientation' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='InitSim' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='sim' title='Call Component Macro' component='Base_GLCD' macro='Initialise' />
					</flowline>
				</macro>
				<macro >
					<flowline name='SendByte' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Command' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='LCD_Out' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Select Display' >
							<exp exp='chip_sel_pin = 0' />
						</command>
						<command class_type='calculation' title='Command' >
							<exp exp='rs_pin = .Command' />
						</command>
						<command class_type='loop' title='Loop' type='2' exp='8' for1='' for3='' >
							<flowline >
								<command class_type='calculation' title='Clock Low' >
									<exp exp='write_pin = 0' />
								</command>
								<command class_type='decision' title='Decision' exp='.LCD_Out &amp; 0x80' swap='0' >
									<flowline >
										<command class_type='calculation' title='Data High' >
											<exp exp='data0 = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Data Low' >
											<exp exp='data0 = 0' />
										</command>
									</flowline>
								</command>
								<command class_type='calculation' title='Clock High' >
									<exp exp='write_pin = 1' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='.LCD_Out = .LCD_Out &lt;&lt; 1' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='chip_sel_pin = 1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='FastPlot' description='Sets a pixel with the current foreground colour at current pixel location.
Not compatible with orientations other than 0.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Call Macro' macro='LCD_Write_Data' >
							<argument exp='FR' />
						</command>
						<command class_type='call' title='Call Macro' macro='LCD_Write_Data' >
							<argument exp='FG' />
						</command>
						<command class_type='call' title='Call Macro' macro='LCD_Write_Data' >
							<argument exp='FB' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='DrawArc' description='Draws an arc either as an outline or as a filled object.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='X' type='u16' description='Center X coordinate' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y' type='u16' description='Center Y coordinate' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Radius' type='u16' description='Radius, distance of edge from the centre coordinates' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='StartAngle' type='f32' description='Angle to start drawing, in degrees' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<param name='EndAngle' type='f32' description='Angle to end drawing, in degrees' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<param name='Resolution' type='u16' description='Number of lines to draw from the center to the outer edge, 0=Fill' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Transparent' type='u8' description='Chooses the transparency - 0 = Arc contains background colour, 1 = Arc contains previous pixel data.' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Solid' type='u8' description='Chooses to fill with colour - 0 = Arc transparency data, 1 = Arc contains foreground colour.' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='i' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='j' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='sx' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='sy' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='AngleStep' type='f32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<local name='Angle' type='f32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<local name='ox' type='s16' description='' isconst='0' isHidden='0' isinit='1' usrinit='-32768' setinit='-32768' />
						<local name='oy' type='s16' description='' isconst='0' isHidden='0' isinit='1' usrinit='-32768' setinit='-32768' />
						<command class_type='decision' title='Decision' exp='.Resolution = 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Resolution = (.Radius * 6) / 2' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='calculation' title='Convert angles to radians' >
							<exp exp='.StartAngle = .StartAngle * 0.017453' />
							<exp exp='.EndAngle = .EndAngle * 0.017453' />
							<exp exp='.AngleStep = (.EndAngle - .StartAngle) / .Resolution' />
						</command>
						<command class_type='loop' title='Loop' type='2' forvar='.i' exp='.Resolution' for1='' for3='' >
							<flowline >
								<command class_type='decision' title='Decision' exp='(.Transparent = 0) || (.Solid = 1)' swap='0' >
									<flowline >
										<command class_type='loop' title='Loop' type='2' forvar='.j' exp='.Radius + 1' for1='' for3='' >
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='.Angle = .StartAngle + (.i * .AngleStep)' />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='.sx = Round (FLOAT .j * cos (.Angle))' />
													<exp exp='.sy = Round (FLOAT .j * sin (.Angle))' />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='.sx = .sx + .X' />
													<exp exp='.sy = .sy + .Y' />
												</command>
												<command class_type='decision' title='Decision' exp='.j = .Radius' swap='0' >
													<flowline >
														<command class_type='call' title='User Macro' macro='Plot' >
															<argument exp='.sx' />
															<argument exp='.sy' />
														</command>
														<command class_type='calculation' title='Calculation' >
															<exp exp='.ox = .sx' />
															<exp exp='.oy = .sy' />
														</command>
													</flowline>
													<flowline >
														<command class_type='decision' title='Decision' exp='.Solid = 1' swap='0' >
															<flowline >
																<command class_type='call' title='User Macro' macro='Plot' >
																	<argument exp='.sx' />
																	<argument exp='.sy' />
																</command>
															</flowline>
															<flowline >
																<command class_type='decision' title='Don&apos;t overwrite an edge pixel' exp='(.oy = .sy) &amp;&amp; (.ox = .sx)' swap='0' >
																	<flowline />
																	<flowline >
																		<command class_type='call' title='User Macro' macro='BPlot' >
																			<argument exp='.sx' />
																			<argument exp='.sy' />
																		</command>
																	</flowline>
																</command>
															</flowline>
														</command>
													</flowline>
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='.j = .Radius' />
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='.Angle = .StartAngle + (.i * .AngleStep)' />
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='.sx = Round (FLOAT .j * cos (.Angle))' />
											<exp exp='.sy = Round (FLOAT .j * sin (.Angle))' />
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='.sx = .sx + .X' />
											<exp exp='.sy = .sy + .Y' />
										</command>
										<command class_type='call' title='User Macro' macro='Plot' >
											<argument exp='.sx' />
											<argument exp='.sy' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SetBGColourSim' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Red' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Green' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Blue' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='colour' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Call Component Macro' component='Base_GLCD' macro='SetBackgroundColour' >
							<argument exp='.Red' />
							<argument exp='.Green' />
							<argument exp='.Blue' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='DrawLine_Sim' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='X2' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y2' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='C1' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='M1' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='D1' type='s16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='PixelX' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='PixelY' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Yinc' type='s16' description='' isconst='0' isHidden='0' isinit='1' usrinit='1' setinit='1' />
						<local name='Xinc' type='s16' description='' isconst='0' isHidden='0' isinit='1' usrinit='1' setinit='1' />
						<command class_type='sim' title='Call Component Macro' component='Base_GLCD' macro='DrawLine' >
							<argument exp='.X1' />
							<argument exp='.Y1' />
							<argument exp='.X2' />
							<argument exp='.Y2' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SetDisplayOrientation' description='Controls the way data is printed out on the display allowing multiple different viewing orientations. Default is 0.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Orientation' type='u8' description='0=Default, 1=90°CW, 2=180°CW, 3=270°CW' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' >
							<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.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Decision' exp='UseBacklight' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='read_pin = 0' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='DrawEllipseSim' description='Draws an ellipse object on the display with the center of the ellipse at the location X,Y' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='X' type='u16' description='X Coordinate for the center of the circle' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y' type='u16' description='Y coordinate for the center of the circle' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='XRadius' type='u16' description='Radius of the circle on the X axis specified in pixels' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='YRadius' type='u16' description='Radius of the circle on the Y axis specified in pixels' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Transparent' type='u8' description='0=Fill inside circle using background colour / 1=Draw outer circle only' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Solid' type='u8' description='0=Use Transparent Setting / 1=Fill with foreground colour' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='err' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='CurX' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='CurY' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='BGCol' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='FGCol' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Rep' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='e2' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='K' type='f32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<command class_type='sim' title='Call Component Macro' component='Base_GLCD' macro='DrawEllipse' >
							<argument exp='.X' />
							<argument exp='.Y' />
							<argument exp='.XRadius' />
							<argument exp='.YRadius' />
							<argument exp='.Transparent' />
							<argument exp='.Solid' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='prv_init' description='Initialisation routine for the component' statediag='0' >
						<return name='Return' type='u32' description='Non-zero to prevent initialisation' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Red' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Green' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Blue' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Colour' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='tmpStr' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<command class_type='sim' title='Panel' macro='Component.Property.CopyValue' >
							<argument exp='this' />
							<argument exp='Base_GLCD' />
							<argument exp='&quot;pixel_height&quot;' />
						</command>
						<command class_type='sim' title='Panel' macro='Component.Property.CopyValue' >
							<argument exp='this' />
							<argument exp='Base_GLCD' />
							<argument exp='&quot;pixel_width&quot;' />
						</command>
						<command class_type='sim' title='Panel' macro='Component.Property.CopyValue' >
							<argument exp='this' />
							<argument exp='Base_GLCD' />
							<argument exp='&quot;Monochrome&quot;' />
						</command>
						<command class_type='sim' title='Panel' macro='Component.Property.CopyValue' >
							<argument exp='this' />
							<argument exp='Base_GLCD' />
							<argument exp='&quot;Foreground_Colour&quot;' />
						</command>
						<command class_type='sim' title='Panel' macro='Component.Property.CopyValue' >
							<argument exp='this' />
							<argument exp='Base_GLCD' />
							<argument exp='&quot;Background_Colour&quot;' />
						</command>
						<command class_type='sim' title='Panel' 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' 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' 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' 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' macro='Component.Property.CopyValue' >
							<argument exp='this' />
							<argument exp='Base_GLCD' />
							<argument exp='&quot;DisplayMethod&quot;' />
						</command>
						<command class_type='sim' title='Simulation' macro='Component.Property.GetValue' >
							<return exp='.tmpStr' />
							<argument exp='this' />
							<argument exp='&quot;write_pin&quot;' />
						</command>
						<command class_type='decision' title='Decision' exp='UseBacklight' swap='0' >
							<flowline >
								<command class_type='sim' title='Simulation' 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' macro='Component.Property.SetVisible' >
									<argument exp='this' />
									<argument exp='&quot;led_pin&quot;' />
									<argument exp='0' />
								</command>
								<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
									<argument exp='this' />
									<argument exp='&quot;led_pin&quot;' />
									<argument exp='.tmpStr' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' exp='UseCS' swap='0' >
							<flowline >
								<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
									<argument exp='this' />
									<argument exp='&quot;chip_sel_pin&quot;' />
									<argument exp='1' />
								</command>
							</flowline>
							<flowline >
								<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
									<argument exp='this' />
									<argument exp='&quot;chip_sel_pin&quot;' />
									<argument exp='0' />
								</command>
								<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
									<argument exp='this' />
									<argument exp='&quot;chip_sel_pin&quot;' />
									<argument exp='.tmpStr' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' exp='UseReset' swap='0' >
							<flowline >
								<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
									<argument exp='this' />
									<argument exp='&quot;reset_pin&quot;' />
									<argument exp='1' />
								</command>
							</flowline>
							<flowline >
								<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
									<argument exp='this' />
									<argument exp='&quot;reset_pin&quot;' />
									<argument exp='0' />
								</command>
								<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
									<argument exp='this' />
									<argument exp='&quot;reset_pin&quot;' />
									<argument exp='.tmpStr' />
								</command>
							</flowline>
						</command>
						<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='DataMode' >
							<case >
								<flowline >
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;dataport_low&quot;' />
										<argument exp='1' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;dataport_high&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data0&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data1&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data2&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data3&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data4&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data5&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data6&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data7&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data8&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data9&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data10&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data11&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data12&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data13&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data14&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data15&quot;' />
										<argument exp='0' />
									</command>
								</flowline>
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;dataport_low&quot;' />
										<argument exp='1' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;dataport_high&quot;' />
										<argument exp='1' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data0&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data1&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data2&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data3&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data4&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data5&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data6&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data7&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data8&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data9&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data10&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data11&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data12&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data13&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data14&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data15&quot;' />
										<argument exp='0' />
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;dataport_low&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;dataport_high&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data0&quot;' />
										<argument exp='1' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data1&quot;' />
										<argument exp='1' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data2&quot;' />
										<argument exp='1' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data3&quot;' />
										<argument exp='1' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data4&quot;' />
										<argument exp='1' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data5&quot;' />
										<argument exp='1' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data6&quot;' />
										<argument exp='1' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data7&quot;' />
										<argument exp='1' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data8&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data9&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data10&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data11&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data12&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data13&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data14&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data15&quot;' />
										<argument exp='0' />
									</command>
								</flowline>
							</case>
							<case exp='3' >
								<flowline >
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;dataport_low&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;dataport_high&quot;' />
										<argument exp='0' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data0&quot;' />
										<argument exp='1' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data1&quot;' />
										<argument exp='1' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data2&quot;' />
										<argument exp='1' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data3&quot;' />
										<argument exp='1' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data4&quot;' />
										<argument exp='1' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data5&quot;' />
										<argument exp='1' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data6&quot;' />
										<argument exp='1' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data7&quot;' />
										<argument exp='1' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data8&quot;' />
										<argument exp='1' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data9&quot;' />
										<argument exp='1' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data10&quot;' />
										<argument exp='1' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data11&quot;' />
										<argument exp='1' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data12&quot;' />
										<argument exp='1' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data13&quot;' />
										<argument exp='1' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data14&quot;' />
										<argument exp='1' />
									</command>
									<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
										<argument exp='this' />
										<argument exp='&quot;data15&quot;' />
										<argument exp='1' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='sim' title='Built-in Function' macro='Component.Property.SetValue' >
							<argument exp='this' />
							<argument exp='&quot;ESP_OPT&quot;' />
							<argument exp='0' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<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' macro='Component.Property.SetValue' >
							<argument exp='this' />
							<argument exp='&quot;FGCOL&quot;' />
							<argument exp='.Colour' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<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' 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.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Macro' macro='Window' >
							<argument exp='.X1' />
							<argument exp='.Y1' />
							<argument exp='.X1' />
							<argument exp='.Y1' />
						</command>
						<command class_type='call' title='Call Macro' macro='LCD_Write_Data' >
							<argument exp='BR' />
						</command>
						<command class_type='call' title='Call Macro' macro='LCD_Write_Data' >
							<argument exp='BG' />
						</command>
						<command class_type='call' title='Call Macro' macro='LCD_Write_Data' >
							<argument exp='BB' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SetFGColourSim' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Red' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Green' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Blue' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='colour' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Call Component Macro' component='Base_GLCD' macro='SetForegroundColour' >
							<argument exp='.Red' />
							<argument exp='.Green' />
							<argument exp='.Blue' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Window_Sim' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='X2' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y2' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Call Component Macro' component='Base_GLCD' macro='Window' >
							<argument exp='.X1' />
							<argument exp='.Y1' />
							<argument exp='.X2' />
							<argument exp='.Y2' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='DrawBezier' description='Draws a quadratic Bezier curve with the current foreground colour from pixel location X0, Y0 to pixel location X2, Y2 using control point CX, CY.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='X0' type='u16' description='Start X coordinate' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y0' type='u16' description='Start Y coordinate' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='CX' type='u16' description='Control point X coordinate' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='CY' type='u16' description='Control point Y coordinate' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='X2' type='u16' description='End X coordinate' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y2' type='u16' description='End Y coordinate' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Resolution' type='u16' description='Number of segments to approximate the curve, 0 chooses an automatic value based on curve size.' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='i' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='t' type='f32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<local name='step' type='f32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<local name='one_minus_t' type='f32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<local name='fx' type='f32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<local name='fy' type='f32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<local name='Xp' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Yp' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='dx' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='dy' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='dist1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='dist2' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='CurveSize' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='decision' title='Default resolution if zero' exp='.Resolution = 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Estimate curve size' >
									<exp exp='.dx = .CX - .X0' />
									<exp exp='.dy = .CY - .Y0' />
								</command>
								<command class_type='decision' title='abs(dx)' exp='.dx &lt; 0' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='.dx = 0 - .dx' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='abs(dy)' exp='.dy &lt; 0' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='.dy = 0 - .dy' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='.dist1 = .dx + .dy' />
									<exp exp='.dx = .X2 - .CX' />
									<exp exp='.dy = .Y2 - .CY' />
								</command>
								<command class_type='decision' title='abs(dx)' exp='.dx &lt; 0' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='.dx = 0 - .dx' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='abs(dy)' exp='.dy &lt; 0' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='.dy = 0 - .dy' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='.dist2 = .dx + .dy' />
									<exp exp='.CurveSize = .dist1 + .dist2' />
									<exp exp='.Resolution = .CurveSize / 3' />
								</command>
								<command class_type='decision' title='Clamp minimum resolution' exp='.Resolution &lt; 8' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='.Resolution = 8' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Clamp maximum resolution' exp='.Resolution &gt; 128' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='.Resolution = 128' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='calculation' title='Initialise t and step' >
							<exp exp='.t = 0.0' />
							<exp exp='.step = 1.0 / FLOAT .Resolution' />
						</command>
						<command class_type='loop' title='Loop' type='2' forvar='.i' exp='.Resolution + 1' for1='' for3='' >
							<flowline >
								<command class_type='calculation' title='Bezier calculation' >
									<exp exp='.one_minus_t = 1.0 - .t' />
									<exp exp='.fx = (.one_minus_t * .one_minus_t * FLOAT .X0) + (2.0 * .one_minus_t * .t * FLOAT .CX) + (.t * .t * FLOAT .X2)' />
									<exp exp='.fy = (.one_minus_t * .one_minus_t * FLOAT .Y0) + (2.0 * .one_minus_t * .t * FLOAT .CY) + (.t * .t * FLOAT .Y2)' />
									<exp exp='.Xp = round(.fx)' />
									<exp exp='.Yp = round(.fy)' />
								</command>
								<command class_type='call' title='Plot point' macro='DrawLine' >
									<argument exp='.X0' />
									<argument exp='.Y0' />
									<argument exp='.Xp' />
									<argument exp='.Yp' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='.X0 = .Xp' />
									<exp exp='.Y0 = .Yp' />
								</command>
								<command class_type='calculation' title='Increment t' >
									<exp exp='.t = .t + .step' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='DrawRectangleSim' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='X2' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y2' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Transparent' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Solid' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Xmin' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Xmax' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Ymin' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Ymax' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Call Component Macro' component='Base_GLCD' macro='DrawRectangle' >
							<argument exp='.X1' />
							<argument exp='.Y1' />
							<argument exp='.X2' />
							<argument exp='.Y2' />
							<argument exp='.Transparent' />
							<argument exp='.Solid' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Window' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='X2' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y2' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='temp' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='Orientation' >
							<case >
								<flowline />
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='calculation' title='Calculation' >
										<exp exp='.temp = .Y1' />
										<exp exp='.Y1 = .Y2' />
										<exp exp='.Y2 = .temp' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='.temp = pixel_width - (.Y1 + 1)' />
										<exp exp='.Y1 = .X1' />
										<exp exp='.X1 = .temp' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='.temp = pixel_width - (.Y2 + 1)' />
										<exp exp='.Y2 = .X2' />
										<exp exp='.X2 = .temp' />
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='calculation' title='Calculation' >
										<exp exp='.temp = .Y1' />
										<exp exp='.Y1 = .Y2' />
										<exp exp='.Y2 = .temp' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='.X1 = pixel_width - (.X1 + 1)' />
										<exp exp='.Y1 = pixel_height - (.Y1 + 1)' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='.X2 = pixel_width - (.X2 + 1)' />
										<exp exp='.Y2 = pixel_height - (.Y2 + 1)' />
									</command>
								</flowline>
							</case>
							<case exp='3' >
								<flowline >
									<command class_type='calculation' title='Calculation' >
										<exp exp='.temp = .Y1' />
										<exp exp='.Y1 = pixel_height - (.X1 + 1)' />
										<exp exp='.X1 = .temp' />
									</command>
									<command class_type='calculation' title='Calculation' >
										<exp exp='.temp = .Y2' />
										<exp exp='.Y2 = pixel_height - (.X2 + 1)' />
										<exp exp='.X2 = .temp' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='comment' title='' comment='Set Column Address' textarea='12,0,12,0' />
						<command class_type='call' title='Call Macro' macro='LCD_Write_Reg' >
							<argument exp='0x2A' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<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' macro='LCD_Write_Data' >
							<argument exp='.X1 &gt;&gt; 8' />
						</command>
						<command class_type='call' title='Call Macro' macro='LCD_Write_Data' >
							<argument exp='.X1' />
						</command>
						<command class_type='call' title='Call Macro' macro='LCD_Write_Data' >
							<argument exp='.X2 &gt;&gt; 8' />
						</command>
						<command class_type='call' title='Call Macro' macro='LCD_Write_Data' >
							<argument exp='.X2' />
						</command>
						<command class_type='comment' title='' comment='Set Row Address' textarea='12,0,12,0' />
						<command class_type='call' title='Call Macro' macro='LCD_Write_Reg' >
							<argument exp='0x2B' />
						</command>
						<command class_type='call' title='Call Macro' macro='LCD_Write_Data' >
							<argument exp='.Y1 &gt;&gt; 8' />
						</command>
						<command class_type='call' title='Call Macro' macro='LCD_Write_Data' >
							<argument exp='.Y1' />
						</command>
						<command class_type='call' title='Call Macro' macro='LCD_Write_Data' >
							<argument exp='.Y2 &gt;&gt; 8' />
						</command>
						<command class_type='call' title='Call Macro' macro='LCD_Write_Data' >
							<argument exp='.Y2' />
						</command>
						<command class_type='comment' title='' comment='Prep for data' textarea='12,0,12,0' />
						<command class_type='call' title='Call Macro' macro='LCD_Write_Reg' >
							<argument exp='0x2C' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ReadFontStat' description='Gets a stat from the selected embedded ASCII font data.' statediag='0' >
						<return name='Return' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Font' type='u8' description='Font selection range: 0 to (NumFonts - 1)' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Index' type='u8' description='0=SpaceWidth, 1=PixelHeight' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='ReadFontStat' >
							<exp exp='.Return = Base_GLCD :: ReadFontStat (.Font, .Index)' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='PrintSim' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Str' type='T8*' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<param name='X1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Font' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Transparent' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='xpix' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='ypix' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='pos_str' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='len_str' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='count' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='xcount' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='ycount' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='height' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='width' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='idx' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='font_width' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='1' setinit='1' />
						<local name='font_height' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='1' setinit='1' />
						<local name='position' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='temp' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='6' />
						</local>
						<local name='temp2' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='6' />
						</local>
						<command class_type='sim' title='Call Component Macro' component='Base_GLCD' macro='Print' >
							<argument exp='.Str' />
							<argument exp='.X1' />
							<argument exp='.Y1' />
							<argument exp='.Font' />
							<argument exp='.Transparent' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Print' description='This macro prints a string of characters to the Graphical LCD.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Str' type='T8*' description='String of characters to send to the display.' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<param name='X1' type='u16' description='X pixel coordinate to set the output string position.' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='Y pixel coordinate to set the output string position.' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Font' type='u8' description='Selects which Font to use Range: 0 to Font Count' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Transparent' type='u8' description='Specifies if the background of the text is drawn - 0 = Background colour is drawn, 1 = Background colour not drawn.' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='BytesPerColumn' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='CharacterColumns' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='CharacterHeight' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='ColumnIndex' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='ColumnSubIndex' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='PixelData' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='SpaceColumns' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='idx' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='len_str' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='ycount' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='ypix' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='xcount' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='h' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='.xcount = 0' />
							<exp exp='.idx = 0' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.len_str = Length$ (.Str)' />
						</command>
						<command class_type='call' title='Call Macro' component='Base_GLCD' macro='ReadFontStat' >
							<return exp='.SpaceColumns' />
							<argument exp='.Font' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Macro' component='Base_GLCD' macro='ReadFontStat' >
							<return exp='.CharacterHeight' />
							<argument exp='.Font' />
							<argument exp='1' />
						</command>
						<command class_type='calculation' title='Calculate character height' >
							<exp exp='.BytesPerColumn = ((.CharacterHeight - 1) &gt;&gt; 3) + 1' />
						</command>
						<command class_type='loop' title='Loop through characters in string' type='0' exp='.idx &lt; .len_str' for1='' for3='' >
							<flowline >
								<command class_type='call' title='Call Macro' component='Base_GLCD' macro='ReadFontWidth' >
									<return exp='.CharacterColumns' />
									<argument exp='.Font' />
									<argument exp='.STr[.Idx]' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='.ColumnSubIndex = 0' />
								</command>
								<command class_type='loop' title='Loop' type='0' exp='.ColumnSubIndex &lt; .BytesPerColumn' for1='' for3='' >
									<flowline >
										<command class_type='decision' title='Decision' exp='.ColumnSubIndex' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='.xcount = .xcount - ((.CharacterColumns + .SpaceColumns) * ScaleX)' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='.ColumnIndex = 0' />
										</command>
										<command class_type='loop' title='Loop' type='0' exp='.ColumnIndex &lt; (.CharacterColumns + .SpaceColumns)' for1='' for3='' >
											<flowline >
												<command class_type='loop' title='Loop' type='2' exp='ScaleX' for1='' for3='' >
													<flowline >
														<command class_type='decision' title='Decision' exp='.ColumnIndex &lt; .CharacterColumns' swap='0' >
															<flowline >
																<command class_type='call' title='Call Macro' component='Base_GLCD' macro='ReadFontByte' >
																	<return exp='.PixelData' />
																	<argument exp='.Font' />
																	<argument exp='.str[.idx]' />
																	<argument exp='.ColumnIndex + (.CharacterColumns * .ColumnSubIndex)' />
																</command>
															</flowline>
															<flowline >
																<command class_type='calculation' title='Character Spacing' >
																	<exp exp='.PixelData = 0' />
																</command>
															</flowline>
														</command>
														<command class_type='calculation' title='Calculation' >
															<exp exp='.ycount = (.ColumnSubIndex * 8) * ScaleY' />
														</command>
														<command class_type='comment' title='' comment='We can only do window and fast plot when transparent = 0' textarea='12,0,12,0' />
														<command class_type='decision' title='Decision' exp='((.ColumnSubIndex + 1) * 8) &lt; .CharacterHeight' swap='0' >
															<flowline >
																<command class_type='calculation' title='Calculation' >
																	<exp exp='.ypix = 0' />
																</command>
																<command class_type='calculation' title='Calculation' >
																	<exp exp='.h = 8' />
																</command>
															</flowline>
															<flowline >
																<command class_type='decision' title='Decision' exp='((Orientation = 1) || (Orientation = 2)) &amp;&amp; .Transparent = 0' swap='0' >
																	<flowline >
																		<command class_type='calculation' title='Calculation' >
																			<exp exp='.ypix = 0' />
																		</command>
																		<command class_type='calculation' title='Calculation' >
																			<exp exp='.h = .CharacterHeight - (.ColumnSubIndex * 8)' />
																		</command>
																	</flowline>
																	<flowline >
																		<command class_type='calculation' title='Calculation' >
																			<exp exp='.ypix = ((.ColumnSubIndex + 1) * 8) - .CharacterHeight' />
																		</command>
																		<command class_type='calculation' title='Calculation' >
																			<exp exp='.h = 8' />
																		</command>
																	</flowline>
																</command>
															</flowline>
														</command>
														<command class_type='decision' title='Decision' exp='.Transparent = 0' swap='0' >
															<flowline >
																<command class_type='call' title='Call Macro' macro='Window' >
																	<argument exp='.X1 + .xcount' />
																	<argument exp='.Y1 + .Ycount' />
																	<argument exp='.X1 + .xcount' />
																	<argument exp='.Y1 + .Ycount + ((.h - .ypix) * ScaleY) - 1' />
																</command>
																<command class_type='loop' title='Loop' type='0' exp='.ypix &lt; .h' for1='' for3='' >
																	<flowline >
																		<command class_type='loop' title='Loop' type='2' exp='ScaleY' for1='' for3='' >
																			<flowline >
																				<command class_type='decision' title='Decision' exp='(Orientation = 1) || (Orientation = 2)' swap='0' >
																					<flowline >
																						<command class_type='decision' title='Decision' exp='.PixelData &amp; (0x80 &gt;&gt; .ypix)' swap='0' >
																							<flowline >
																								<command class_type='call' title='Call Macro' macro='FastPlot' />
																							</flowline>
																							<flowline >
																								<command class_type='decision' title='Decision' exp='.Transparent = 0' swap='0' >
																									<flowline >
																										<command class_type='call' title='Call Macro' macro='FastBPlot' />
																									</flowline>
																									<flowline />
																								</command>
																							</flowline>
																						</command>
																					</flowline>
																					<flowline >
																						<command class_type='decision' title='Decision' exp='.PixelData &amp; (0x01 &lt;&lt; .ypix)' swap='0' >
																							<flowline >
																								<command class_type='call' title='Call Macro' macro='FastPlot' />
																							</flowline>
																							<flowline >
																								<command class_type='decision' title='Decision' exp='.Transparent = 0' swap='0' >
																									<flowline >
																										<command class_type='call' title='Call Macro' macro='FastBPlot' />
																									</flowline>
																									<flowline />
																								</command>
																							</flowline>
																						</command>
																					</flowline>
																				</command>
																				<command class_type='calculation' title='Calculation' >
																					<exp exp='.ycount = .ycount + 1' />
																				</command>
																			</flowline>
																		</command>
																		<command class_type='calculation' title='Calculation' >
																			<exp exp='.ypix = .ypix + 1' />
																			<exp exp='' />
																		</command>
																	</flowline>
																</command>
															</flowline>
															<flowline >
																<command class_type='loop' title='Loop' type='0' exp='.ypix &lt; 8' for1='' for3='' >
																	<flowline >
																		<command class_type='loop' title='Loop' type='2' exp='ScaleY' for1='' for3='' >
																			<flowline >
																				<command class_type='decision' title='Decision' exp='.PixelData &amp; (0x01 &lt;&lt; .ypix)' swap='0' >
																					<flowline >
																						<command class_type='call' title='Call Macro' macro='Plot' >
																							<argument exp='.X1 + .xcount' />
																							<argument exp='.Y1 + .ycount' />
																						</command>
																					</flowline>
																					<flowline >
																						<command class_type='decision' title='Decision' exp='.Transparent = 0' swap='0' >
																							<flowline >
																								<command class_type='call' title='Call Macro' macro='BPlot' >
																									<argument exp='.X1 + .xcount' />
																									<argument exp='.Y1 + .ycount' />
																								</command>
																							</flowline>
																							<flowline />
																						</command>
																					</flowline>
																				</command>
																				<command class_type='calculation' title='Calculation' >
																					<exp exp='.ycount = .ycount + 1' />
																				</command>
																			</flowline>
																		</command>
																		<command class_type='calculation' title='Calculation' >
																			<exp exp='.ypix = .ypix + 1' />
																			<exp exp='' />
																		</command>
																	</flowline>
																</command>
															</flowline>
														</command>
														<command class_type='calculation' title='Calculation' >
															<exp exp='.xcount = .xcount + 1' />
														</command>
													</flowline>
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='.ColumnIndex = .ColumnIndex + 1' />
												</command>
											</flowline>
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='.ColumnSubIndex = .ColumnSubIndex + 1' />
										</command>
									</flowline>
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='.idx = .idx + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' exp='DisplayMethod = 1' swap='0' >
							<flowline />
							<flowline >
								<command class_type='sim' title='Panel' textarea='36,0,511,300' macro='Panel.Graphics.DrawEnd' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='BPlotSim' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Call Component Macro' component='Base_GLCD' macro='BPlot' >
							<argument exp='.X1' />
							<argument exp='.Y1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='DrawArcSim' description='Draws an arc either as an outline or as a filled object.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='X' type='u16' description='Center X coordinate' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y' type='u16' description='Center Y coordinate' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Radius' type='u16' description='Radius, distance of edge from the centre coordinates' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='StartAngle' type='f32' description='Angle to start drawing, in degrees' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<param name='EndAngle' type='f32' description='Angle to end drawing, in degrees' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<param name='Resolution' type='u16' description='Number of lines to draw from the center to the outer edge' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Transparent' type='u8' description='Chooses the transparency - 0 = Arc contains background colour, 1 = Arc contains previous pixel data.' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Solid' type='u8' description='Chooses to fill with colour - 0 = Arc transparency data, 1 = Arc contains foreground colour.' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='i' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='j' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='sx' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='sy' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='AngleStep' type='f32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<local name='Angle' type='f32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<command class_type='sim' title='Call Component Macro' component='Base_GLCD' macro='DrawArc' >
							<argument exp='.X' />
							<argument exp='.Y' />
							<argument exp='.Radius' />
							<argument exp='.StartAngle' />
							<argument exp='.EndAngle' />
							<argument exp='.Resolution' />
							<argument exp='.Transparent' />
							<argument exp='.Solid' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ClearDisplay' description='This macro clears the display of any previous output by overwriting the entire display with the background colour.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='Y' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='X' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='OrientationStore' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='.OrientationStore = Orientation' />
							<exp exp='Orientation = 0' />
						</command>
						<command class_type='call' title='Call Macro' macro='Window' >
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='pixel_width - 1' />
							<argument exp='pixel_height - 1' />
						</command>
						<command class_type='loop' title='Loop' type='0' exp='.Y &lt; pixel_height' for1='' for3='' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='.X = 0' />
								</command>
								<command class_type='loop' title='Loop' type='0' exp='.X &lt; pixel_width' for1='' for3='' >
									<flowline >
										<command class_type='call' title='R' macro='LCD_Write_Data' >
											<argument exp='BR' />
										</command>
										<command class_type='call' title='G' macro='LCD_Write_Data' >
											<argument exp='BG' />
										</command>
										<command class_type='call' title='B' macro='LCD_Write_Data' >
											<argument exp='BB' />
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='.X = .X + 1' />
										</command>
									</flowline>
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Y = .Y + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='Orientation = .OrientationStore' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SetBackgroundColour' description='Specifies the colour of the background by creating a mixture of red, green and blue.
' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Red' type='u8' description='0 - 255 where 0 = no red and 255 = maximum red' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Green' type='u8' description='0 - 255 where 0 = no green and 255 = maximum green' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Blue' type='u8' description='0 - 255 where 0 = no blue and 255 = maximum blue' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='BR = .Red' />
							<exp exp='BG = .Green' />
							<exp exp='BB = .Blue' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='DrawBezierSim' description='Draws a quadratic Bezier curve with the current foreground colour from pixel location X0, Y0 to pixel location X2, Y2 using control point CX, CY.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='X0' type='u16' description='Start X coordinate' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y0' type='u16' description='Start Y coordinate' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='CX' type='u16' description='Control point X coordinate' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='CY' type='u16' description='Control point Y coordinate' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='X2' type='u16' description='End X coordinate' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y2' type='u16' description='End Y coordinate' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Resolution' type='u16' description='Number of segments to approximate the curve, 0 chooses an automatic value based on curve size.' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Component Macro' component='Base_GLCD' macro='DrawBezier' >
							<argument exp='.X0' />
							<argument exp='.Y0' />
							<argument exp='.CX' />
							<argument exp='.CY' />
							<argument exp='.X2' />
							<argument exp='.Y2' />
							<argument exp='.Resolution' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Ev_Resize' description='Sent to the mouse target when the user has altered the position of a component child' statediag='0' >
						<return name='Return' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Component' type='h32' description='The component that has been altered' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='PrevPos' type='h32' description='The position of the object before the start of positioning' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Final' type='b1' description='True if this is the end of a drag operation' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Built-in Function' macro='System.Forward' >
							<argument exp='Base_GLCD' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='DrawCircle' description='Draws a circle object on the display with the center of the circle at the location X,Y' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='X' type='u16' description='X Coordinate for the center of the circle' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y' type='u16' description='Y coordinate for the center of the circle' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Radius' type='u16' description='Radius of the circle specified in pixels' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Transparent' type='u8' description='0=Fill inside circle using background colour / 1=Draw outer circle only' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Solid' type='u8' description='0=Use Transparent Setting / 1=Fill with foreground colour' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='D' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='CurX' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='CurY' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Rep' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='BG' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='3' />
						</local>
						<local name='FG' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='3' />
						</local>
						<command class_type='decision' title='Draw the circle in solid foreground' exp='.Solid = 1' swap='0' >
							<flowline >
								<command class_type='label' title='Connection Point' labelid='0' labelname='A' labeltype='4' />
								<command class_type='calculation' title='Calculate Decision Variable' >
									<exp exp='.D = 3 - (.Radius &lt;&lt; 1)' />
								</command>
								<command class_type='calculation' title='Start Locations' >
									<exp exp='.CurX = 0' />
									<exp exp='.CurY = .Radius' />
								</command>
								<command class_type='loop' title='Loop' type='0' exp='.CurX &lt;= .CurY' for1='' for3='' >
									<flowline >
										<command class_type='decision' title='Decision' exp='.CurY &gt; 0' swap='0' >
											<flowline >
												<command class_type='call' title='Call Macro' macro='DrawLine' >
													<argument exp='.X - .CurY' />
													<argument exp='.Y + .CurX' />
													<argument exp='.X + .CurY' />
													<argument exp='.Y + .CurX' />
												</command>
												<command class_type='call' title='Call Macro' macro='DrawLine' >
													<argument exp='.X - .CurY' />
													<argument exp='.Y - .CurX' />
													<argument exp='.X + .CurY' />
													<argument exp='.Y - .CurX' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' exp='.CurX &gt; 0' swap='0' >
											<flowline >
												<command class_type='call' title='Call Macro' macro='DrawLine' >
													<argument exp='.X - .CurX' />
													<argument exp='.Y - .CurY' />
													<argument exp='.X + .CurX' />
													<argument exp='.Y - .CurY' />
												</command>
												<command class_type='call' title='Call Macro' macro='DrawLine' >
													<argument exp='.X - .CurX' />
													<argument exp='.Y + .CurY' />
													<argument exp='.X + .CurX' />
													<argument exp='.Y + .CurY' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' exp='.D &lt; 0' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='.D = .D + ((.CurX &lt;&lt; 2) + 6)' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='.D = .D + (((.CurX - .CurY) &lt;&lt; 2) + 10)' />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='.CurY = .CurY - 1' />
												</command>
											</flowline>
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='.CurX = .CurX + 1' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='Draw the background colour?' exp='.Transparent = 1' swap='0' >
									<flowline >
										<command class_type='label' title='Connection Point' labelid='1' labelname='B' labeltype='4' />
										<command class_type='calculation' title='Calculate Decision Variable' >
											<exp exp='.D = 3 - (.Radius &lt;&lt; 1)' />
										</command>
										<command class_type='calculation' title='Start Locations' >
											<exp exp='.CurX = 0' />
											<exp exp='.CurY = .Radius' />
										</command>
										<command class_type='loop' title='Loop' type='0' exp='.CurX &lt;= .CurY' for1='' for3='' >
											<flowline >
												<command class_type='call' title='Call Macro' macro='Plot' >
													<argument exp='.X + .CurX' />
													<argument exp='.Y - .CurY' />
												</command>
												<command class_type='call' title='Call Macro' macro='Plot' >
													<argument exp='.X - .CurX' />
													<argument exp='.Y - .CurY' />
												</command>
												<command class_type='call' title='Call Macro' macro='Plot' >
													<argument exp='.X + .CurY' />
													<argument exp='.Y - .CurX' />
												</command>
												<command class_type='call' title='Call Macro' macro='Plot' >
													<argument exp='.X - .CurY' />
													<argument exp='.Y - .CurX' />
												</command>
												<command class_type='call' title='Call Macro' macro='Plot' >
													<argument exp='.X + .CurX' />
													<argument exp='.Y + .CurY' />
												</command>
												<command class_type='call' title='Call Macro' macro='Plot' >
													<argument exp='.X - .CurX' />
													<argument exp='.Y + .CurY' />
												</command>
												<command class_type='call' title='Call Macro' macro='Plot' >
													<argument exp='.X + .CurY' />
													<argument exp='.Y + .CurX' />
												</command>
												<command class_type='call' title='Call Macro' macro='Plot' >
													<argument exp='.X - .CurY' />
													<argument exp='.Y + .CurX' />
												</command>
												<command class_type='decision' title='Decision' exp='.D &lt; 0' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' >
															<exp exp='.D = .D + ((.CurX &lt;&lt; 2) + 6)' />
														</command>
													</flowline>
													<flowline >
														<command class_type='calculation' title='Calculation' >
															<exp exp='.D = .D + (((.CurX - .CurY) &lt;&lt; 2) + 10)' />
														</command>
														<command class_type='calculation' title='Calculation' >
															<exp exp='.CurY = .CurY - 1' />
														</command>
													</flowline>
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='.CurX = .CurX + 1' />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='.FG[0] = FR' />
											<exp exp='.FG[1] = FG' />
											<exp exp='.FG[2] = FB' />
											<exp exp='.BG[0] = BR' />
											<exp exp='.BG[1] = BG' />
											<exp exp='.BG[2] = BB' />
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='FR = .BG[0]' />
											<exp exp='FG = .BG[1]' />
											<exp exp='FB = .BG[2]' />
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='.Rep = 1' />
										</command>
										<command class_type='goto' title='Goto Connection Point' labelid='0' labelname='' labeltype='0' />
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' exp='.Rep = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Rep = .Rep + 1' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='FR = .FG[0]' />
									<exp exp='FG = .FG[1]' />
									<exp exp='FB = .FG[2]' />
								</command>
								<command class_type='goto' title='Goto Connection Point' labelid='1' labelname='' labeltype='0' />
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro keep='1' >
					<flowline name='ReadASCIILUT' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
					</flowline>
				</macro>
				<macro >
					<flowline name='DrawRoundedRectangle' description='Draws a rectangle with rounded corners' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='X2' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y2' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Radius' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Transparent' type='u8' description='Chooses the transparency of the box - 0 = Box contains background colour, 1 = Box contains previous pixel data.' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Solid' type='u8' description='Chooses to fill the box with colour - 0 = Box contains transparency data, 1 = Box contains foreground colour.' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='g' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='height' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='oxx1' type='s16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='oxx2' type='s16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='r' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='width' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='xx1' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='xx2' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='y' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='ColSave' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='3' />
						</local>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.width = .X2 - .X1' />
							<exp exp='.height = .Y2 - .Y1' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.y = - .Radius' />
						</command>
						<command class_type='decision' title='Decision' exp='.Solid' swap='0' >
							<flowline >
								<command class_type='loop' title='Loop' type='0' exp='.y &lt;= 0' for1='' for3='' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='.r = round (SQRT (.Radius * .Radius - .y * .y))' />
											<exp exp='.xx1 = .x1 + .r' />
											<exp exp='.xx2 = .x1 - .r' />
											<exp exp='.xx1 = .xx1 + .width - .Radius' />
											<exp exp='.xx2 = .xx2 + .Radius' />
											<exp exp='.g = .Y1 - .y + .height' />
										</command>
										<command class_type='call' title='User Macro' macro='DrawLine' >
											<argument exp='.xx2' />
											<argument exp='.g - .Radius' />
											<argument exp='.xx1' />
											<argument exp='.g - .Radius' />
										</command>
										<command class_type='call' title='User Macro' macro='DrawLine' >
											<argument exp='.xx2' />
											<argument exp='.Y1 + .y + .Radius' />
											<argument exp='.xx1' />
											<argument exp='.Y1 + .y + .Radius' />
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='.y = .y + 1' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' exp='(.Radius &gt;&gt; 1) &lt; (.Y2 - .Y1)' swap='0' >
									<flowline >
										<command class_type='call' title='User Macro' macro='DrawRectangle' >
											<argument exp='.X1' />
											<argument exp='.Y1 + .Radius' />
											<argument exp='.X2' />
											<argument exp='.Y2 - .Radius' />
											<argument exp='.Transparent' />
											<argument exp='.Solid' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
							<flowline >
								<command class_type='loop' title='Loop' type='0' exp='.y &lt;= 0' for1='' for3='' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='.r = round (SQRT ((.Radius * .Radius) - (.y * .y)))' />
											<exp exp='.xx1 = .x1 + .r' />
											<exp exp='.xx2 = .x1 - .r' />
											<exp exp='.xx1 = .xx1 + .width - .Radius' />
											<exp exp='.xx2 = .xx2 + .Radius' />
											<exp exp='.g = .Y1 - .y + .height' />
										</command>
										<command class_type='decision' title='Decision' exp='.y = - .Radius' swap='0' >
											<flowline >
												<command class_type='call' title='User Macro' macro='DrawLine' >
													<argument exp='.xx2' />
													<argument exp='.g - .Radius' />
													<argument exp='.xx1' />
													<argument exp='.g - .Radius' />
												</command>
												<command class_type='call' title='User Macro' macro='DrawLine' >
													<argument exp='.xx2' />
													<argument exp='.Y1 + .y + .Radius' />
													<argument exp='.xx1' />
													<argument exp='.Y1 + .y + .Radius' />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='.oxx2 = .xx2' />
													<exp exp='.oxx1 = .xx1' />
												</command>
											</flowline>
											<flowline >
												<command class_type='call' title='User Macro' macro='DrawLine' >
													<argument exp='.xx2' />
													<argument exp='.g - .Radius' />
													<argument exp='.oxx2' />
													<argument exp='.g - .Radius' />
												</command>
												<command class_type='call' title='User Macro' macro='DrawLine' >
													<argument exp='.xx1' />
													<argument exp='.g - .Radius' />
													<argument exp='.oxx1' />
													<argument exp='.g - .Radius' />
												</command>
												<command class_type='call' title='User Macro' macro='DrawLine' >
													<argument exp='.xx2' />
													<argument exp='.Y1 + .y + .Radius' />
													<argument exp='.oxx2' />
													<argument exp='.Y1 + .y + .Radius' />
												</command>
												<command class_type='call' title='User Macro' macro='DrawLine' >
													<argument exp='.xx1' />
													<argument exp='.Y1 + .y + .Radius' />
													<argument exp='.oxx1' />
													<argument exp='.Y1 + .y + .Radius' />
												</command>
												<command class_type='decision' title='Decision' exp='.Transparent = 0' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' >
															<exp exp='.ColSave[0] = FR' />
															<exp exp='.ColSave[1] = FG' />
															<exp exp='.ColSave[2] = FB' />
														</command>
														<command class_type='calculation' title='Calculation' >
															<exp exp='FR = BR' />
															<exp exp='FG = BG' />
															<exp exp='FB = BB' />
														</command>
														<command class_type='call' title='User Macro' macro='DrawLine' >
															<argument exp='.oxx2 + 1' />
															<argument exp='.g - .Radius' />
															<argument exp='.oxx1 - 1' />
															<argument exp='.g - .Radius' />
														</command>
														<command class_type='call' title='User Macro' macro='DrawLine' >
															<argument exp='.oxx2 + 1' />
															<argument exp='.Y1 + .y + .Radius' />
															<argument exp='.oxx1 - 1' />
															<argument exp='.Y1 + .y + .Radius' />
														</command>
														<command class_type='calculation' title='Calculation' >
															<exp exp='FR = .ColSave[0]' />
															<exp exp='FG = .ColSave[1]' />
															<exp exp='FB = .ColSave[2]' />
														</command>
													</flowline>
													<flowline />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='.oxx2 = .xx2' />
													<exp exp='.oxx1 = .xx1' />
												</command>
											</flowline>
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='.y = .y + 1' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' exp='(.Radius &gt;&gt; 1) &lt; (.Y2 - .Y1)' swap='0' >
									<flowline >
										<command class_type='call' title='Left Line' macro='DrawLine' >
											<argument exp='.X1' />
											<argument exp='.Y1 + .Radius' />
											<argument exp='.X1' />
											<argument exp='.Y2  - .Radius' />
										</command>
										<command class_type='call' title='Right Line' macro='DrawLine' >
											<argument exp='.X2' />
											<argument exp='.Y1 + .Radius' />
											<argument exp='.X2' />
											<argument exp='.Y2  - .Radius' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' exp='.Transparent = 0' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='.ColSave[0] = FR' />
											<exp exp='.ColSave[1] = FG' />
											<exp exp='.ColSave[2] = FB' />
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='FR = BR' />
											<exp exp='FG = BG' />
											<exp exp='FB = BB' />
										</command>
										<command class_type='decision' title='Decision' exp='(.Radius &gt;&gt; 1) &lt; (.Y2 - .Y1)' swap='0' >
											<flowline >
												<command class_type='call' title='User Macro' macro='DrawRectangle' >
													<argument exp='.X1 + 1' />
													<argument exp='.Y1 + .Radius + 1' />
													<argument exp='.X2 - 1' />
													<argument exp='.Y2 - .Radius - 1' />
													<argument exp='.Transparent' />
													<argument exp='.Solid' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='FR = .ColSave[0]' />
											<exp exp='FG = .ColSave[1]' />
											<exp exp='FB = .ColSave[2]' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SetForegroundColour' description='Specifies the colour of the foreground by creating a mixture of red, green and blue.
' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Red' type='u8' description='0 - 255 where 0 = no red and 255 = maximum red' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Green' type='u8' description='0 - 255 where 0 = no green and 255 = maximum green' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Blue' type='u8' description='0 - 255 where 0 = no blue and 255 = maximum blue' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' >
							<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' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='X2' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y2' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Transparent' type='u8' description='Chooses the transparency of the box - 0 = Box contains background colour, 1 = Box contains previous pixel data.' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Solid' type='u8' description='Chooses to fill the box with colour - 0 = Box contains transparency data, 1 = Box contains foreground colour.' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Xmin' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Xmax' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Ymin' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Ymax' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Macro' macro='DrawLine' >
							<argument exp='.X1' />
							<argument exp='.Y1' />
							<argument exp='.X2' />
							<argument exp='.Y1' />
						</command>
						<command class_type='call' title='Call Macro' macro='DrawLine' >
							<argument exp='.X2' />
							<argument exp='.Y1' />
							<argument exp='.X2' />
							<argument exp='.Y2' />
						</command>
						<command class_type='call' title='Call Macro' macro='DrawLine' >
							<argument exp='.X1' />
							<argument exp='.Y2' />
							<argument exp='.X2' />
							<argument exp='.Y2' />
						</command>
						<command class_type='call' title='Call Macro' macro='DrawLine' >
							<argument exp='.X1' />
							<argument exp='.Y1' />
							<argument exp='.X1' />
							<argument exp='.Y2' />
						</command>
						<command class_type='decision' title='Decision' exp='.Transparent = 0' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' exp='.X1 &gt; .X2' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='.Xmax = .X1' />
											<exp exp='.Xmin = .X2 + 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='.Xmax = .X2' />
											<exp exp='.Xmin = .X1 + 1' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' exp='.Y1 &gt; .Y2' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='.Ymax = .Y1' />
											<exp exp='.Ymin = .Y2 + 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='.Ymax = .Y2' />
											<exp exp='.Ymin = .Y1 + 1' />
										</command>
									</flowline>
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='.Y1 = .Ymin' />
								</command>
								<command class_type='loop' title='Loop' type='0' exp='.Y1 &lt; .YMax' for1='' for3='' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='.X1 = .Xmin' />
										</command>
										<command class_type='loop' title='Loop' type='0' exp='.X1 &lt; .XMax' for1='' for3='' >
											<flowline >
												<command class_type='decision' title='Decision' exp='.Solid' swap='0' >
													<flowline >
														<command class_type='call' title='Call Macro' macro='Plot' >
															<argument exp='.X1' />
															<argument exp='.Y1' />
														</command>
													</flowline>
													<flowline >
														<command class_type='call' title='Call Macro' macro='BPlot' >
															<argument exp='.X1' />
															<argument exp='.Y1' />
														</command>
													</flowline>
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='.X1 = .X1 + 1' />
												</command>
											</flowline>
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='.Y1 = .Y1 + 1' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='Component Version Information;
11, 1.0, 22-07-24, BR, Added DrawArc and DrawRoundedRectangle functions;' textarea='12,0,12,0' />
						<command class_type='call' title='Call Macro' macro='InitSim' />
						<command class_type='call' title='Call Macro' macro='SetDisplayOrientationSim' >
							<argument exp='3' />
						</command>
						<command class_type='call' title='Call Macro' 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='DrawCircleSim' description='Draws a circle object on the display with the center of the circle at the location X,Y' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='X' type='u16' description='X Coordinate for the center of the circle' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y' type='u16' description='Y coordinate for the center of the circle' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Radius' type='u16' description='Radius of the circle specified in pixels' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Transparent' type='u8' description='0=Fill inside circle using background colour / 1=Draw outer circle only' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Solid' type='u8' description='0=Use Transparent Setting / 1=Fill with foreground colour' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='D' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='CurX' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='CurY' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='BGCol' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='FGCol' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Rep' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='sim' title='Call Component Macro' component='Base_GLCD' macro='DrawCircle' >
							<argument exp='.X' />
							<argument exp='.Y' />
							<argument exp='.Radius' />
							<argument exp='.Transparent' />
							<argument exp='.Solid' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Initialise' description='The Init macro must be called once to initialise the Graphical LCD display before any other Graphical LCD component macros are called.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='P_Width' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Flip' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='native' title='Code' ccode='AD1PCFG = 0xFFFF;
DDPCONbits.JTAGEN = 0; // Desliga o JTAG para liberar os pinos PMP
TRISBbits.TRISB15 = 0; // TRIS RS
TRISCbits.TRISC1  = 0; // TRIS RST
TRISFbits.TRISF12 = 0; // TRIS CS
TRISDbits.TRISD5  = 0; // TRIS RD
TRISDbits.TRISD4  = 0; // TRIS WR
TRISCbits.TRISC2  = 0; // TRIS BLED
LATBbits.LATB15 = 1;
LATFbits.LATF12 = 1;
LATCbits.LATC1  = 1;
LATCbits.LATC2  = 1;
PMMODE = 0; PMAEN = 0; PMCON = 0;
PMMODEbits.MODE = 2;
PMMODEbits.WAITB = 0; PMMODEbits.WAITM = 1; PMMODEbits.WAITE = 0;
PMMODEbits.MODE16 = 1; // Ativa modo de 16 bits paralelo
PMCONbits.CSF = 0; PMCONbits.PTRDEN = 1; PMCONbits.PTWREN = 1;
PMCONbits.PMPEN = 1;   // Liga o periférico PMP
' language='C' />
						<command class_type='native' title='Code' ccode='// Pulso físico de Hardware Reset no SSD1963
LATCbits.LATC1 = 0; // Ativa Reset
delay_ms(100);       // Tempo estendido de segurança conforme driver do Lúcio
LATCbits.LATC1 = 1; // Libera Reset
delay_ms(250);      // Aguarda a auto-inicialização estabilizar (crucial!)

// Habilita o Chip Select para aceitar comandos de configuração inicial
LATFbits.LATF12 = 0;
' language='C' />
						<command class_type='call' title='User Macro' macro='LCD_Write_Reg' >
							<argument exp='0x01' />
						</command>
						<command class_type='delay' title='Delay' exp='10' type='1' />
						<command class_type='call' title='User Macro' macro='LCD_Write_Reg' >
							<argument exp='0xE2' />
						</command>
						<command class_type='call' title='User Macro' macro='LCD_Write_Data' >
							<argument exp='0x23' />
						</command>
						<command class_type='call' title='User Macro' macro='LCD_Write_Data' >
							<argument exp='0x02' />
						</command>
						<command class_type='call' title='User Macro' macro='LCD_Write_Data' >
							<argument exp='0x54' />
						</command>
						<command class_type='call' title='User Macro' macro='LCD_Write_Reg' >
							<argument exp='0xE0' />
						</command>
						<command class_type='call' title='User Macro' macro='LCD_Write_Data' >
							<argument exp='0x01' />
						</command>
						<command class_type='delay' title='Delay' exp='10' type='1' />
						<command class_type='call' title='User Macro' macro='LCD_Write_Reg' >
							<argument exp='0xE0' />
						</command>
						<command class_type='call' title='User Macro' macro='LCD_Write_Data' >
							<argument exp='0x03' />
						</command>
						<command class_type='delay' title='Delay' exp='10' type='1' />
						<command class_type='call' title='User Macro' macro='LCD_Write_Reg' >
							<argument exp='0xB0' />
						</command>
						<command class_type='call' title='User Macro' macro='LCD_Write_Data' >
							<argument exp='0x20' />
						</command>
						<command class_type='call' title='User Macro' macro='LCD_Write_Data' >
							<argument exp='0x00' />
						</command>
						<command class_type='call' title='User Macro' macro='LCD_Write_Data' >
							<argument exp='0x01' />
						</command>
						<command class_type='call' title='User Macro' macro='LCD_Write_Data' >
							<argument exp='0xDF' />
						</command>
						<command class_type='call' title='User Macro' macro='LCD_Write_Data' >
							<argument exp='0x01' />
						</command>
						<command class_type='call' title='User Macro' macro='LCD_Write_Data' >
							<argument exp='0x0F' />
						</command>
						<command class_type='call' title='User Macro' macro='LCD_Write_Data' >
							<argument exp='0x00' />
						</command>
						<command class_type='call' title='User Macro' macro='LCD_Write_Reg' >
							<argument exp='0xF0' />
						</command>
						<command class_type='call' title='User Macro' macro='LCD_Write_Data' >
							<argument exp='0x03' />
						</command>
						<command class_type='native' title='Code' ccode='// Ativação do PWM e Backlight Intensity através do SSD1963
LATBbits.LATB15 = 0; // RS = 0 (Comando)
PMDIN = 0xBE;        // CMD_SET_PWM_CONF
while(PMMODEbits.BUSY);

LATBbits.LATB15 = 1; // RS = 1 (Dados)
PMDIN = 0x0E;        // Frequência do PWM
while(PMMODEbits.BUSY);
PMDIN = 0xFF;        // INTENSIDADE MÁXIMA DO BRILHO (Resolve a tela apagar)
while(PMMODEbits.BUSY);
PMDIN = 0x01;        // PWM controlado pelo host habilitado
while(PMMODEbits.BUSY);
PMDIN = 0x00; while(PMMODEbits.BUSY);
PMDIN = 0x00; while(PMMODEbits.BUSY);
PMDIN = 0x00; while(PMMODEbits.BUSY);
' language='C' />
						<command class_type='call' title='User Macro' macro='LCD_Write_Reg' >
							<argument exp='0x29' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<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' macro='ClearDisplay' />
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='4384cba9-0bea-4359-8c5b-dcd046aa7778' vmin='0' vmaj='35' codename='Base_GLCD' panelId='-1' x='0' y='0' z='0' xsz='25' ysz='25' zsz='25' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='1' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' angle2d='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='pixel_width' data='864' />
					<value target='pixel_height' data='480' />
					<value target='monochrome' data='0' />
					<value target='foreground_colour' data='0' />
					<value target='background_colour' data='16777215' />
					<value target='colour_bit_depth' data='18' />
					<value target='red_bit_depth' data='6' />
					<value target='green_bit_depth' data='6' />
					<value target='blue_bit_depth' data='6' />
					<value target='ExternalFonts' data='0' />
					<value target='commsicon2::LinkTo' data='0' />
					<value target='UseFileIndex' data='0' />
					<value target='FileIndex' data='0' />
					<value target='UseFilePath' data='0' />
					<value target='FontPath' data='Fonts\' />
					<value target='FontCount' data='001' />
					<value target='gLCD_Font1::Font' data='000' />
					<value target='gLCD_Font1::BinaryFilename' data='Def8.bin' />
					<value target='gLCD_Font1::CustomFontFile' data='C:\Users\BenR\Desktop\customfont.h.c' />
					<value target='gLCD_Font1::BytesRequired' data='475' />
					<value target='gLCD_Font1::FontSpace' data='001' />
					<value target='gLCD_Font1::SpaceWidth' data='004' />
					<value target='gLCD_Font2::Font' data='005' />
					<value target='gLCD_Font2::BinaryFilename' data='Cal11.bin' />
					<value target='gLCD_Font2::CustomFontFile' data='C:\Users\BenR\Desktop\customfont.h.c' />
					<value target='gLCD_Font2::BytesRequired' data='0' />
					<value target='gLCD_Font2::FontSpace' data='001' />
					<value target='gLCD_Font2::SpaceWidth' data='004' />
					<value target='gLCD_Font3::Font' data='002' />
					<value target='gLCD_Font3::BinaryFilename' data='AriB14.bin' />
					<value target='gLCD_Font3::CustomFontFile' data='C:\Users\BenR\Desktop\customfont.h.c' />
					<value target='gLCD_Font3::BytesRequired' data='0' />
					<value target='gLCD_Font3::FontSpace' data='001' />
					<value target='gLCD_Font3::SpaceWidth' data='004' />
					<value target='gLCD_Font4::Font' data='015' />
					<value target='gLCD_Font4::BinaryFilename' data='' />
					<value target='gLCD_Font4::CustomFontFile' data='C:\Users\BenR\Desktop\customfont.h.c' />
					<value target='gLCD_Font4::BytesRequired' data='0' />
					<value target='gLCD_Font4::FontSpace' data='001' />
					<value target='gLCD_Font4::SpaceWidth' data='004' />
					<value target='gLCD_Font5::Font' data='008' />
					<value target='gLCD_Font5::BinaryFilename' data='' />
					<value target='gLCD_Font5::CustomFontFile' data='' />
					<value target='gLCD_Font5::BytesRequired' data='0' />
					<value target='gLCD_Font5::FontSpace' data='001' />
					<value target='gLCD_Font5::SpaceWidth' data='004' />
					<value target='gLCD_Font6::Font' data='010' />
					<value target='gLCD_Font6::BinaryFilename' data='' />
					<value target='gLCD_Font6::CustomFontFile' data='' />
					<value target='gLCD_Font6::BytesRequired' data='0' />
					<value target='gLCD_Font6::FontSpace' data='001' />
					<value target='gLCD_Font6::SpaceWidth' data='004' />
					<value target='gLCD_Font7::Font' data='021' />
					<value target='gLCD_Font7::BinaryFilename' data='' />
					<value target='gLCD_Font7::CustomFontFile' data='' />
					<value target='gLCD_Font7::BytesRequired' data='0' />
					<value target='gLCD_Font7::FontSpace' data='001' />
					<value target='gLCD_Font7::SpaceWidth' data='004' />
					<value target='gLCD_Font8::Font' data='003' />
					<value target='gLCD_Font8::BinaryFilename' data='' />
					<value target='gLCD_Font8::CustomFontFile' data='' />
					<value target='gLCD_Font8::BytesRequired' data='0' />
					<value target='gLCD_Font8::FontSpace' data='001' />
					<value target='gLCD_Font8::SpaceWidth' data='004' />
					<value target='ShowBackground' data='1' />
					<value target='ComponentLabel' data='001' />
					<value target='GdiText1::sText' data='gLCD_SSD1963' />
					<value target='GdiText1::dScale' data='1.000000' />
					<value target='DisplayType' data='002' />
					<value target='EmbedFontSet' data='1' />
					<value target='EmbedFontWidth' data='1' />
					<value target='NumParents' data='1' />
					<value target='ShowGLCDIcon' data='1' />
					<value target='TouchHandler' data='0' />
					<value target='PhysicalOrientation' data='000' />
					<value target='AutoRefresh' data='1' />
					<value target='RoundMask' data='0' />
					<value target='IsSim' data='1' />
					<value target='ExportBinFonts' data='0' />
					<value target='ExportAllFonts' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<scadaresourcelookup />
	<keymap />
	<panel2d shadows='0' lighting='0' brightness='0' >
		<background rgb='9737364' img='' style='0' />
		<camera xe='-14.6728' ye='19.2408' ze='967.673' xt='-14.6728' yt='19.2408' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<viewport dx='622' dy='352' zoom='77.7763' fix_topleft='0' />
		<page x='1000' y='1000' show='0' rgb='0' />
		<winpos ID='7005' RectRecentFloat='0,630,650,1080' RectRecentDocked='1084,-498,1482,-183' RecentFrameAlignment='16384' RecentRowIndex='0' IsFloating='1' MRUWidth='32767' PinState='0' IsMaximized='0' IsVisible='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' />
		<winpos ID='7004' RectRecentFloat='0,425,654,1002' RectRecentDocked='0,0,210,864' RecentFrameAlignment='16384' RecentRowIndex='0' IsFloating='0' MRUWidth='32767' PinState='0' IsMaximized='0' IsVisible='0' />
	</panel3d>
	<panels2d count='0' />
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARQMAAJMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Plot' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARQMAAJMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='FastPlot_Sim' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARQMAAJMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Window_Sim' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARQMAAJMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Window' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARQMAAJMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Print' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARQMAAJMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='DrawCircle' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARQMAAJMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='DrawEllipse' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARQMAAJMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Ev_AddProperty' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARQMAAJMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='LCD_Write_Data' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARQMAAJMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SendByte' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARQMAAJMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='BPlot' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARQMAAJMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Initialise' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARQMAAJMDAAA' zoom='75' scrollx='0' scrolly='865' flags='0' />
		<view type='0' name='SetPostProc' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARQMAAJMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SetForegroundColour' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARQMAAJMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='InitSim' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARQMAAJMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SetBackgroundColour' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARQMAAJMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ClearDisplay' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARQMAAJMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SetFGColourSim' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARQMAAJMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ClearSim' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARQMAAJMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='LCD_Write_Reg' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARQMAAJMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='prv_init' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARQMAAJMDAAA' zoom='85' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='BacklightOff' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARQMAAJMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='BacklightOn' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARQMAAJMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ReadASCIILUT' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARQMAAJMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='FastPlot' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARQMAAJMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='FastBPlot' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARQMAAJMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SetFontScaler' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARQMAAJMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='DrawRoundedRectangle' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARQMAAJMDAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ReadFontWidth' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAARQMAAJMDAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
