<root>
<document scada='0' schema='102' license='1,79829088,0H6AEK' title='' description='' fcversion='590336' target='ESP.ESP32.ESP32_WROOM_32' >
	<config data='' clkspd='240000000' simspd='0' usewdt='0' constif='0' commport='3' Use3V3='0' />
	<plugins >
		<dll_models enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug >
		<watch expr='Initialise.p' />
		<watch expr='Initialise.cmd' />
		<watch expr='Initialise.delay' />
		<watch expr='Initialise.i' />
		<watch expr='Initialise.n' />
		<watch expr='Initialise.nArgs' />
		<watch expr='Initialise.INIT' />
		<watch expr='Initialise.data' />
	</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='1' />
			<data name='CalculatedCommsDelay' value='1' />
			<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='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='c25860c3-0885-44c8-bcc9-16e2a842e82d' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' category2='' category3='' bIs2dOnly='0' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='1' scadaCompatible='0' embeddedCompatible='1' iconpath='' />
		<gdiopts FullContainer='1' FullTransparency='1' ShowGdi='1' ShowOpengl='1' />
		<component class_type='root' codename='panel' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='0' poslock='0' comp2dType='0' >
			<resources />
			<properties >
				<property name='width' target='width' typeid='21' hidden='0' locked='0' info='' />
				<property name='height' target='height' typeid='21' hidden='0' locked='0' info='' />
				<property name='Connections' folder='cal_spi1::property_2' hidden='0' >
					<property name='Channel' target='cal_spi1::CHANNEL' typeid='16' hidden='0' locked='0' info='SPI Channel selector' filter='000Software
001Channel 1
002Channel 2
' />
					<property name='MOSI' target='cal_spi1::MOSI' typeid='5' hidden='0' locked='0' info='SPI Data Out Pin SDO - Also Known as Master Out Slave In (MOSI) when used in Master mode.' />
					<property name='MOSI Remap Pin' target='cal_spi1::MOSIPins' typeid='16' hidden='1' locked='0' info='Select which the target pin to assign the MOSI hardware pin functionality.' filter='000$PORTB.4
001$PORTB.7
002$PORTB.2
003$PORTB.3
004$PORTB.0
005$PORTB.1
006$PORTA.25
007$PORTA.26
008$PORTA.27
009$PORTA.14
010$PORTA.12
011$PORTA.13
012$PORTA.9
013$PORTA.10
014$PORTA.11
015$PORTA.6
016$PORTA.7
017$PORTA.8
018$PORTA.15
019$PORTA.2
020$PORTA.0
021$PORTA.4
022$PORTA.16
023$PORTA.17
024$PORTA.5
025$PORTA.18
026$PORTA.19
027$PORTA.21
028$PORTA.3
029$PORTA.1
030$PORTA.22
031$PORTA.23' />
					<property name='MISO' target='cal_spi1::MISO' typeid='5' hidden='0' locked='0' info='SPI Data In Pin SDI - Also Known as Master In Slave Out (MISO) when used in Master mode.' />
					<property name='MISO Remap Pin' target='cal_spi1::MISOPins' typeid='16' hidden='1' locked='0' info='Select which the target pin to assign the MISO hardware pin functionality.' filter='000$PORTB.4
001$PORTB.7
002$PORTB.2
003$PORTB.3
004$PORTB.0
005$PORTB.1
006$PORTA.25
007$PORTA.26
008$PORTA.27
009$PORTA.14
010$PORTA.12
011$PORTA.13
012$PORTA.9
013$PORTA.10
014$PORTA.11
015$PORTA.6
016$PORTA.7
017$PORTA.8
018$PORTA.15
019$PORTA.2
020$PORTA.0
021$PORTA.4
022$PORTA.16
023$PORTA.17
024$PORTA.5
025$PORTA.18
026$PORTA.19
027$PORTA.21
028$PORTA.3
029$PORTA.1
030$PORTA.22
031$PORTA.23' />
					<property name='CLK' target='cal_spi1::CLK' typeid='5' hidden='0' locked='0' info='SPI Clock Pin CLK - The Clock signal is driven by the SPI master.' />
					<property name='CLK Remap Pin' target='cal_spi1::CLKPins' typeid='16' hidden='1' locked='0' info='Select which the target pin to assign the CLK hardware pin functionality.' filter='000$PORTB.4
001$PORTB.7
002$PORTB.2
003$PORTB.3
004$PORTB.0
005$PORTB.1
006$PORTA.25
007$PORTA.26
008$PORTA.27
009$PORTA.14
010$PORTA.12
011$PORTA.13
012$PORTA.9
013$PORTA.10
014$PORTA.11
015$PORTA.6
016$PORTA.7
017$PORTA.8
018$PORTA.15
019$PORTA.2
020$PORTA.0
021$PORTA.4
022$PORTA.16
023$PORTA.17
024$PORTA.5
025$PORTA.18
026$PORTA.19
027$PORTA.21
028$PORTA.3
029$PORTA.1
030$PORTA.22
031$PORTA.23' />
					<property name='Use Auto CS' target='cal_spi1::UseAutoCS' typeid='7' hidden='0' locked='0' info='Allow the SPI component to manage the CS pin for us in Master mode.
On initialise the CS pin is automatically set high to disable the remote SPI device.
Set to No if you want to create a component with multiple CS pins or if you want to manage the CS pin yourself.' />
					<property name='Use Slave Select' target='cal_spi1::UseCS' typeid='7' hidden='1' locked='0' info='Allows the SPI Slave to monitor the hardware SS pin to enable the SPI perpheral.
No: SS pin will not be used and can be used as standard IO
Yes: SS pin will be used to automatically enable the SPI interface when low.' />
					<property name='CS / SS' target='cal_spi1::SS' typeid='5' hidden='1' locked='0' info='Chip Select / Slave Select Pin 
Master Mode: General purpose output pin used to select the remote SPI device.
Slave Mode: Hardware chip select pin input used to select the SPI device.
' />
					<property name='CS Polarity' target='cal_spi1::CSPolarity' typeid='16' hidden='1' locked='0' info='' filter='000Active Low
001Active High' />
					<property name='SS Remap Pin' target='cal_spi1::SSPins' typeid='16' hidden='1' locked='0' info='Select which the target pin to assign the SS hardware pin functionality.' />
					<property name='Alt SS Pin' target='cal_spi1::AltSSPin' typeid='7' hidden='1' locked='0' info='Allows an alternative SS hardware pin to be used.' />
					<property name='DC / A0' target='a0' typeid='5' hidden='0' locked='0' info='' />
					<property name='Reset' target='reset' typeid='5' hidden='0' locked='0' info='' />
					<property name='LED' target='led' typeid='5' hidden='0' locked='0' info='' />
					<property name='CS' target='cs' typeid='5' hidden='0' locked='0' info='' />
				</property>
				<property name='Options' folder='cal_spi1::property_3' hidden='0' >
					<property name='Mode' target='cal_spi1::Mode' typeid='16' hidden='0' locked='0' info='Configures the mode of the SPI component.
Currently only Master mode is supported.' filter='000Master
001Slave' />
					<property name='Prescale' target='cal_spi1::PR_SCALE' typeid='16' hidden='0' locked='0' info='Prescale option selector' filter='80080 MHz
70070 MHz
60060 MHz
50050 MHz
40040 MHz
30030 MHz
25025 MHz
20020 MHz
15015 MHz
10010 MHz
0808 MHz
0606 MHz
0505 MHz
0404 MHz
0303 MHz
0252.5 MHz
0202 MHz
0151.5 MHz
0201 MHz
008800 KHz
007700 KHz
006600 KHz
005500 KHz
004400 KHz
003300 KHz
002200 KHz
001100 KHz
' />
					<property name='Clock Phase' target='cal_spi1::CKE' typeid='16' hidden='0' locked='0' info='Clock Phase (data change edge) selection' filter='000Leading Edge
001Trailing Edge' />
					<property name='Clock Polarity' target='cal_spi1::CKP' typeid='16' hidden='0' locked='0' info='Clock Polarity setting, inactive (idle) state' filter='000Idle Low
001Idle High' />
					<property name='Sample Point' target='cal_spi1::SMP' typeid='16' hidden='0' locked='0' info='Data bit read sample point' filter='000Middle
001End' />
					<property name='Background' target='bg' typeid='1' hidden='0' locked='0' info='' />
					<property name='Foreground' target='fg' typeid='1' hidden='0' locked='0' info='' />
				</property>
			</properties>
			<values >
				<value target='width' data='128' />
				<value target='height' data='160' />
				<value target='cal_spi1::CHANNEL' data='000' />
				<value target='cal_spi1::MOSI' data='$PORTA.23' />
				<value target='cal_spi1::MOSIPins' data='031' />
				<value target='cal_spi1::MISO' data='$PORTA.10' />
				<value target='cal_spi1::MISOPins' data='013' />
				<value target='cal_spi1::CLK' data='$PORTA.21' />
				<value target='cal_spi1::CLKPins' data='027' />
				<value target='cal_spi1::UseAutoCS' data='0' />
				<value target='cal_spi1::UseCS' data='0' />
				<value target='cal_spi1::SS' data='$PORTD.7' />
				<value target='cal_spi1::CSPolarity' data='000' />
				<value target='cal_spi1::SSPins' data='000' />
				<value target='cal_spi1::AltSSPin' data='0' />
				<value target='a0' data='$PORTA.2' />
				<value target='reset' data='$PORTB.1' />
				<value target='led' data='$PORTA.15' />
				<value target='cs' data='$PORTA.19' />
				<value target='cal_spi1::Mode' data='000' />
				<value target='cal_spi1::PR_SCALE' data='001' />
				<value target='cal_spi1::CKE' data='000' />
				<value target='cal_spi1::CKP' data='001' />
				<value target='cal_spi1::SMP' data='000' />
				<value target='bg' data='0' />
				<value target='fg' data='10551295' />
			</values>
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='false' type='b1' description='' isconst='1' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='colors' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' >
						<array size='256' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='background' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='MAX_ITERATIONS' type='s16' description='Maximum no.  of iterations (&lt;256) to test' isconst='1' isHidden='0' isinit='1' usrinit='100' setinit='100' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='foreground' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='true' type='b1' description='' isconst='1' isHidden='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Reset' description='Reset the display by pulsing the reset pin' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='TRESW' type='s16' description='' isconst='1' isHidden='0' isinit='1' usrinit='10' setinit='10' />
						<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
							<exp exp='reset = 1' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='208' cmdcolor_sec='3289855' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' exp='1' type='2' />
						<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
							<exp exp='reset = 0' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='208' cmdcolor_sec='3289855' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' exp='4' type='0' />
						<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
							<exp exp='reset = 1' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='208' cmdcolor_sec='3289855' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' exp='.TRESW' type='0' />
						<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
							<exp exp='reset = 0' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='208' cmdcolor_sec='3289855' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' exp='.TRESW' type='0' />
						<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
							<exp exp='reset = 1' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='208' cmdcolor_sec='3289855' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' exp='1' type='2' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Clear' description='' 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='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
							<exp exp='.temp = foreground' />
							<exp exp='foreground = background' />
							<exp exp='' />
						</command>
						<command class_type='call' title='User Macro' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='FillRect' >
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='width' />
							<argument exp='height' />
							<argument exp='background' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
							<exp exp='foreground = .temp' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='FillRect' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='x' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='y' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='w' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='h' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='colour' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='i' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='loop' title='Loop' cmdcolor='572159' cmdcolor_sec='3861759' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' type='2' forvar='.i' exp='.h' >
							<flowline >
								<command class_type='call' title='User Macro' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='SafeLine' >
									<argument exp='.x' />
									<argument exp='.w' />
									<argument exp='.y + .i' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SendCommand' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='cmd' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='data' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='256' />
						</param>
						<param name='length' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='c' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='1' />
						</local>
						<local name='i' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
							<exp exp='a0 = 0' />
							<exp exp='cs = 0' />
						</command>
						<command class_type='call' title='Component Macro' disable='1' cmdcolor='208' cmdcolor_sec='3289855' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' component='cal_spi1' macro='Master_Byte' >
							<argument exp='.cmd' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
							<exp exp='.c[0] = .cmd' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='208' cmdcolor_sec='3289855' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' component='cal_spi1' macro='Master_Transaction' >
							<argument exp='.c' />
							<argument exp='1' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
							<exp exp='a0 = 1' />
						</command>
						<command class_type='loop' title='Loop' disable='1' cmdcolor='572159' cmdcolor_sec='3861759' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' type='2' forvar='.i' exp='.length' >
							<flowline >
								<command class_type='call' title='Component Macro' cmdcolor='208' cmdcolor_sec='3289855' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' component='cal_spi1' macro='Master_Byte' >
									<argument exp='.data[.i]' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
							<exp exp='cs = 0' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='208' cmdcolor_sec='3289855' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' component='cal_spi1' macro='Master_Transaction' >
							<argument exp='.data' />
							<argument exp='.length' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
							<exp exp='cs = 1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='CopyBMRaw' description='Copy a bitmap from raw format (as created by UTFTConverter from https://github.com/cirquit/UTFTConverter' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='x' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='y' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='w' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='h' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='file' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<local name='ret' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='xpos' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='buf' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='2' />
						</local>
						<local name='digit' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='v' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Component Macro' cmdcolor='208' cmdcolor_sec='3289855' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' component='FileSD1' macro='OpenFile' >
							<return exp='.ret' />
							<argument exp='.file' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='143324' cmdcolor_sec='3432959' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' exp='.ret = 0' swap='0' >
							<flowline >
								<command class_type='call' title='Call Macro' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='SetArea' >
									<argument exp='.x' />
									<argument exp='.y' />
									<argument exp='.w' />
									<argument exp='.h' />
								</command>
								<command class_type='loop' title='Loop' cmdcolor='572159' cmdcolor_sec='3861759' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' type='2' exp='.h' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
											<exp exp='.xpos = 0' />
										</command>
										<command class_type='loop' title='Loop' cmdcolor='572159' cmdcolor_sec='3861759' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' type='0' exp='.xpos &lt; .w' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
													<exp exp='.v = 0' />
												</command>
												<command class_type='loop' title='Loop' cmdcolor='572159' cmdcolor_sec='3861759' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' type='2' exp='4' >
													<flowline >
														<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
															<exp exp='.v = .v &lt;&lt; 4' />
														</command>
														<command class_type='call' title='Component Macro' cmdcolor='208' cmdcolor_sec='3289855' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' component='FileSD1' macro='ReadByteFromFile' >
															<return exp='.digit' />
														</command>
														<command class_type='decision' title='Decision' cmdcolor='143324' cmdcolor_sec='3432959' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' exp='.digit &gt;= &apos;A&apos;' swap='0' >
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
																	<exp exp='.v = .v | (.digit - &apos;A&apos; + 10)' />
																</command>
															</flowline>
															<flowline >
																<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
																	<exp exp='.v = .v | (.digit - &apos;0&apos;)' />
																</command>
															</flowline>
														</command>
													</flowline>
												</command>
												<command class_type='loop' title='Loop' cmdcolor='572159' cmdcolor_sec='3861759' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' type='1' exp='(.digit = &apos; &apos;) || (.digit = &apos;\n&apos;)' start='0' >
													<flowline >
														<command class_type='call' title='Skip the space' cmdcolor='208' cmdcolor_sec='3289855' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' component='FileSD1' macro='ReadByteFromFile' >
															<return exp='.digit' />
														</command>
													</flowline>
												</command>
												<command class_type='call' title='User Macro' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='SendWord' >
													<argument exp='.v' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
													<exp exp='.xpos = .xpos + 1' />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SetArea' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='x' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='y' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='width' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='height' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='data' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='4' />
						</local>
						<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
							<exp exp='.data[0] = 0' />
							<exp exp='.data[1] = .x' />
							<exp exp='.data[2] = 0' />
							<exp exp='.data[3] = .x + .width - 1' />
						</command>
						<command class_type='call' title='User Macro' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='SendCommand' >
							<argument exp='0x2a' />
							<argument exp='.data' />
							<argument exp='4' />
						</command>
						<command class_type='calculation' title='Set height of region' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
							<exp exp='.data[0] = 0' />
							<exp exp='.data[1] = .y' />
							<exp exp='.data[2] = 0' />
							<exp exp='.data[3] = .y + .height - 1' />
							<exp exp='' />
						</command>
						<command class_type='call' title='User Macro' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='SendCommand' >
							<argument exp='0x2b' />
							<argument exp='.data' />
							<argument exp='4' />
						</command>
						<command class_type='call' title='User Macro' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='SendCommand' >
							<argument exp='0x2c' />
							<argument exp='.data' />
							<argument exp='0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Plot' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='x' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='y' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Macro' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='SetArea' >
							<argument exp='.x' />
							<argument exp='.y' />
							<argument exp='1' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='SendWord' >
							<argument exp='foreground' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Wheel' description='' statediag='0' >
						<return name='Return' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='pos' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
							<exp exp='.pos = 255 - .pos' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='143324' cmdcolor_sec='3432959' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' exp='.pos &lt; 85' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
									<exp exp='.Return = Color565 (255 - .pos * 3,0, .pos * 3)' />
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='143324' cmdcolor_sec='3432959' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' exp='.pos &lt; 170' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
											<exp exp='.pos = .pos - 85' />
											<exp exp='.Return = Color565 (0, .pos * 3,255 - .pos * 3)' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
											<exp exp='.pos = .pos - 170' />
											<exp exp='.Return = Color565 (.pos * 3,255 - .pos * 3,0)' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Color565' description='' statediag='0' >
						<return name='Return' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='r' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='g' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='b' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
							<exp exp='.Return = (.r &amp; 0xF8)' />
							<exp exp='.Return = (.Return &lt;&lt; 8) | ((.g &amp; 0xFC) &lt;&lt; 3) | (.b &gt;&gt; 3)' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='FeedTheDog' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='native' title='C Code' ccode='// feed dog 0
  TIMERG0.wdt_wprotect=TIMG_WDT_WKEY_VALUE; // write enable
  TIMERG0.wdt_feed=1;                       // feed dog
  TIMERG0.wdt_wprotect=0;                   // write protect
  // feed dog 1
  TIMERG1.wdt_wprotect=TIMG_WDT_WKEY_VALUE; // write enable
  TIMERG1.wdt_feed=1;                       // feed dog
  TIMERG1.wdt_wprotect=0;                   // write protect' cmdcolor='500730' cmdcolor_sec='3790335' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' language='C' />
					</flowline>
				</macro>
				<macro >
					<flowline name='SendData' 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='&quot;&quot;' setinit='' >
							<array size='256' />
						</param>
						<param name='length' type='u16' description='Length of data to send' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='i' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
							<exp exp='cs = 0' />
						</command>
						<command class_type='call' title='Component Macro' cmdcolor='208' cmdcolor_sec='3289855' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' component='cal_spi1' macro='Master_Transaction' >
							<argument exp='.data' />
							<argument exp='.length' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
							<exp exp='cs = 1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SetOrientation' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='dir' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='d' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='1' />
						</local>
						<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
							<exp exp='.d[0] = 0xC0' />
						</command>
						<command class_type='call' title='User Macro' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='SendCommand' >
							<argument exp='0x36' />
							<argument exp='.d' />
							<argument exp='1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Backlight' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='on' type='b1' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
							<exp exp='led = .on' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SafeLine' description='Draw a horizontal line clipped to the viewport if necessary' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='xs' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='w' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='y' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='data' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='256' />
						</local>
						<local name='i' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='lo' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='hi' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='143324' cmdcolor_sec='3432959' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' exp='.xs &lt; 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
									<exp exp='.xs = 0' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='143324' cmdcolor_sec='3432959' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' exp='.xs + .w &gt; width' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
									<exp exp='.w = width - .xs' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='143324' cmdcolor_sec='3432959' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' exp='(.y &lt; height) &amp;&amp; (.y &gt;= 0)' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
									<exp exp='.hi = foreground &gt;&gt; 8' />
									<exp exp='.lo = foreground' />
								</command>
								<command class_type='loop' title='Loop' cmdcolor='572159' cmdcolor_sec='3861759' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' type='2' forvar='.i' exp='.w' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
											<exp exp='.data[.i * 2] = .hi' />
											<exp exp='.data[.i * 2 + 1] = .lo' />
										</command>
									</flowline>
								</command>
								<command class_type='call' title='Call Macro' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='SetArea' >
									<argument exp='.xs' />
									<argument exp='.y' />
									<argument exp='.w' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='Call Macro' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='SendData' >
									<argument exp='.data' />
									<argument exp='.w * 2' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Print' description='Print a string' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='s' type='T8*' description='The string to display' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<param name='x' type='u16' description='x address to display at' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='y' type='u16' description='y address to display at' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='xscale' type='u8' description='Multipliers for x and y' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='yscale' type='u8' description='Multipliers for x and y' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='drawbackground' type='b1' description='Set to true to draw the background as well as foreground' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='i' type='u8' description='Loop counters' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='j' type='u8' description='Loop counters' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='mask' type='u8' description='Mask and pattern to write to buffer' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='c' type='u16' description='Current character' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='addr' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='dev' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='caddr' type='s16' description='Address of current character data' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='d' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='t' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='len' type='u8' description='Length of the string' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='xpos' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='ypos' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='cwidth' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='cheight' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
							<exp exp='.len = Length$ (.s)' />
							<exp exp='.cwidth = 8 * .xscale' />
							<exp exp='.cheight = 8 * .yscale' />
							<exp exp='.xpos = .x' />
						</command>
						<command class_type='loop' title='For each character in string' cmdcolor='572159' cmdcolor_sec='3861759' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' type='2' forvar='.i' exp='.len' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
									<exp exp='.c = .s[.i]' />
									<exp exp='.caddr = (.c - 32) * 8' />
									<exp exp='.ypos = .y' />
								</command>
								<command class_type='loop' title='for each row of character' cmdcolor='572159' cmdcolor_sec='3861759' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' type='2' forvar='.t' exp='8' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
											<exp exp='.d = CharSet :: GetInt (.caddr + .t)' />
											<exp exp='.mask = 0x1' />
											<exp exp='' />
										</command>
										<command class_type='loop' title='For each col of character' cmdcolor='572159' cmdcolor_sec='3861759' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' type='2' forvar='.j' exp='8' >
											<flowline >
												<command class_type='decision' title='Decision' cmdcolor='143324' cmdcolor_sec='3432959' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' exp='.d &amp; .mask' swap='0' >
													<flowline >
														<command class_type='call' title='Call Macro' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='SafePlot' >
															<argument exp='.xpos' />
															<argument exp='.ypos' />
														</command>
													</flowline>
													<flowline >
														<command class_type='decision' title='Decision' cmdcolor='143324' cmdcolor_sec='3432959' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' exp='.drawbackground' swap='0' >
															<flowline >
																<command class_type='call' title='Call Macro' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='SafePlot' >
																	<argument exp='.xpos' />
																	<argument exp='.ypos' />
																</command>
															</flowline>
															<flowline />
														</command>
													</flowline>
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
													<exp exp='.mask = .mask &lt;&lt; 1' />
													<exp exp='.xpos = .xpos + .xscale' />
												</command>
											</flowline>
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
											<exp exp='.ypos = .ypos + .yscale' />
											<exp exp='.xpos = .xpos - .cwidth' />
										</command>
									</flowline>
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
									<exp exp='.xpos = .xpos + .cwidth' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='143324' cmdcolor_sec='3432959' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' exp='.xpos + .xscale &gt; width' swap='0' >
									<flowline >
										<command class_type='calculation' title='Move to next line' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
											<exp exp='.y = .y + .cheight + .yscale' />
											<exp exp='.xpos = .x' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Circle' description='Draw a circle in foreground colour or a filled disk' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='cx' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='cy' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='radius' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='filled' type='b1' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='xchange' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='ychange' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<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='' />
						<local name='radiusError' type='s16' 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='' />
						<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
							<exp exp='.x = .radius' />
							<exp exp='.y = 0' />
							<exp exp='.radiusError = 0' />
							<exp exp='.xchange = 1 - 2 * .radius' />
							<exp exp='.ychange = 1' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='572159' cmdcolor_sec='3861759' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' type='0' exp='.x &gt;= .y' >
							<flowline >
								<command class_type='decision' title='Outline or solid?' cmdcolor='143324' cmdcolor_sec='3432959' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' exp='.filled' swap='0' >
									<flowline >
										<command class_type='call' title='Draw Line quads 5 and 8' ccode='// Name: li, Type: Call Macro: SafeLine(.lineStart, .lineEnd, .cy + y)
FCM_SafeLine(FCL_LINESTART, FCL_LINEEND, FCL_CY + FCV_Y);
' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='SafeLine' >
											<argument exp='.cx - .x' />
											<argument exp='.cx + .x' />
											<argument exp='.cy + .y' />
										</command>
										<command class_type='call' title='Draw Line quads 1 and 4' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='SafeLine' >
											<argument exp='.cx - .x' />
											<argument exp='.cx + .x' />
											<argument exp='.cy - .y' />
										</command>
										<command class_type='call' title='Draw line top two quads' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='SafeLine' >
											<argument exp='.cx - .y' />
											<argument exp='.cx +.y' />
											<argument exp='.cy - .x' />
										</command>
										<command class_type='call' title='Draw line bottom quads' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='SafeLine' >
											<argument exp='.cx - .y' />
											<argument exp='.cx +.y' />
											<argument exp='.cy + .x' />
										</command>
									</flowline>
									<flowline >
										<command class_type='call' title='Call Macro' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='SafePlot' >
											<argument exp='.cx + .x' />
											<argument exp='.cy + .y' />
										</command>
										<command class_type='call' title='Call Macro' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='SafePlot' >
											<argument exp='.cx - .x' />
											<argument exp='.cy + .y' />
										</command>
										<command class_type='call' title='Call Macro' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='SafePlot' >
											<argument exp='.cx - .x' />
											<argument exp='.cy - .y' />
										</command>
										<command class_type='call' title='Call Macro' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='SafePlot' >
											<argument exp='.cx + .x' />
											<argument exp='.cy - .y' />
										</command>
										<command class_type='call' title='Call Macro' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='SafePlot' >
											<argument exp='.cx + .y' />
											<argument exp='.cy + .x' />
										</command>
										<command class_type='call' title='Call Macro' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='SafePlot' >
											<argument exp='.cx - .y' />
											<argument exp='.cy + .x' />
										</command>
										<command class_type='call' title='Call Macro' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='SafePlot' >
											<argument exp='.cx - .y' />
											<argument exp='.cy - .x' />
										</command>
										<command class_type='call' title='Call Macro' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='SafePlot' >
											<argument exp='.cx + .y' />
											<argument exp='.cy - .x' />
										</command>
									</flowline>
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
									<exp exp='.y = .y + 1' />
									<exp exp='.radiusError = .radiusError + .ychange' />
									<exp exp='.ychange = .ychange + 2' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='143324' cmdcolor_sec='3432959' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' exp='2 * .radiusError + .xchange &gt; 0' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
											<exp exp='.x = .x - 1' />
											<exp exp='.radiusError = .radiusError + .xchange' />
											<exp exp='.xchange = .xchange + 2' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Copy16bitBitmap' description='Copy bitmap data in 565 16 bit format.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='x' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='y' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='w' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='h' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='filename' type='T8' description='Filename in 8.3 format SD must be initiialised' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<local name='xpos' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='b' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='ret' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='buf' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='2' />
						</local>
						<command class_type='call' title='Component Macro' cmdcolor='208' cmdcolor_sec='3289855' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' component='FileSD1' macro='OpenFile' >
							<return exp='.ret' />
							<argument exp='.filename' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='143324' cmdcolor_sec='3432959' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' exp='.ret = 0' swap='0' >
							<flowline >
								<command class_type='call' title='Call Macro' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='SetArea' >
									<argument exp='.x' />
									<argument exp='.y' />
									<argument exp='.w' />
									<argument exp='.h' />
								</command>
								<command class_type='loop' title='Loop' cmdcolor='572159' cmdcolor_sec='3861759' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' type='2' exp='.h' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
											<exp exp='.xpos = 0' />
										</command>
										<command class_type='loop' title='Loop' cmdcolor='572159' cmdcolor_sec='3861759' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' type='0' exp='.xpos &lt; .w' >
											<flowline >
												<command class_type='call' title='Component Macro' cmdcolor='208' cmdcolor_sec='3289855' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' component='FileSD1' macro='ReadByteFromFile' >
													<return exp='.buf[0]' />
												</command>
												<command class_type='call' title='Component Macro' cmdcolor='208' cmdcolor_sec='3289855' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' component='FileSD1' macro='ReadByteFromFile' >
													<return exp='.buf[1]' />
												</command>
												<command class_type='call' title='User Macro' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='SendData' >
													<argument exp='.buf' />
													<argument exp='2' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
													<exp exp='.xpos = .xpos + 1' />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SendWord' 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='' />
						<local name='buf' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='2' />
						</local>
						<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
							<exp exp='.buf[0] = .data &gt;&gt; 8' />
							<exp exp='.buf[1] = .data' />
						</command>
						<command class_type='call' title='User Macro' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='SendData' >
							<argument exp='.buf' />
							<argument exp='2' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SafePlot' description='Plot a point - but check that it is on screen ' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='x' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='y' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='143324' cmdcolor_sec='3432959' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' exp='(.x &gt; 0) &amp; (.x &lt; width - 1) &amp; (.y &gt; 0) &amp; (.y &lt; height - 1)' swap='0' >
							<flowline >
								<command class_type='call' title='Call Macro' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='SetArea' >
									<argument exp='.x' />
									<argument exp='.y' />
									<argument exp='1' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='Call Macro' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='SendWord' >
									<argument exp='foreground' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Mandelbrot' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='startX' type='f32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<param name='startY' type='f32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<param name='endX' type='f32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<param name='endY' type='f32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<local name='yStep' type='f32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<local name='xStep' type='f32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<local name='x' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='y' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='imag' type='f32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<local name='iters' type='u32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
							<exp exp='.xStep = (.endX - .startX) / width' />
							<exp exp='.yStep = (.endY - .startY) / height' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='572159' cmdcolor_sec='3861759' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' type='2' forvar='.x' exp='width' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
									<exp exp='.imag = .startY' />
								</command>
								<command class_type='loop' title='Loop' cmdcolor='572159' cmdcolor_sec='3861759' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' type='2' forvar='.y' exp='height' >
									<flowline >
										<command class_type='call' title='User Macro' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='Iter' >
											<return exp='.iters' />
											<argument exp='.startX' />
											<argument exp='.imag' />
											<argument exp='MAX_ITERATIONS' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
											<exp exp='foreground = colors[.iters]' />
										</command>
										<command class_type='call' title='User Macro' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='Plot' >
											<argument exp='.x' />
											<argument exp='.y' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
											<exp exp='.imag = .imag + .yStep' />
										</command>
									</flowline>
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
									<exp exp='.startX = .startX + .xStep' />
								</command>
							</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='' />
						<local name='i' type='s16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='colour' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='sd' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='str' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<local name='offset' type='u8' description='Offset for color table' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='call' title='User Macro' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='Initialise' />
						<command class_type='call' title='User Macro' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='Backlight' >
							<argument exp='true' />
						</command>
						<command class_type='call' title='User Macro' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='Clear' />
						<command class_type='loop' title='Loop' cmdcolor='572159' cmdcolor_sec='3861759' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' type='0' exp='1' >
							<flowline >
								<command class_type='loop' title='Generate some colors' cmdcolor='572159' cmdcolor_sec='3861759' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' type='2' forvar='.i' exp='MAX_ITERATIONS' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
											<exp exp='colors[.i] = Random ()' />
										</command>
									</flowline>
								</command>
								<command class_type='call' title='User Macro' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='FeedTheDog' />
								<command class_type='call' title='User Macro' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='Mandelbrot' >
									<argument exp='0.8' />
									<argument exp='-1.2' />
									<argument exp='-1.9' />
									<argument exp='1.2' />
								</command>
								<command class_type='call' title='User Macro' disable='1' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='FeedTheDog' />
								<command class_type='call' title='Draw in reverse' disable='1' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='Mandelbrot' >
									<argument exp='-1.9' />
									<argument exp='-1.2' />
									<argument exp='0.8' />
									<argument exp='1.2' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Component Macro' textarea='49,-25,49,-25' cmdcolor='208' cmdcolor_sec='3289855' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' component='cal_spi1' macro='Master_Uninit' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Iter' description='' statediag='0' >
						<return name='Return' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='real' type='f32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<param name='imag' type='f32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<param name='max' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='zReal' type='f32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<local name='zImag' type='f32' description='' isconst='0' isHidden='0' isinit='1' usrinit='0.0' setinit='0.0' />
						<local name='iters' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='r2' type='f32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<local name='i2' type='f32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
							<exp exp='.zImag = .imag' />
							<exp exp='.zReal = .real' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='572159' cmdcolor_sec='3861759' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' type='1' exp='(.iters &gt; .max) || (.i2 + .r2 &gt; 4.0)' start='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
									<exp exp='.r2 = .zReal * .zReal' />
									<exp exp='.i2 = .zImag * .zImag' />
									<exp exp='.zImag = (.zReal + .zReal) * .zImag + .imag' />
									<exp exp='.zReal = .r2 - .i2 + .real' />
									<exp exp='.iters = .iters + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
							<exp exp='.Return = .iters' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Initialise' description='Initialise the ST7735 display' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='n' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='cmd' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='nArgs' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='delay' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='i' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
						<local name='data' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='16' />
						</local>
						<local name='p' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Component Macro' cmdcolor='208' cmdcolor_sec='3289855' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' component='cal_spi1' macro='Master_Init' />
						<command class_type='delay' title='Delay' cmdcolor='208' cmdcolor_sec='3289855' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' exp='100' type='1' />
						<command class_type='call' title='Not needed if reset connected to VCC or Reset pin on arduino' disable='1' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='Reset' />
						<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
							<exp exp='.n = init :: GetInt (.i)' />
							<exp exp='.i = .i + 1' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='572159' cmdcolor_sec='3861759' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' type='2' exp='.n' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
									<exp exp='.cmd = init :: GetInt (.i)' />
									<exp exp='.nArgs = init :: GetInt (.i + 1)' />
									<exp exp='.delay = .nArgs &amp; 0x80' />
									<exp exp='.nArgs = .nArgs &amp; 0x7f' />
									<exp exp='.i = .i + 2' />
								</command>
								<command class_type='loop' title='Loop' cmdcolor='572159' cmdcolor_sec='3861759' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' type='2' forvar='.p' exp='.nArgs' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
											<exp exp='.data[.p] = init :: GetInt (.i)' />
											<exp exp='.i = .i + 1' />
										</command>
									</flowline>
								</command>
								<command class_type='call' title='User Macro' break='1' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='SendCommand' >
									<argument exp='.cmd' />
									<argument exp='.data' />
									<argument exp='.nArgs' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='143324' cmdcolor_sec='3432959' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' exp='.delay' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
											<exp exp='.delay = init :: GetInt (.i)' />
											<exp exp='.i = .i + 1' />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='143324' cmdcolor_sec='3432959' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' exp='.delay = 255' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
													<exp exp='.delay = 500' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='delay' title='Delay' cmdcolor='208' cmdcolor_sec='3289855' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' exp='.delay' type='1' />
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
							<exp exp='.data[0] = 0xC0' />
						</command>
						<command class_type='call' title='User Macro' cmdcolor='524957' cmdcolor_sec='3814607' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' macro='SendCommand' >
							<argument exp='0x36' />
							<argument exp='.data' />
							<argument exp='1' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='429300' cmdcolor_sec='3718911' cmdcolor_txt='0' cmdgradient='1' cmdopacity='1' >
							<exp exp='background = bg' />
							<exp exp='foreground = fg' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='208' cmdcolor_sec='3289855' cmdcolor_txt='16777215' cmdgradient='1' cmdopacity='1' exp='100' type='1' />
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='c67171df-0ad6-4b11-8361-cfe14b072847' vmin='1' vmaj='2' codename='cal_spi1' 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='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='ENABLED' data='1' />
					<value target='REF' data='1' />
					<value target='CHANNEL' data='000' />
					<value target='MOSI' data='$PORTA.23' />
					<value target='MOSIPins' data='031' />
					<value target='MISO' data='$PORTA.10' />
					<value target='MISOPins' data='013' />
					<value target='CLK' data='$PORTA.21' />
					<value target='CLKPins' data='027' />
					<value target='UseAutoCS' data='0' />
					<value target='UseCS' data='0' />
					<value target='SS' data='$PORTD.7' />
					<value target='CSPolarity' data='000' />
					<value target='SSPins' data='000' />
					<value target='AltSSPin' data='0' />
					<value target='Mode' data='000' />
					<value target='PR_SCALE' data='001' />
					<value target='CKE' data='000' />
					<value target='CKP' data='001' />
					<value target='SMP' data='000' />
					<value target='ScopeTraces' data='1' />
					<value target='ConsoleData' data='1' />
					<value target='Injector' data='000' />
					<value target='InjectorCS' data='0' />
					<value target='InjectorHandle' data='0' />
					<value target='InjectorChannel' data='0' />
					<value target='BMODE' data='1' />
					<value target='MOSI_PORT' data='$PORTA.23' />
					<value target='MOSI_TRIS' data='$PORTA.23' />
					<value target='MOSI_PIN' data='23' />
					<value target='MISO_PORT' data='$PORTA.10' />
					<value target='MISO_TRIS' data='$PORTA.10' />
					<value target='MISO_PIN' data='10' />
					<value target='SCK_PORT' data='$PORTA.21' />
					<value target='SCK_TRIS' data='$PORTA.21' />
					<value target='SCK_PIN' data='21' />
					<value target='SS_PORT' data='$PORTD.7' />
					<value target='SS_TRIS' data='$PORTD.7' />
					<value target='SS_PIN' data='7' />
					<value target='Remappable' data='1' />
					<value target='MOSIReg' data='031' />
					<value target='CLKREG' data='027' />
					<value target='MOSIRPNUM' data='1' />
					<value target='MOSIBank' data='' />
					<value target='MOSIBank2' data='' />
					<value target='CLKRPNUM' data='1' />
					<value target='CLKBank' data='' />
					<value target='MISORPREG' data='SPI2PPS' />
					<value target='MISOBank' data='' />
					<value target='SPIName' data='' />
					<value target='MISOReg' data='000' />
					<value target='SPIClock' data='' />
					<value target='MISOBank2' data='' />
					<value target='CLKBank2' data='' />
					<value target='ParentName' data='' />
					<value target='BitDelay' data='0' />
					<value target='ClockSpeed' data='240000000' />
					<value target='MasterDivider' data='1' />
					<value target='Sim' data='1' />
					<value target='CLKRPREG' data='' />
					<value target='SSRPREG' data='' />
					<value target='SSBank' data='' />
					<value target='SSBank2' data='' />
					<value target='AltSSReg' data='' />
					<value target='AltSSMask' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='dfb4d07a-3d70-45d5-83ef-07e3c95d86ab' vmin='7' vmaj='1' codename='init' x='0' y='0' z='3.1117' 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='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='StorageType' data='000' />
					<value target='Sign' data='000' />
					<value target='intfixed' data='21,
1, 0x80, 150, 
0x11, 0x80, 255, 
0xB1, 3, 1, 0x2c, 0x2d, 
0xB2, 3, 1, 0x2c, 0x2d,
0xB3, 6, 1, 0x2c, 0x2d, 1, 0x2c, 0x2d, 
0xB4, 1, 7, 
0xC0, 3, 0xa2, 2, 0x84, 
0xC1, 1, 0xc5,
0xC2, 2, 0x0A, 0, 
0xC3, 2, 0x8a, 0x2a,
0xc4, 2, 0x8a, 0xee,
0xC5, 1, 0x0e, 
0x20, 0,
0x36, 1, 0xc8,
0x3A, 1, 5,
0x2A, 4, 0, 0, 0, 0x7f, 
0x2b, 4, 0, 0, 0, 0x9f,
0xE0, 16, 2, 0x1c, 7, 0x12, 0x37, 0x32, 0x29, 0x2d, 0x29, 0x25, 0x2b, 0x39, 0, 1,3, 0x10,
0xE1, 16, 3, 0x1d, 7, 6, 0x2e, 0x2c, 0x29, 0x2d, 0x2e, 0x2e, 0x37, 0x3f, 0, 0, 2, 0x10, 
0x13, 0x80, 10, 
0x29, 0x80, 100' />
					<value target='floatfixed' data='' />
					<value target='NumVals' data='113' />
					<value target='fixedexp' data='0' />
					<value target='EmbedIntoC' data='1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='dfb4d07a-3d70-45d5-83ef-07e3c95d86ab' vmin='7' vmaj='1' codename='CharSet' x='0' y='0' z='1.0205' 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='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='StorageType' data='000' />
					<value target='Sign' data='000' />
					<value target='intfixed' data='0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x18,0x3C,0x3C,0x18,0x18,0x00,0x18,0x00,
0x36,0x36,0x00,0x00,0x00,0x00,0x00,0x00,
0x36,0x36,0x7F,0x36,0x7F,0x36,0x36,0x00,
0x0C,0x3E,0x03,0x1E,0x30,0x1F,0x0C,0x00,
0x00,0x63,0x33,0x18,0x0C,0x66,0x63,0x00,
0x1C,0x36,0x1C,0x6E,0x3B,0x33,0x6E,0x00,
0x06,0x06,0x03,0x00,0x00,0x00,0x00,0x00,
0x18,0x0C,0x06,0x06,0x06,0x0C,0x18,0x00,
0x06,0x0C,0x18,0x18,0x18,0x0C,0x06,0x00,
0x00,0x66,0x3C,0xFF,0x3C,0x66,0x00,0x00,
0x00,0x0C,0x0C,0x3F,0x0C,0x0C,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x0C,0x0C,0x06,
0x00,0x00,0x00,0x3F,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x0C,0x0C,0x00,
0x60,0x30,0x18,0x0C,0x06,0x03,0x01,0x00,
0x3E,0x63,0x73,0x7B,0x6F,0x67,0x3E,0x00,
0x0C,0x0E,0x0C,0x0C,0x0C,0x0C,0x3F,0x00,
0x1E,0x33,0x30,0x1C,0x06,0x33,0x3F,0x00,
0x1E,0x33,0x30,0x1C,0x30,0x33,0x1E,0x00,
0x38,0x3C,0x36,0x33,0x7F,0x30,0x78,0x00,
0x3F,0x03,0x1F,0x30,0x30,0x33,0x1E,0x00,
0x1C,0x06,0x03,0x1F,0x33,0x33,0x1E,0x00,
0x3F,0x33,0x30,0x18,0x0C,0x0C,0x0C,0x00,
0x1E,0x33,0x33,0x1E,0x33,0x33,0x1E,0x00,
0x1E,0x33,0x33,0x3E,0x30,0x18,0x0E,0x00,
0x00,0x0C,0x0C,0x00,0x00,0x0C,0x0C,0x00,
0x00,0x0C,0x0C,0x00,0x00,0x0C,0x0C,0x06,
0x18,0x0C,0x06,0x03,0x06,0x0C,0x18,0x00,
0x00,0x00,0x3F,0x00,0x00,0x3F,0x00,0x00,
0x06,0x0C,0x18,0x30,0x18,0x0C,0x06,0x00,
0x1E,0x33,0x30,0x18,0x0C,0x00,0x0C,0x00,
0x3E,0x63,0x7B,0x7B,0x7B,0x03,0x1E,0x00,
0x0C,0x1E,0x33,0x33,0x3F,0x33,0x33,0x00,
0x3F,0x66,0x66,0x3E,0x66,0x66,0x3F,0x00,
0x3C,0x66,0x03,0x03,0x03,0x66,0x3C,0x00,
0x1F,0x36,0x66,0x66,0x66,0x36,0x1F,0x00,
0x7F,0x46,0x16,0x1E,0x16,0x46,0x7F,0x00,
0x7F,0x46,0x16,0x1E,0x16,0x06,0x0F,0x00,
0x3C,0x66,0x03,0x03,0x73,0x66,0x7C,0x00,
0x33,0x33,0x33,0x3F,0x33,0x33,0x33,0x00,
0x1E,0x0C,0x0C,0x0C,0x0C,0x0C,0x1E,0x00,
0x78,0x30,0x30,0x30,0x33,0x33,0x1E,0x00,
0x67,0x66,0x36,0x1E,0x36,0x66,0x67,0x00,
0x0F,0x06,0x06,0x06,0x46,0x66,0x7F,0x00,
0x63,0x77,0x7F,0x7F,0x6B,0x63,0x63,0x00,
0x63,0x67,0x6F,0x7B,0x73,0x63,0x63,0x00,
0x1C,0x36,0x63,0x63,0x63,0x36,0x1C,0x00,
0x3F,0x66,0x66,0x3E,0x06,0x06,0x0F,0x00,
0x1E,0x33,0x33,0x33,0x3B,0x1E,0x38,0x00,
0x3F,0x66,0x66,0x3E,0x36,0x66,0x67,0x00,
0x1E,0x33,0x07,0x0E,0x38,0x33,0x1E,0x00,
0x3F,0x2D,0x0C,0x0C,0x0C,0x0C,0x1E,0x00,
0x33,0x33,0x33,0x33,0x33,0x33,0x3F,0x00,
0x33,0x33,0x33,0x33,0x33,0x1E,0x0C,0x00,
0x63,0x63,0x63,0x6B,0x7F,0x77,0x63,0x00,
0x63,0x63,0x36,0x1C,0x1C,0x36,0x63,0x00,
0x33,0x33,0x33,0x1E,0x0C,0x0C,0x1E,0x00,
0x7F,0x63,0x31,0x18,0x4C,0x66,0x7F,0x00,
0x1E,0x06,0x06,0x06,0x06,0x06,0x1E,0x00,
0x03,0x06,0x0C,0x18,0x30,0x60,0x40,0x00,
0x1E,0x18,0x18,0x18,0x18,0x18,0x1E,0x00,
0x08,0x1C,0x36,0x63,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,
0x0C,0x0C,0x18,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x1E,0x30,0x3E,0x33,0x6E,0x00,
0x07,0x06,0x06,0x3E,0x66,0x66,0x3B,0x00,
0x00,0x00,0x1E,0x33,0x03,0x33,0x1E,0x00,
0x38,0x30,0x30,0x3e,0x33,0x33,0x6E,0x00,
0x00,0x00,0x1E,0x33,0x3f,0x03,0x1E,0x00,
0x1C,0x36,0x06,0x0f,0x06,0x06,0x0F,0x00,
0x00,0x00,0x6E,0x33,0x33,0x3E,0x30,0x1F,
0x07,0x06,0x36,0x6E,0x66,0x66,0x67,0x00,
0x0C,0x00,0x0E,0x0C,0x0C,0x0C,0x1E,0x00,
0x30,0x00,0x30,0x30,0x30,0x33,0x33,0x1E,
0x07,0x06,0x66,0x36,0x1E,0x36,0x67,0x00,
0x0E,0x0C,0x0C,0x0C,0x0C,0x0C,0x1E,0x00,
0x00,0x00,0x33,0x7F,0x7F,0x6B,0x63,0x00,
0x00,0x00,0x1F,0x33,0x33,0x33,0x33,0x00,
0x00,0x00,0x1E,0x33,0x33,0x33,0x1E,0x00,
0x00,0x00,0x3B,0x66,0x66,0x3E,0x06,0x0F,
0x00,0x00,0x6E,0x33,0x33,0x3E,0x30,0x78,
0x00,0x00,0x3B,0x6E,0x66,0x06,0x0F,0x00,
0x00,0x00,0x3E,0x03,0x1E,0x30,0x1F,0x00,
0x08,0x0C,0x3E,0x0C,0x0C,0x2C,0x18,0x00,
0x00,0x00,0x33,0x33,0x33,0x33,0x6E,0x00,
0x00,0x00,0x33,0x33,0x33,0x1E,0x0C,0x00,
0x00,0x00,0x63,0x6B,0x7F,0x7F,0x36,0x00,
0x00,0x00,0x63,0x36,0x1C,0x36,0x63,0x00,
0x00,0x00,0x33,0x33,0x33,0x3E,0x30,0x1F,
0x00,0x00,0x3F,0x19,0x0C,0x26,0x3F,0x00,
0x38,0x0C,0x0C,0x07,0x0C,0x0C,0x38,0x00,
0x18,0x18,0x18,0x00,0x18,0x18,0x18,0x00,
0x07,0x0C,0x0C,0x38,0x0C,0x0C,0x07,0x00,
0x6E,0x3B,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
' />
					<value target='floatfixed' data='' />
					<value target='NumVals' data='768' />
					<value target='fixedexp' data='0' />
					<value target='EmbedIntoC' data='1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='0b61bd39-05a3-46ee-a2a5-da7bffb583c5' vmin='0' vmaj='3' codename='FileSD1' x='0' y='0' z='5.0617' 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='1' poslock='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='cal_spi::CHANNEL' data='002' />
					<value target='cal_spi::MOSI' data='$PORTA.27' />
					<value target='cal_spi::MOSIPins' data='008' />
					<value target='cal_spi::MISO' data='$PORTA.10' />
					<value target='cal_spi::MISOPins' data='013' />
					<value target='cal_spi::CLK' data='$PORTB.0' />
					<value target='cal_spi::CLKPins' data='004' />
					<value target='cal_spi::SS' data='$PORTA.26' />
					<value target='PR_SCALE' data='016' />
					<value target='PR_SCALE2' data='004' />
					<value target='max_concurrent_files' data='1' />
					<value target='EOFtype' data='001' />
					<value target='IsSim' data='0' />
					<value target='AutoInsertCard' data='1' />
					<value target='SimType' data='000' />
					<value target='root_dir' data='$(srcdir)' />
					<value target='cal_spi::ScopeTraces' data='0' />
					<value target='cal_spi::ConsoleData' data='0' />
					<value target='cal_spi::Injector' data='000' />
					<value target='cal_spi1::InjectorCS' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='c73616d1-7ad0-45d9-aada-69ccfa4c5efc' vmin='0' vmaj='3' codename='UART1' x='0' y='0' z='1.2865' 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='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='cal_uart::CHANNEL' data='001' />
					<value target='cal_uart::BAUD_LIST' data='009' />
					<value target='cal_uart::BAUD' data='115200' />
					<value target='cal_uart::DBITS' data='008' />
					<value target='cal_uart::RETURN' data='001' />
					<value target='cal_uart::ECHO' data='000' />
					<value target='cal_uart::UseTX' data='1' />
					<value target='cal_uart::TX' data='$PORTA.1' />
					<value target='cal_uart::OutputPins' data='007' />
					<value target='cal_uart::TXAlt' data='0' />
					<value target='cal_uart::UseRX' data='1' />
					<value target='cal_uart::RX' data='$PORTA.3' />
					<value target='cal_uart::InputPins' data='013' />
					<value target='cal_uart::RXAlt' data='0' />
					<value target='cal_uart::FLOWEN' data='000' />
					<value target='cal_uart::RTS' data='$PORTB.2' />
					<value target='cal_uart::CTS' data='$PORTB.1' />
					<value target='label' data='UART' />
					<value target='cal_uart::ScopeTraces' data='0' />
					<value target='cal_uart::ConsoleData' data='1' />
					<value target='cal_uart::ConsoleFormat' data='000' />
					<value target='cal_uart::ConsoleColumns' data='64' />
					<value target='cal_uart::DataSource' data='000' />
					<value target='cal_uart::com_port' data='000' />
					<value target='cal_uart::Injector' data='000' />
					<value target='cal_uart::APIUseDDR' data='' />
					<value target='cal_uart::APIDDRPin' data='' />
					<value target='cal_uart::APIDDRRXState' data='' />
					<value target='cal_uart::APIUseFC' data='' />
					<value target='cal_uart::APICTSPin' data='' />
					<value target='cal_uart::APIRTSPin' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<scadaresourcelookup />
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' >
		<background rgb='7292207' img='' style='0' />
		<camera xe='5.08682' ye='32.1071' ze='672.579' xt='5.08682' yt='32.1071' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<viewport dx='349' dy='1032' zoom='62.7867' fix_topleft='0' />
		<page x='1000' y='1000' show='0' rgb='7360576' />
	</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='0' ye='0' ze='781.66' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey0 xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey1 xe='-3.67394e-14' ye='0' ze='-300' xt='0' yt='0' zt='0' xquat='0' yquat='1' zquat='0' wquat='6.12323e-17' />
		<camerakey2 xe='0' ye='-300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.707107' yquat='0' zquat='0' wquat='0.707107' />
		<camerakey3 xe='-3.67394e-14' ye='300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-4.32978e-17' yquat='0.707107' zquat='0.707107' wquat='4.32978e-17' />
		<camerakey4 xe='-300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='0.5' zquat='0.5' wquat='0.5' />
		<camerakey5 xe='300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='-0.5' zquat='-0.5' wquat='0.5' />
		<camerakey6 xe='-173.205' ye='-173.205' ze='173.205' xt='0' yt='0' zt='0' xquat='-0.424708' yquat='0.17592' zquat='0.339851' wquat='0.820473' />
	</panel3d>
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAAJgsAACUGAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Reset' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAAJgsAACUGAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Initialise' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAAJgsAACUGAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Backlight' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAAJgsAACUGAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SendData' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAAJgsAACUGAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SendCommand' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAAJgsAACUGAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SetArea' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAAJgsAACUGAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SetOrientation' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAAJgsAACUGAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Clear' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAAJgsAACUGAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='FillRect' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAAJgsAACUGAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SendWord' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAAJgsAACUGAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Wheel' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAAJgsAACUGAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Color565' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAAJgsAACUGAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SafeLine' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAAJgsAACUGAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SafePlot' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAAJgsAACUGAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Circle' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAAJgsAACUGAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Print' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAAJgsAACUGAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Copy16bitBitmap' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAAJgsAACUGAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='CopyBMRaw' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAAJgsAACUGAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='FeedTheDog' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAAJgsAACUGAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Iter' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAAJgsAACUGAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Mandelbrot' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAAJgsAACUGAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Plot' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAiAAAAJgsAACUGAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
