<root>
<document scada='0' schema='102' license='1,mnfisher,5YZWG2' title='' description='' fcversion='524802' target='ARD.ATMEGA.Arduino Nano 328' >
	<config data='' clkspd='16000000' simspd='1' usewdt='0' constif='0' commport='3' Use3V3='0' />
	<plugins >
		<dll_models enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug />
	<traces />
	<ghost >
		<FK2 >
			<data name='FK2D0' port='4294967295' pin='4294967295' />
			<data name='FK2D1' port='4294967295' pin='4294967295' />
			<data name='FK2D2' port='4294967295' pin='4294967295' />
			<data name='FK2D3' port='4294967295' pin='4294967295' />
			<data name='FK2D4' port='4294967295' pin='4294967295' />
			<data name='FK2D5' port='4294967295' pin='4294967295' />
			<data name='FK2D6' port='4294967295' pin='4294967295' />
			<data name='FK2D7' port='4294967295' pin='4294967295' />
			<data name='FK2D8' port='4294967295' pin='4294967295' />
			<data name='FK2D9' port='4294967295' pin='4294967295' />
			<data name='FK2D10' port='4294967295' pin='4294967295' />
			<data name='FK2D11' port='4294967295' pin='4294967295' />
			<data name='FK2D12' port='4294967295' pin='4294967295' />
			<data name='FK2D13' port='4294967295' pin='4294967295' />
			<data name='FK2D14' port='4294967295' pin='4294967295' />
			<data name='FK2D15' port='4294967295' pin='4294967295' />
			<data name='FK2A0' port='4294967295' pin='4294967295' />
			<data name='FK2A1' port='4294967295' pin='4294967295' />
			<data name='FK2A2' port='4294967295' pin='4294967295' />
			<data name='FK2A3' port='4294967295' pin='4294967295' />
			<data name='FK2A4' port='4294967295' pin='4294967295' />
			<data name='FK2A5' port='4294967295' pin='4294967295' />
		</FK2>
		<ICD >
			<data name='AnalogPrescaleValue' value='19' />
			<data name='DigitalSampleRate' value='100000' />
			<data name='BreakpointCount' value='8' />
			<data name='CallStackDepthCount' value='8' />
			<data name='ClockPort' value='1' />
			<data name='ClockPin' value='1' />
			<data name='DataPort' value='1' />
			<data name='DataPin' value='0' />
			<data name='UseDefaultPins' value='1' />
			<data name='WrapEnabled' value='1' />
			<data name='CommsDelayOverridden' value='0' />
			<data name='CommsDelay' value='11' />
			<data name='CalculatedCommsDelay' value='11' />
			<data name='AnalogEB2PrescaleValue' value='2' />
			<data name='DigitalEB2SampleRate' value='100000' />
		</ICD>
		<pins >
			<digital A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
			<analog A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
		</pins>
	</ghost>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='36f1ec30-78c8-4862-8a42-a3b4235d5697' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='1' scadaCompatible='0' embeddedCompatible='1' iconpath='' />
		<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' >
			<resources />
			<properties >
				<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
' />
					<property name='MOSI' target='cal_spi1::MOSI' typeid='5' hidden='0' locked='1' info='SPI Data Out Pin SDO - Also Known as Master Out Slave In (MOSI) when used in Master mode.' />
					<property name='CLK' target='cal_spi1::CLK' typeid='5' hidden='0' locked='1' info='SPI Clock Pin CLK - The Clock signal is driven by the SPI master.' />
					<property name='Res Pin' target='res_pin' typeid='5' hidden='0' locked='0' info='' />
					<property name='DC Pin' target='dc_pin' typeid='5' hidden='0' locked='0' info='' />
					<property name='Backlight' target='blk_pin' 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='004Fosc/4
016Fosc/16
064Fosc/64' />
					<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>
				<property name='Dimensions' folder='property_1' hidden='0' >
					<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>
			</properties>
			<values >
				<value target='cal_spi1::CHANNEL' data='001' />
				<value target='cal_spi1::MOSI' data='$PORTB.3' />
				<value target='cal_spi1::CLK' data='$PORTB.5' />
				<value target='res_pin' data='$PORTB.0' />
				<value target='dc_pin' data='$PORTB.1' />
				<value target='blk_pin' data='$PORTD.0' />
				<value target='cal_spi1::Mode' data='000' />
				<value target='cal_spi1::PR_SCALE' data='004' />
				<value target='cal_spi1::CKE' data='000' />
				<value target='cal_spi1::CKP' data='001' />
				<value target='cal_spi1::SMP' data='000' />
				<value target='width' data='240' />
				<value target='height' data='240' />
			</values>
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='b' type='u32' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='false' type='b1' description='' isconst='1' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='temp' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='yStart' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='y' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='x' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='background' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='foreground' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='true' type='b1' description='' isconst='1' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='xStart' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Reset' description='Force reset by pulling reset pin low ' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='res_pin = 1' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='50' type='1' />
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='res_pin = 0' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='50' type='1' />
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='res_pin = 1' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='50' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Copy24bitBitmap' description='Copy a 24 bit bitmap to display' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='x' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='y' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='w' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='h' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='data' type='u32' description='' isconst='0' isinit='0' usrinit='0' setinit='' >
							<array size='1' />
						</param>
						<local name='color' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='pos' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='xpos' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='r' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='g' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='b' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='ptr' type='u32' description='A pointer variable to make accessing 3 bytes of data easier' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='SetAddrWindow' >
							<argument exp='.x' />
							<argument exp='.y' />
							<argument exp='.w' />
							<argument exp='.h' />
						</command>
						<command class_type='native' title='C Code' ccode='FCL_PTR = (MX_UINT8*)FCL_DATA;' cmdcolor='16760832' cmdcolor_sec='16760832' language='C' />
						<command class_type='loop' title='Loop' cmdcolor='16734039' cmdcolor_sec='16734039' type='2' exp='.h' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='.xpos = 0' />
								</command>
								<command class_type='loop' title='Loop' cmdcolor='16734039' cmdcolor_sec='16734039' type='0' exp='.xpos &lt; .w' >
									<flowline >
										<command class_type='native' title='C Code' ccode='FCL_B = FCL_PTR++;
FCL_G = FCL_PTR++;
FCL_R = FCL_PTR++;' cmdcolor='16760832' cmdcolor_sec='16760832' language='C' />
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='Color565' >
											<return exp='.color' />
											<argument exp='.r' />
											<argument exp='.g' />
											<argument exp='.b' />
										</command>
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='SendWord' >
											<argument exp='.color' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='.xpos = .xpos + 1' />
											<exp exp='.pos = .pos + 3' />
										</command>
									</flowline>
								</command>
								<command class_type='loop' title='Loop' cmdcolor='16734039' cmdcolor_sec='16734039' type='0' exp='.pos % 4' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='.ptr = .ptr + 1' />
											<exp exp='.pos = .pos + 1' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SendCommand' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='cmd' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Pull dc_pin low (command)' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='dc_pin = 0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='cal_spi1' macro='Master_Byte' >
							<argument exp='.cmd' />
						</command>
						<command class_type='calculation' title='Pull dc_pin low (command)' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='dc_pin = 1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SetAddrWindow' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='xs' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='ys' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='width' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='height' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='xend' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='yend' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='.xs = .xs + xStart' />
							<exp exp='.xend = .xs + xStart + .width - 1' />
							<exp exp='.ys = .ys + yStart' />
							<exp exp='.yend = .ys + yStart + .height - 1' />
						</command>
						<command class_type='comment' title='' comment='void Arduino_ST7789::setAddrWindow(uint16_t xs, uint16_t ys, uint16_t xe, uint16_t ye)
{
  xs+=_xstart; xe+=_xstart;
  ys+=_ystart; ye+=_ystart;

  CS_ACTIVE;
  SPI_START;
  
  DC_COMMAND; writeSPI(ST7789_CASET);
  DC_DATA;
  writeSPI(xs &gt;&gt; 8); writeSPI(xs);
  writeSPI(xe &gt;&gt; 8); writeSPI(xe);

  DC_COMMAND; writeSPI(ST7789_RASET);
  DC_DATA;
  writeSPI(ys &gt;&gt; 8); writeSPI(ys);
  writeSPI(ye &gt;&gt; 8); writeSPI(ye);

  DC_COMMAND; writeSPI(ST7789_RAMWR);

  DC_DATA;
  // no CS_IDLE + SPI_END, DC_DATA to save memory
}' textarea='12,0,12,0' cmdcolor='5751039' cmdcolor_sec='5751039' />
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='SendCommand' >
							<argument exp='0x2A' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='SendWord' >
							<argument exp='.xs' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='SendWord' >
							<argument exp='.xend' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='SendCommand' >
							<argument exp='0x2B' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='SendWord' >
							<argument exp='.ys' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='SendWord' >
							<argument exp='.yend' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='SendCommand' >
							<argument exp='0x2C' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='WriteByte' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='data' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='cal_spi1' macro='Master_Byte' >
							<argument exp='.data' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='DrawLine' description='Draws a line with the current foreground colour from pixel location X1, Y1 to pixel location X2, Y2.' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='X1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y1' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='X2' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Y2' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='width' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='C1' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='M1' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='D1' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<local name='PixelX' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='PixelY' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Yinc' type='s16' description='' isconst='0' isinit='1' usrinit='1' setinit='1' />
						<local name='Xinc' type='s16' description='' isconst='0' isinit='1' usrinit='1' setinit='1' />
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='.PixelX = .X2 - .X1' />
							<exp exp='.PixelY = .Y2 - .Y1' />
						</command>
						<command class_type='decision' title='If negative X direction' cmdcolor='16734039' cmdcolor_sec='16734039' exp='.PixelX &lt; 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='.Xinc = -1' />
									<exp exp='.PixelX = .PixelX * -1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='If negative Y direction' cmdcolor='16734039' cmdcolor_sec='16734039' exp='.PixelY &lt; 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='.Yinc = -1' />
									<exp exp='.PixelY = .PixelY * -1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='.PixelY &lt;= .PixelX' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='.C1 = 2 * .PixelX' />
									<exp exp='.M1 = 2 * .PixelY' />
								</command>
								<command class_type='loop' title='Loop' cmdcolor='16734039' cmdcolor_sec='16734039' type='0' exp='.X1 != .X2' >
									<flowline >
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='Plot' >
											<argument exp='.X1' />
											<argument exp='.Y1' />
											<argument exp='.width' />
											<argument exp='.width' />
											<argument exp='foreground' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='.X1 = .X1 + .Xinc' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='.D1 = .D1 + .M1' />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='.D1 &gt; .PixelX' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='.Y1 = .Y1 + .Yinc' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='.D1 = .D1 - .C1' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='.C1 = 2 * .PixelY' />
									<exp exp='.M1 = 2 * .PixelX' />
								</command>
								<command class_type='loop' title='Loop' cmdcolor='16734039' cmdcolor_sec='16734039' type='0' exp='.Y1 != .Y2' >
									<flowline >
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='Plot' >
											<argument exp='.X1' />
											<argument exp='.Y1' />
											<argument exp='.width' />
											<argument exp='.width' />
											<argument exp='foreground' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='.Y1 = .Y1 + .Yinc' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='.D1 = .D1 + .M1' />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='.D1 &gt; .PixelY' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='.X1 = .X1 + .Xinc' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='.D1 = .D1 - .C1' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='Plot' >
							<argument exp='.X1' />
							<argument exp='.Y1' />
							<argument exp='.width' />
							<argument exp='.width' />
							<argument exp='foreground' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Copy4bitBitmap' description='Copy a 4 bit bitmap to display - each nibble (4 bits) describes a pixel using one of 16 colours.' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='x' type='u8' description='position and size' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='y' type='u8' description='position and size' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='w' type='u8' description='position and size' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='h' type='u8' description='position and size' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='colours' type='u16' description='Colour lookup table in 565 format' isconst='0' isinit='0' usrinit='0' setinit='' >
							<array size='16' />
						</param>
						<param name='data' type='u32' description='Data to draw.' isconst='0' isinit='0' usrinit='0' setinit='' >
							<array size='1' />
						</param>
						<local name='pos' type='u16' description='Current position in data' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<local name='xpos' type='u8' description='.xpos' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='b' type='u32' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='shift' type='u8' description='Amount we need to shift data to get next nibble' isconst='0' isinit='1' usrinit='32' setinit='32' />
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='SetAddrWindow' >
							<argument exp='.x' />
							<argument exp='.y' />
							<argument exp='.w' />
							<argument exp='.h' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='16734039' cmdcolor_sec='16734039' type='2' exp='.h' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='.xpos = 0' />
								</command>
								<command class_type='loop' title='Loop' cmdcolor='16734039' cmdcolor_sec='16734039' type='0' exp='.xpos &lt; .w' >
									<flowline >
										<command class_type='calculation' title='Get next 8 (or less) pixels data' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='.b = .data[.pos]' />
											<exp exp='.pos = .pos + 1' />
											<exp exp='.shift = 32' />
										</command>
										<command class_type='loop' title='Write out up to 8 nibbles' cmdcolor='16734039' cmdcolor_sec='16734039' type='0' exp='(.xpos &lt; .w) AND (.shift &gt; 0)' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='.shift = .shift - 4' />
													<exp exp='.xpos = .xpos + 1' />
												</command>
												<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='SendWord' >
													<argument exp='.colours[(.b &gt;&gt; .shift) &amp;0x0F]' />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Plot' description='Draw a &apos;point &apos; at (x, y )' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='x' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='y' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='w' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='h' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='colour' type='u16' description='colour in 565 format' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='i' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='.x + .w &gt; 240' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='.w = 240 - .x' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='.y + .h &gt; 240' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='.h = 240 - .y' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='.x &lt; 240 AND .y &lt; 240' swap='0' >
							<flowline >
								<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='SetAddrWindow' >
									<argument exp='.x' />
									<argument exp='.y' />
									<argument exp='.w' />
									<argument exp='.h' />
								</command>
								<command class_type='loop' title='Loop' cmdcolor='16734039' cmdcolor_sec='16734039' type='2' exp='.w * .h' >
									<flowline >
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='SendWord' >
											<argument exp='.colour' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Color565' description='' >
						<return name='Return' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='r' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='g' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='b' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<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='Wheel' description='' >
						<return name='Return' type='u32' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='pos' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='.pos = 255 - .pos' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='.pos &lt; 85' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='.Return = Color565 (255 - .pos * 3,0, .pos * 3)' />
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='.pos &lt; 170' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<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='49280' cmdcolor_sec='49280' >
											<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='IdleDisplay' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='idle' type='b1' description='Set to true for idle false for enabled' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='.idle' swap='0' >
							<flowline >
								<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='SendCommand' >
									<argument exp='0x39' />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='SendCommand' >
									<argument exp='0x38' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='DispTextLine' description='Draw a pixel row of a text string to a pixel address to allow text to glide in or out,,,,' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='s' type='T8*' description='The string to display' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<param name='x' type='u8' description='x address to display at' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='y' type='u8' description='y address to display at' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='i' type='u8' description='Loop counters' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='j' type='u8' description='Loop counters' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='mask' type='u8' description='Mask and pattern to write to buffer' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='c' type='u16' description='Current character' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='addr' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='dev' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='caddr' type='s16' description='Address of current character data' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='d' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='t' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='len' type='u8' description='Length of the string' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='.len = Length$ (.s)' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='SetAddrWindow' >
							<argument exp='.x' />
							<argument exp='.y' />
							<argument exp='.len * 8' />
							<argument exp='8' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='16734039' cmdcolor_sec='16734039' type='2' forvar='.y' exp='8' >
							<flowline >
								<command class_type='loop' title='For each character in string' cmdcolor='16734039' cmdcolor_sec='16734039' type='2' forvar='.i' exp='.len' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='.c = .s[.i]' />
											<exp exp='.caddr = (.c - 32) * 8' />
											<exp exp='.d = CharSet :: GetInt (.caddr + .y)' />
											<exp exp='.mask = 0x1' />
										</command>
										<command class_type='loop' title='Loop' cmdcolor='16734039' cmdcolor_sec='16734039' type='2' forvar='.j' exp='8' >
											<flowline >
												<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='.d &amp; .mask' swap='0' >
													<flowline >
														<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='SendWord' >
															<argument exp='foreground' />
														</command>
													</flowline>
													<flowline >
														<command class_type='call' title='Call Macro' textarea='36,-2,36,-2' cmdcolor='16711808' cmdcolor_sec='16711808' macro='SendWord' >
															<argument exp='background' />
														</command>
													</flowline>
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='.mask = .mask &lt;&lt; 1' />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='DisplayInit' description='Wites the initialisation data to the display' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<local name='cmds' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='args' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='ms' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='i' type='u8' description='Current index' isconst='0' isinit='1' usrinit='1' setinit='1' />
						<local name='cmd' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='.cmds = init_data :: GetInt (0)' />
							<exp exp='' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='Reset' />
						<command class_type='loop' title='Write all commands' cmdcolor='16734039' cmdcolor_sec='16734039' type='2' exp='.cmds' >
							<flowline >
								<command class_type='calculation' title='Calculation' ccode='// Name: Calculation, Type: Calculation:
// SendCommand (init_data :: GetInt (.i))
// .i = .i + 1
// .args = init_data :: GetInt (.i)
// .i = .i + 1
// .ms = .args &amp; 0x80
// .args = .args &amp; ~0x80
FCM_SendCommand(FCD_00fb1_init_data__INTLIST(FCL_I));
FCL_I = FCL_I + 1;
FCL_ARGS = FCD_00fb1_init_data__INTLIST(FCL_I);
FCL_I = FCL_I + 1;
FCL_MS = FCL_ARGS &amp; 0x80;
FCL_ARGS = FCL_ARGS &amp; ~0x80;
' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='.cmd = init_data :: GetInt (.i)' />
									<exp exp='.args = init_data :: GetInt (.i + 1)' />
									<exp exp='.i = .i + 2' />
									<exp exp='.ms = .args &amp; 0x80' />
									<exp exp='.args = .args &amp; ~0x80' />
								</command>
								<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='SendCommand' >
									<argument exp='.cmd' />
								</command>
								<command class_type='loop' title='Write any args' cmdcolor='16734039' cmdcolor_sec='16734039' type='2' exp='.args' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='.cmd = init_data :: GetInt (.i)' />
											<exp exp='.i = .i + 1' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='cal_spi1' macro='Master_Byte' >
											<argument exp='.cmd' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Delay needed' cmdcolor='16734039' cmdcolor_sec='16734039' exp='.ms' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='.ms = init_data :: GetInt (.i)' />
											<exp exp='.i = .i + 1' />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='.ms = 255' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='.ms = 500' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='.ms' type='1' />
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='SetAddrWindow' >
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='240' />
							<argument exp='240' />
						</command>
						<command class_type='call' title='Clear to qhite' cmdcolor='16711808' cmdcolor_sec='16711808' macro='SendWordMulti' >
							<argument exp='0' />
							<argument exp='240*240' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Print' description='Draw a pixel row of a text string to a pixel address to allow text to glide in or out,,,,' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='s' type='T8*' description='The string to display' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<param name='x' type='u16' description='x address to display at' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='y' type='u16' description='y address to display at' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='xscale' type='u8' description='Multipliers for x and y' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='yscale' type='u8' description='Multipliers for x and y' isconst='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' isinit='0' usrinit='0' setinit='' />
						<local name='i' type='u8' description='Loop counters' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='j' type='u8' description='Loop counters' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='mask' type='u8' description='Mask and pattern to write to buffer' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='c' type='u16' description='Current character' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='addr' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='dev' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='caddr' type='s16' description='Address of current character data' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='d' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='t' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='len' type='u8' description='Length of the string' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='xpos' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='ypos' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='cwidth' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='cheight' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<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='16734039' cmdcolor_sec='16734039' type='2' forvar='.i' exp='.len' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<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='16734039' cmdcolor_sec='16734039' type='2' forvar='.t' exp='8' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<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='16734039' cmdcolor_sec='16734039' type='2' forvar='.j' exp='8' >
											<flowline >
												<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='.d &amp; .mask' swap='0' >
													<flowline >
														<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='Plot' >
															<argument exp='.xpos' />
															<argument exp='.ypos' />
															<argument exp='.xscale' />
															<argument exp='.yscale' />
															<argument exp='foreground' />
														</command>
													</flowline>
													<flowline >
														<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='.drawbackground' swap='0' >
															<flowline >
																<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='Plot' >
																	<argument exp='.xpos' />
																	<argument exp='.ypos' />
																	<argument exp='.xscale' />
																	<argument exp='.yscale' />
																	<argument exp='background' />
																</command>
															</flowline>
															<flowline />
														</command>
													</flowline>
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='.mask = .mask &lt;&lt; 1' />
													<exp exp='.xpos = .xpos + .xscale' />
												</command>
											</flowline>
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='.ypos = .ypos + .yscale' />
											<exp exp='.xpos = .xpos - .cwidth' />
										</command>
									</flowline>
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='.xpos = .xpos + .cwidth' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='.xpos + .xscale &gt; 239' swap='0' >
									<flowline >
										<command class_type='calculation' title='Move to next line' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='.y = .y + .cheight + .yscale' />
											<exp exp='.xpos = .x' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Copy8bitBitmap' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='x' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='y' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='w' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='h' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='colours' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' >
							<array size='1' />
						</param>
						<param name='data' type='u32' description='' isconst='0' isinit='0' usrinit='0' setinit='' >
							<array size='1' />
						</param>
						<local name='b' type='u32' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='shift' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='xpos' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='pos' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='SetAddrWindow' >
							<argument exp='.x' />
							<argument exp='.y' />
							<argument exp='.w' />
							<argument exp='.h' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='16734039' cmdcolor_sec='16734039' type='2' exp='.h' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='.xpos = 0' />
								</command>
								<command class_type='loop' title='Loop' cmdcolor='16734039' cmdcolor_sec='16734039' type='0' exp='.xpos &lt; .w' >
									<flowline >
										<command class_type='calculation' title='Get next 4 (or less) pixels' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='.b = .data[.pos]' />
											<exp exp='.pos = .pos + 1' />
											<exp exp='.shift = 32' />
										</command>
										<command class_type='loop' title='Loop' cmdcolor='16734039' cmdcolor_sec='16734039' type='0' exp='(.xpos &lt; .w) AND (.shift &gt; 0)' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='.shift = .shift - 8' />
													<exp exp='.xpos = .xpos + 1' />
												</command>
												<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='SendWord' >
													<argument exp='.colours[(.b &gt;&gt; .shift) &amp; 0xFF]' />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Copy16bitBitmap' description='Copy bitmap data in 565 16 bit format.' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='x' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='y' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='w' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='h' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='data' type='u32' description='' isconst='0' isinit='0' usrinit='0' setinit='' >
							<array size='1' />
						</param>
						<local name='xpos' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='pos' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<local name='b' type='u32' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='SetAddrWindow' >
							<argument exp='.x' />
							<argument exp='.y' />
							<argument exp='.w' />
							<argument exp='.h' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='16734039' cmdcolor_sec='16734039' type='2' exp='.h' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='.xpos = 0' />
								</command>
								<command class_type='loop' title='Loop' cmdcolor='16734039' cmdcolor_sec='16734039' type='0' exp='.xpos &lt; .w' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='.b = .data[.pos]' />
											<exp exp='.pos = .pos + 1' />
										</command>
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='SendWord' >
											<argument exp='.b &gt;&gt; 16' />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='.xpos &lt; .w' swap='0' >
											<flowline >
												<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='SendWord' >
													<argument exp='.b' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='.xpos = .xpos + 1' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SendWord' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='word' type='u16' description='16 bit value to send' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='cal_spi1' macro='Master_Byte' >
							<argument exp='.word &gt;&gt; 8' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='cal_spi1' macro='Master_Byte' >
							<argument exp='.word' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='PushColor' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='color' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='SendWord' >
							<argument exp='.color' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Copy1bitBitmap' description='Copy a 2 colour bitmap (each bit describes a pixel) to display

Note that each line will should be padded to a full byte and bits are written from msb to lsb' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='x' type='u8' description='Coordinates to write to display' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='y' type='u8' description='Coordinates to write to display' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='w' type='u8' description='Width and height in pixels' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='h' type='u8' description='Width and height in pixels' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='colours' type='u16' description='colour lookup table (in 565 format)' isconst='0' isinit='0' usrinit='0' setinit='' >
							<array size='2' />
						</param>
						<param name='data' type='u32' description='Bitmap data - 0 bit = colour[0] 1 bit = colour[1] msb = left' isconst='0' isinit='0' usrinit='0' setinit='' >
							<array size='16' />
						</param>
						<local name='pos' type='u16' description='Position in data' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<local name='xpos' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='n' type='u32' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='SetAddrWindow' >
							<argument exp='.x' />
							<argument exp='.y' />
							<argument exp='.w' />
							<argument exp='.h' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='16734039' cmdcolor_sec='16734039' type='2' exp='.h' >
							<flowline >
								<command class_type='loop' title='Loop' cmdcolor='16734039' cmdcolor_sec='16734039' type='2' forvar='.xpos' exp='.w' >
									<flowline >
										<command class_type='decision' title='Read a byte every 8 bits' cmdcolor='16734039' cmdcolor_sec='16734039' exp='(.xpos % 32) = 0' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='' />
													<exp exp='.n = .data[.pos]' />
													<exp exp='.pos = .pos + 1' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='If the bit is set' cmdcolor='16734039' cmdcolor_sec='16734039' exp='.n &amp; 0x80000000' swap='0' >
											<flowline >
												<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='SendWord' >
													<argument exp='.colours[1]' />
												</command>
											</flowline>
											<flowline >
												<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='SendWord' >
													<argument exp='.colours[0]' />
												</command>
											</flowline>
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='.n = .n &lt;&lt; 1' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SendWordMulti' description='Send a word repeatedly' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='word' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='rpt' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='hi' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='lo' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='.hi = .word &gt;&gt; 8' />
							<exp exp='.lo = .word' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='16734039' cmdcolor_sec='16734039' type='0' exp='.rpt' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='cal_spi1' macro='Master_Byte' >
									<argument exp='.hi' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='cal_spi1' macro='Master_Byte' >
									<argument exp='.lo' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='.rpt = .rpt - 1' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<local name='color' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='ctable' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' >
							<array size='256' />
						</local>
						<local name='data' type='u32' description='' isconst='0' isinit='0' usrinit='0' setinit='' >
							<array size='174' />
						</local>
						<local name='I' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='sensor' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='min' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
						<local name='max' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
						<local name='temp' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
						<local name='str' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<command class_type='output' title='Pull CS pin low for Arduino....' cmdcolor='8453975' cmdcolor_sec='8453975' mode='1' port='1048577' mask='4' exp='0' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='cal_spi1' macro='Master_Init' />
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='DisplayInit' />
						<command class_type='loop' title='Loop' cmdcolor='16734039' cmdcolor_sec='16734039' type='2' forvar='.I' exp='240' >
							<flowline >
								<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='Wheel' >
									<return exp='.color' />
									<argument exp='.I' />
								</command>
								<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='Plot' >
									<argument exp='0' />
									<argument exp='.I' />
									<argument exp='240' />
									<argument exp='1' />
									<argument exp='.color' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='background = 0' />
							<exp exp='foreground = 0xffff' />
							<exp exp='.I = 0' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='16734039' cmdcolor_sec='16734039' type='0' exp='.I &lt; 240' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='foreground = Color565 (255,0,0)' />
								</command>
								<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='DrawLine' >
									<argument exp='0' />
									<argument exp='0' />
									<argument exp='239' />
									<argument exp='.I' />
									<argument exp='1' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='foreground = Color565 (0,255,0)' />
								</command>
								<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='DrawLine' >
									<argument exp='239' />
									<argument exp='239' />
									<argument exp='0' />
									<argument exp='.I' />
									<argument exp='1' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
									<exp exp='.i = .i + 4' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='foreground = 0xffff' />
						</command>
						<command class_type='calculation' title='Setup data' textshow='0' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='.ctable[0] = 0' />
							<exp exp='.ctable[1] = 32768' />
							<exp exp='.ctable[2] = 1024' />
							<exp exp='.ctable[3] = 33792' />
							<exp exp='.ctable[4] = 16' />
							<exp exp='.ctable[5] = 32784' />
							<exp exp='.ctable[6] = 1040' />
							<exp exp='.ctable[7] = 50712' />
							<exp exp='.ctable[8] = 50936' />
							<exp exp='.ctable[9] = 42590' />
							<exp exp='.ctable[10] = 16640' />
							<exp exp='.ctable[11] = 24832' />
							<exp exp='.ctable[12] = 33024' />
							<exp exp='.ctable[13] = 41216' />
							<exp exp='.ctable[14] = 49408' />
							<exp exp='.ctable[15] = 57600' />
							<exp exp='.ctable[16] = 512' />
							<exp exp='.ctable[17] = 8704' />
							<exp exp='.ctable[18] = 16896' />
							<exp exp='.ctable[19] = 25088' />
							<exp exp='.ctable[20] = 33280' />
							<exp exp='.ctable[21] = 41472' />
							<exp exp='.ctable[22] = 49664' />
							<exp exp='.ctable[23] = 57856' />
							<exp exp='.ctable[24] = 768' />
							<exp exp='.ctable[25] = 8960' />
							<exp exp='.ctable[26] = 17152' />
							<exp exp='.ctable[27] = 25344' />
							<exp exp='.ctable[28] = 33536' />
							<exp exp='.ctable[29] = 41728' />
							<exp exp='.ctable[30] = 49920' />
							<exp exp='.ctable[31] = 58112' />
							<exp exp='.ctable[32] = 1024' />
							<exp exp='.ctable[33] = 9216' />
							<exp exp='.ctable[34] = 17408' />
							<exp exp='.ctable[35] = 25600' />
							<exp exp='.ctable[36] = 33792' />
							<exp exp='.ctable[37] = 41984' />
							<exp exp='.ctable[38] = 50176' />
							<exp exp='.ctable[39] = 58368' />
							<exp exp='.ctable[40] = 1280' />
							<exp exp='.ctable[41] = 9472' />
							<exp exp='.ctable[42] = 17664' />
							<exp exp='.ctable[43] = 25856' />
							<exp exp='.ctable[44] = 34048' />
							<exp exp='.ctable[45] = 42240' />
							<exp exp='.ctable[46] = 50432' />
							<exp exp='.ctable[47] = 58624' />
							<exp exp='.ctable[48] = 1536' />
							<exp exp='.ctable[49] = 9728' />
							<exp exp='.ctable[50] = 17920' />
							<exp exp='.ctable[51] = 26112' />
							<exp exp='.ctable[52] = 34304' />
							<exp exp='.ctable[53] = 42496' />
							<exp exp='.ctable[54] = 50688' />
							<exp exp='.ctable[55] = 58880' />
							<exp exp='.ctable[56] = 1792' />
							<exp exp='.ctable[57] = 9984' />
							<exp exp='.ctable[58] = 18176' />
							<exp exp='.ctable[59] = 26368' />
							<exp exp='.ctable[60] = 34560' />
							<exp exp='.ctable[61] = 42752' />
							<exp exp='.ctable[62] = 50944' />
							<exp exp='.ctable[63] = 59136' />
							<exp exp='.ctable[64] = 8' />
							<exp exp='.ctable[65] = 8200' />
							<exp exp='.ctable[66] = 16392' />
							<exp exp='.ctable[67] = 24584' />
							<exp exp='.ctable[68] = 32776' />
							<exp exp='.ctable[69] = 40968' />
							<exp exp='.ctable[70] = 49160' />
							<exp exp='.ctable[71] = 57352' />
							<exp exp='.ctable[72] = 264' />
							<exp exp='.ctable[73] = 8456' />
							<exp exp='.ctable[74] = 16648' />
							<exp exp='.ctable[75] = 24840' />
							<exp exp='.ctable[76] = 33032' />
							<exp exp='.ctable[77] = 41224' />
							<exp exp='.ctable[78] = 49416' />
							<exp exp='.ctable[79] = 57608' />
							<exp exp='.ctable[80] = 520' />
							<exp exp='.ctable[81] = 8712' />
							<exp exp='.ctable[82] = 16904' />
							<exp exp='.ctable[83] = 25096' />
							<exp exp='.ctable[84] = 33288' />
							<exp exp='.ctable[85] = 41480' />
							<exp exp='.ctable[86] = 49672' />
							<exp exp='.ctable[87] = 57864' />
							<exp exp='.ctable[88] = 776' />
							<exp exp='.ctable[89] = 8968' />
							<exp exp='.ctable[90] = 17160' />
							<exp exp='.ctable[91] = 25352' />
							<exp exp='.ctable[92] = 33544' />
							<exp exp='.ctable[93] = 41736' />
							<exp exp='.ctable[94] = 49928' />
							<exp exp='.ctable[95] = 58120' />
							<exp exp='.ctable[96] = 1032' />
							<exp exp='.ctable[97] = 9224' />
							<exp exp='.ctable[98] = 17416' />
							<exp exp='.ctable[99] = 25608' />
							<exp exp='.ctable[100] = 33800' />
							<exp exp='.ctable[101] = 41992' />
							<exp exp='.ctable[102] = 50184' />
							<exp exp='.ctable[103] = 58376' />
							<exp exp='.ctable[104] = 1288' />
							<exp exp='.ctable[105] = 9480' />
							<exp exp='.ctable[106] = 17672' />
							<exp exp='.ctable[107] = 25864' />
							<exp exp='.ctable[108] = 34056' />
							<exp exp='.ctable[109] = 42248' />
							<exp exp='.ctable[110] = 50440' />
							<exp exp='.ctable[111] = 58632' />
							<exp exp='.ctable[112] = 1544' />
							<exp exp='.ctable[113] = 9736' />
							<exp exp='.ctable[114] = 17928' />
							<exp exp='.ctable[115] = 26120' />
							<exp exp='.ctable[116] = 34312' />
							<exp exp='.ctable[117] = 42504' />
							<exp exp='.ctable[118] = 50696' />
							<exp exp='.ctable[119] = 58888' />
							<exp exp='.ctable[120] = 1800' />
							<exp exp='.ctable[121] = 9992' />
							<exp exp='.ctable[122] = 18184' />
							<exp exp='.ctable[123] = 26376' />
							<exp exp='.ctable[124] = 34568' />
							<exp exp='.ctable[125] = 42760' />
							<exp exp='.ctable[126] = 50952' />
							<exp exp='.ctable[127] = 59144' />
							<exp exp='.ctable[128] = 16' />
							<exp exp='.ctable[129] = 8208' />
							<exp exp='.ctable[130] = 16400' />
							<exp exp='.ctable[131] = 24592' />
							<exp exp='.ctable[132] = 32784' />
							<exp exp='.ctable[133] = 40976' />
							<exp exp='.ctable[134] = 49168' />
							<exp exp='.ctable[135] = 57360' />
							<exp exp='.ctable[136] = 272' />
							<exp exp='.ctable[137] = 8464' />
							<exp exp='.ctable[138] = 16656' />
							<exp exp='.ctable[139] = 24848' />
							<exp exp='.ctable[140] = 33040' />
							<exp exp='.ctable[141] = 41232' />
							<exp exp='.ctable[142] = 49424' />
							<exp exp='.ctable[143] = 57616' />
							<exp exp='.ctable[144] = 528' />
							<exp exp='.ctable[145] = 8720' />
							<exp exp='.ctable[146] = 16912' />
							<exp exp='.ctable[147] = 25104' />
							<exp exp='.ctable[148] = 33296' />
							<exp exp='.ctable[149] = 41488' />
							<exp exp='.ctable[150] = 49680' />
							<exp exp='.ctable[151] = 57872' />
							<exp exp='.ctable[152] = 784' />
							<exp exp='.ctable[153] = 8976' />
							<exp exp='.ctable[154] = 17168' />
							<exp exp='.ctable[155] = 25360' />
							<exp exp='.ctable[156] = 33552' />
							<exp exp='.ctable[157] = 41744' />
							<exp exp='.ctable[158] = 49936' />
							<exp exp='.ctable[159] = 58128' />
							<exp exp='.ctable[160] = 1040' />
							<exp exp='.ctable[161] = 9232' />
							<exp exp='.ctable[162] = 17424' />
							<exp exp='.ctable[163] = 25616' />
							<exp exp='.ctable[164] = 33808' />
							<exp exp='.ctable[165] = 42000' />
							<exp exp='.ctable[166] = 50192' />
							<exp exp='.ctable[167] = 58384' />
							<exp exp='.ctable[168] = 1296' />
							<exp exp='.ctable[169] = 9488' />
							<exp exp='.ctable[170] = 17680' />
							<exp exp='.ctable[171] = 25872' />
							<exp exp='.ctable[172] = 34064' />
							<exp exp='.ctable[173] = 42256' />
							<exp exp='.ctable[174] = 50448' />
							<exp exp='.ctable[175] = 58640' />
							<exp exp='.ctable[176] = 1552' />
							<exp exp='.ctable[177] = 9744' />
							<exp exp='.ctable[178] = 17936' />
							<exp exp='.ctable[179] = 26128' />
							<exp exp='.ctable[180] = 34320' />
							<exp exp='.ctable[181] = 42512' />
							<exp exp='.ctable[182] = 50704' />
							<exp exp='.ctable[183] = 58896' />
							<exp exp='.ctable[184] = 1808' />
							<exp exp='.ctable[185] = 10000' />
							<exp exp='.ctable[186] = 18192' />
							<exp exp='.ctable[187] = 26384' />
							<exp exp='.ctable[188] = 34576' />
							<exp exp='.ctable[189] = 42768' />
							<exp exp='.ctable[190] = 50960' />
							<exp exp='.ctable[191] = 59152' />
							<exp exp='.ctable[192] = 24' />
							<exp exp='.ctable[193] = 8216' />
							<exp exp='.ctable[194] = 16408' />
							<exp exp='.ctable[195] = 24600' />
							<exp exp='.ctable[196] = 32792' />
							<exp exp='.ctable[197] = 40984' />
							<exp exp='.ctable[198] = 49176' />
							<exp exp='.ctable[199] = 57368' />
							<exp exp='.ctable[200] = 280' />
							<exp exp='.ctable[201] = 8472' />
							<exp exp='.ctable[202] = 16664' />
							<exp exp='.ctable[203] = 24856' />
							<exp exp='.ctable[204] = 33048' />
							<exp exp='.ctable[205] = 41240' />
							<exp exp='.ctable[206] = 49432' />
							<exp exp='.ctable[207] = 57624' />
							<exp exp='.ctable[208] = 536' />
							<exp exp='.ctable[209] = 8728' />
							<exp exp='.ctable[210] = 16920' />
							<exp exp='.ctable[211] = 25112' />
							<exp exp='.ctable[212] = 33304' />
							<exp exp='.ctable[213] = 41496' />
							<exp exp='.ctable[214] = 49688' />
							<exp exp='.ctable[215] = 57880' />
							<exp exp='.ctable[216] = 792' />
							<exp exp='.ctable[217] = 8984' />
							<exp exp='.ctable[218] = 17176' />
							<exp exp='.ctable[219] = 25368' />
							<exp exp='.ctable[220] = 33560' />
							<exp exp='.ctable[221] = 41752' />
							<exp exp='.ctable[222] = 49944' />
							<exp exp='.ctable[223] = 58136' />
							<exp exp='.ctable[224] = 1048' />
							<exp exp='.ctable[225] = 9240' />
							<exp exp='.ctable[226] = 17432' />
							<exp exp='.ctable[227] = 25624' />
							<exp exp='.ctable[228] = 33816' />
							<exp exp='.ctable[229] = 42008' />
							<exp exp='.ctable[230] = 50200' />
							<exp exp='.ctable[231] = 58392' />
							<exp exp='.ctable[232] = 1304' />
							<exp exp='.ctable[233] = 9496' />
							<exp exp='.ctable[234] = 17688' />
							<exp exp='.ctable[235] = 25880' />
							<exp exp='.ctable[236] = 34072' />
							<exp exp='.ctable[237] = 42264' />
							<exp exp='.ctable[238] = 50456' />
							<exp exp='.ctable[239] = 58648' />
							<exp exp='.ctable[240] = 1560' />
							<exp exp='.ctable[241] = 9752' />
							<exp exp='.ctable[242] = 17944' />
							<exp exp='.ctable[243] = 26136' />
							<exp exp='.ctable[244] = 34328' />
							<exp exp='.ctable[245] = 42520' />
							<exp exp='.ctable[246] = 65502' />
							<exp exp='.ctable[247] = 42260' />
							<exp exp='.ctable[248] = 33808' />
							<exp exp='.ctable[249] = 63488' />
							<exp exp='.ctable[250] = 2016' />
							<exp exp='.ctable[251] = 65504' />
							<exp exp='.ctable[252] = 31' />
							<exp exp='.ctable[253] = 63519' />
							<exp exp='.ctable[254] = 2047' />
							<exp exp='.ctable[255] = 65535' />
							<exp exp='.data[160] = 0xe8e8e8e8' />
							<exp exp='.data[161] = 0xe8e86767' />
							<exp exp='.data[162] = 0x67676767' />
							<exp exp='.data[163] = 0x67d2d2d2' />
							<exp exp='.data[164] = 0xd2d20000' />
							<exp exp='.data[165] = 0x0' />
							<exp exp='.data[166] = 0xefefefef' />
							<exp exp='.data[167] = 0xefefeffb' />
							<exp exp='.data[168] = 0xfbfbfbfb' />
							<exp exp='.data[169] = 0xfbfbd5d5' />
							<exp exp='.data[170] = 0xd5d5d5d5' />
							<exp exp='.data[171] = 0xd5666666' />
							<exp exp='.data[172] = 0x66666666' />
							<exp exp='.data[173] = 0x664f4f4f' />
							<exp exp='.data[144] = 0xe8e8e8e8' />
							<exp exp='.data[145] = 0xe8e86767' />
							<exp exp='.data[146] = 0x67676767' />
							<exp exp='.data[147] = 0x67d2d2d2' />
							<exp exp='.data[148] = 0xd2d20000' />
							<exp exp='.data[149] = 0x0' />
							<exp exp='.data[150] = 0xefefefef' />
							<exp exp='.data[151] = 0xefefeffb' />
							<exp exp='.data[152] = 0xfbfbfbfb' />
							<exp exp='.data[153] = 0xfbfbd5d5' />
							<exp exp='.data[154] = 0xd5d5d5d5' />
							<exp exp='.data[155] = 0xd5666666' />
							<exp exp='.data[156] = 0x66666666' />
							<exp exp='.data[157] = 0x664f4f4f' />
							<exp exp='.data[158] = 0x4f4f4f4f' />
							<exp exp='.data[159] = 0x4f4f4f00' />
							<exp exp='.data[128] = 0xe8e8e8e8' />
							<exp exp='.data[129] = 0xe8e86767' />
							<exp exp='.data[130] = 0x67676767' />
							<exp exp='.data[131] = 0x67d2d2d2' />
							<exp exp='.data[132] = 0xd2d20000' />
							<exp exp='.data[133] = 0x0' />
							<exp exp='.data[134] = 0xefefefef' />
							<exp exp='.data[135] = 0xefefeffb' />
							<exp exp='.data[136] = 0xfbfbfbfb' />
							<exp exp='.data[137] = 0xfbfbd5d5' />
							<exp exp='.data[138] = 0xd5d5d5d5' />
							<exp exp='.data[139] = 0xd5666666' />
							<exp exp='.data[140] = 0x66666666' />
							<exp exp='.data[141] = 0x664f4f4f' />
							<exp exp='.data[142] = 0x4f4f4f4f' />
							<exp exp='.data[143] = 0x4f4f4f00' />
							<exp exp='.data[112] = 0xe8e8e8e8' />
							<exp exp='.data[113] = 0xe8e86767' />
							<exp exp='.data[114] = 0x67676767' />
							<exp exp='.data[115] = 0x67d2d2d2' />
							<exp exp='.data[116] = 0xd2d20000' />
							<exp exp='.data[117] = 0x0' />
							<exp exp='.data[118] = 0xefefefef' />
							<exp exp='.data[119] = 0xefefeffb' />
							<exp exp='.data[120] = 0xfbfbfbfb' />
							<exp exp='.data[121] = 0xfbfbd5d5' />
							<exp exp='.data[122] = 0xd5d5d5d5' />
							<exp exp='.data[123] = 0xd5666666' />
							<exp exp='.data[124] = 0x66666666' />
							<exp exp='.data[125] = 0x664f4f4f' />
							<exp exp='.data[126] = 0x4f4f4f4f' />
							<exp exp='.data[127] = 0x4f4f4f00' />
							<exp exp='.data[96] = 0xe8e8e8e8' />
							<exp exp='.data[97] = 0xe8e86767' />
							<exp exp='.data[98] = 0x67676767' />
							<exp exp='.data[99] = 0x67d2d2d2' />
							<exp exp='.data[100] = 0xd2d20000' />
							<exp exp='.data[101] = 0x0' />
							<exp exp='.data[102] = 0xefefefef' />
							<exp exp='.data[103] = 0xefefeffb' />
							<exp exp='.data[104] = 0xfbfbfbfb' />
							<exp exp='.data[105] = 0xfbfbd5d5' />
							<exp exp='.data[106] = 0xd5d5d5d5' />
							<exp exp='.data[107] = 0xd5666666' />
							<exp exp='.data[108] = 0x66666666' />
							<exp exp='.data[109] = 0x664f4f4f' />
							<exp exp='.data[110] = 0x4f4f4f4f' />
							<exp exp='.data[111] = 0x4f4f4f00' />
							<exp exp='.data[80] = 0xe8e8e8e8' />
							<exp exp='.data[81] = 0xe8e86767' />
							<exp exp='.data[82] = 0x67676767' />
							<exp exp='.data[83] = 0x67d2d2d2' />
							<exp exp='.data[84] = 0xd2d20000' />
							<exp exp='.data[85] = 0x0' />
							<exp exp='.data[86] = 0xefefefef' />
							<exp exp='.data[87] = 0xefefeffb' />
							<exp exp='.data[88] = 0xfbfbfbfb' />
							<exp exp='.data[89] = 0xfbfbd5d5' />
							<exp exp='.data[90] = 0xd5d5d5d5' />
							<exp exp='.data[91] = 0xd5666666' />
							<exp exp='.data[92] = 0x66666666' />
							<exp exp='.data[93] = 0x664f4f4f' />
							<exp exp='.data[94] = 0x4f4f4f4f' />
							<exp exp='.data[95] = 0x4f4f4f00' />
							<exp exp='.data[64] = 0xe8e8e8e8' />
							<exp exp='.data[65] = 0xe8e86767' />
							<exp exp='.data[66] = 0x67676767' />
							<exp exp='.data[67] = 0x67d2d2d2' />
							<exp exp='.data[68] = 0xd2d20000' />
							<exp exp='.data[69] = 0x0' />
							<exp exp='.data[70] = 0xefefefef' />
							<exp exp='.data[71] = 0xefefeffb' />
							<exp exp='.data[72] = 0xfbfbfbfb' />
							<exp exp='.data[73] = 0xfbfbd5d5' />
							<exp exp='.data[74] = 0xd5d5d5d5' />
							<exp exp='.data[75] = 0xd5666666' />
							<exp exp='.data[76] = 0x66666666' />
							<exp exp='.data[77] = 0x664f4f4f' />
							<exp exp='.data[78] = 0x4f4f4f4f' />
							<exp exp='.data[79] = 0x4f4f4f00' />
							<exp exp='.data[48] = 0xe8e8e8e8' />
							<exp exp='.data[49] = 0xe8e86767' />
							<exp exp='.data[50] = 0x67676767' />
							<exp exp='.data[51] = 0x67d2d2d2' />
							<exp exp='.data[52] = 0xd2d20000' />
							<exp exp='.data[53] = 0x0' />
							<exp exp='.data[54] = 0xefefefef' />
							<exp exp='.data[55] = 0xefefeffb' />
							<exp exp='.data[56] = 0xfbfbfbfb' />
							<exp exp='.data[57] = 0xfbfbd5d5' />
							<exp exp='.data[58] = 0xd5d5d5d5' />
							<exp exp='.data[59] = 0xd5666666' />
							<exp exp='.data[60] = 0x66666666' />
							<exp exp='.data[61] = 0x664f4f4f' />
							<exp exp='.data[62] = 0x4f4f4f4f' />
							<exp exp='.data[63] = 0x4f4f4f00' />
							<exp exp='.data[32] = 0xe8e8e8e8' />
							<exp exp='.data[33] = 0xe8e86767' />
							<exp exp='.data[34] = 0x67676767' />
							<exp exp='.data[35] = 0x67d2d2d2' />
							<exp exp='.data[36] = 0xd2d20000' />
							<exp exp='.data[37] = 0x0' />
							<exp exp='.data[38] = 0xefefefef' />
							<exp exp='.data[39] = 0xefefeffb' />
							<exp exp='.data[40] = 0xfbfbfbfb' />
							<exp exp='.data[41] = 0xfbfbd5d5' />
							<exp exp='.data[42] = 0xd5d5d5d5' />
							<exp exp='.data[43] = 0xd5666666' />
							<exp exp='.data[44] = 0x66666666' />
							<exp exp='.data[45] = 0x664f4f4f' />
							<exp exp='.data[46] = 0x4f4f4f4f' />
							<exp exp='.data[47] = 0x4f4f4f00' />
							<exp exp='.data[16] = 0xe8e8e8e8' />
							<exp exp='.data[17] = 0xe8e86767' />
							<exp exp='.data[18] = 0x67676767' />
							<exp exp='.data[19] = 0x67d2d2d2' />
							<exp exp='.data[20] = 0xd2d20000' />
							<exp exp='.data[21] = 0x0' />
							<exp exp='.data[22] = 0xefefefef' />
							<exp exp='.data[23] = 0xefefeffb' />
							<exp exp='.data[24] = 0xfbfbfbfb' />
							<exp exp='.data[25] = 0xfbfbd5d5' />
							<exp exp='.data[26] = 0xd5d5d5d5' />
							<exp exp='.data[27] = 0xd5666666' />
							<exp exp='.data[28] = 0x66666666' />
							<exp exp='.data[29] = 0x664f4f4f' />
							<exp exp='.data[30] = 0x4f4f4f4f' />
							<exp exp='.data[31] = 0x4f4f4f00' />
							<exp exp='.data[0] = 0xe8e8e8e8' />
							<exp exp='.data[1] = 0xe8e86767' />
							<exp exp='.data[2] = 0x67676767' />
							<exp exp='.data[3] = 0x67d2d2d2' />
							<exp exp='.data[4] = 0xd2d20000' />
							<exp exp='.data[5] = 0x0' />
							<exp exp='.data[6] = 0xefefefef' />
							<exp exp='.data[7] = 0xefefeffb' />
							<exp exp='.data[8] = 0xfbfbfbfb' />
							<exp exp='.data[9] = 0xfbfbd5d5' />
							<exp exp='.data[10] = 0xd5d5d5d5' />
							<exp exp='.data[11] = 0xd5666666' />
							<exp exp='.data[12] = 0x66666666' />
							<exp exp='.data[13] = 0x664f4f4f' />
							<exp exp='.data[14] = 0x4f4f4f4f' />
							<exp exp='.data[15] = 0x4f4f4f00' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='DispTextLine' >
							<argument exp='&quot;Hello - tiny 8 point font&quot;' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='Print' >
							<argument exp='&quot;Hello world - long stringABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz&amp;+%!£$%^&amp;*()-=&quot;' />
							<argument exp='0' />
							<argument exp='10' />
							<argument exp='2' />
							<argument exp='2' />
							<argument exp='false' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='SetAddrWindow' >
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='240' />
							<argument exp='240' />
						</command>
						<command class_type='call' title='Clear to qhite' cmdcolor='16711808' cmdcolor_sec='16711808' macro='SendWordMulti' >
							<argument exp='0' />
							<argument exp='240*240' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='.max = 0.0' />
							<exp exp='.min = 100.0' />
							<exp exp='foreground = Color565 (255,0,0)' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='Print' >
							<argument exp='&quot;Temp!&quot;' />
							<argument exp='20' />
							<argument exp='0' />
							<argument exp='5' />
							<argument exp='6' />
							<argument exp='0' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
							<exp exp='foreground = Color565 (0,255,0)' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='Print' >
							<argument exp='&quot; Min  Max&quot;' />
							<argument exp='0' />
							<argument exp='180' />
							<argument exp='3' />
							<argument exp='3' />
							<argument exp='false' />
						</command>
						<command class_type='loop' title='Get  temp' cmdcolor='16734039' cmdcolor_sec='16734039' type='0' exp='1' >
							<flowline >
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='12632064' exp='1' type='2' />
								<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='DHT22' macro='SampleSensor' >
									<return exp='.sensor' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='.sensor = 0' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='16711808' cmdcolor_sec='16711808' component='DHT22' macro='GetTempFloat' >
											<return exp='.temp' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='foreground = Color565 (0,0,255)' />
											<exp exp='.str = FloatToString$ (.temp,1)' />
											<exp exp='.str = .str + &quot;\x7e&quot; + &quot;C&quot;' />
										</command>
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='Print' >
											<argument exp='.str' />
											<argument exp='0' />
											<argument exp='100' />
											<argument exp='5' />
											<argument exp='7' />
											<argument exp='true' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
											<exp exp='foreground = Color565 (0,255,0)' />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='.temp &gt; .max' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='.max = .temp' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='.str = FloatToString$ (.max,1)' />
													<exp exp='.str = .str + &quot;C&quot;' />
												</command>
												<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='Print' >
													<argument exp='.str' />
													<argument exp='136' />
													<argument exp='210' />
													<argument exp='2' />
													<argument exp='3' />
													<argument exp='true' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='16734039' cmdcolor_sec='16734039' exp='.temp &lt; .min' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='.min = .temp' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='49280' cmdcolor_sec='49280' >
													<exp exp='.str = FloatToString$ (.min,1)' />
													<exp exp='.str = .str + &quot;C&quot;' />
												</command>
												<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='Print' >
													<argument exp='.str' />
													<argument exp='18' />
													<argument exp='210' />
													<argument exp='2' />
													<argument exp='3' />
													<argument exp='true' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline >
										<command class_type='call' title='Call Macro' cmdcolor='16711808' cmdcolor_sec='16711808' macro='Print' >
											<argument exp='&quot;Pfft&quot;' />
											<argument exp='0' />
											<argument exp='100' />
											<argument exp='5' />
											<argument exp='7' />
											<argument exp='true' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
					</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='20' ysz='20' zsz='20' 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' >
				<resources />
				<properties />
				<values >
					<value target='ENABLED' data='1' />
					<value target='REF' data='1' />
					<value target='CHANNEL' data='001' />
					<value target='MOSI' data='$PORTB.3' />
					<value target='MOSIPins' data='008' />
					<value target='MISO' data='$PORTB.4' />
					<value target='MISOPins' data='013' />
					<value target='CLK' data='$PORTB.5' />
					<value target='CLKPins' data='004' />
					<value target='UseAutoCS' data='0' />
					<value target='UseCS' data='0' />
					<value target='SS' data='$PORTB.2' />
					<value target='SSPins' data='000' />
					<value target='AltSSPin' data='0' />
					<value target='Mode' data='000' />
					<value target='PR_SCALE' data='004' />
					<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='InjectorHandle' data='0' />
					<value target='BMODE' data='1' />
					<value target='MOSI_PORT' data='$PORTB.3' />
					<value target='MOSI_TRIS' data='$PORTB.3' />
					<value target='MOSI_PIN' data='3' />
					<value target='MISO_PORT' data='$PORTB.4' />
					<value target='MISO_TRIS' data='$PORTB.4' />
					<value target='MISO_PIN' data='4' />
					<value target='SCK_PORT' data='$PORTB.5' />
					<value target='SCK_TRIS' data='$PORTB.5' />
					<value target='SCK_PIN' data='5' />
					<value target='SS_PORT' data='$PORTB.2' />
					<value target='SS_TRIS' data='$PORTB.2' />
					<value target='SS_PIN' data='2' />
					<value target='Remappable' data='' />
					<value target='MOSIReg' data='008' />
					<value target='CLKREG' data='004' />
					<value target='MOSIRPNUM' data='21' />
					<value target='MOSIBank' data='b' />
					<value target='MOSIBank2' data='c' />
					<value target='CLKRPNUM' data='20' />
					<value target='CLKBank' data='b' />
					<value target='MISORPREG' data='SSP1DATPPS' />
					<value target='MISOBank' data='b' />
					<value target='SPIName' data='' />
					<value target='MISOReg' data='000' />
					<value target='SPIClock' data='' />
					<value target='MISOBank2' data='c' />
					<value target='CLKBank2' data='c' />
					<value target='ParentName' data='' />
					<value target='BitDelay' data='0' />
					<value target='ClockSpeed' data='16000000' />
					<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_data' x='0' y='0' z='21.28' xsz='20' ysz='20' zsz='20' 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' >
				<resources />
				<properties />
				<values >
					<value target='StorageType' data='000' />
					<value target='Sign' data='000' />
					<value target='intfixed' data='9,
1,128,150,
17,128,255,
58,129,85,10,
54,1,0,
42,4,0,0,0,239,
43,4,0,0,0,239,
33,128,10,
19,128,10,
41,128,20' />
					<value target='floatfixed' data='' />
					<value target='NumVals' data='35' />
					<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='43.81' xsz='20' ysz='20' zsz='20' 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' >
				<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='95a1525b-7e03-4836-8c09-59bf174f603b' vmin='2' vmaj='1' codename='DHT22' x='0' y='0' z='56.885' 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' >
				<resources />
				<properties />
				<values >
					<value target='dpin' data='$PORTD.2' />
					<value target='csum' data='1' />
					<value target='ClockAdjust' data='000' />
					<value target='Nop30us' data='137.625610' />
					<value target='DeviceFamily' data='AVR' />
					<value target='InstPerMicro' data='4.915200' />
				</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='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel2d>
	<panel3d shadows='0' lighting='2' brightness='0' perspective='1' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='0' />
		<camera xe='-13.5108' ye='-13.8431' ze='378.359' xt='-13.5108' yt='-13.8431' 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---------------------wUAAAAeAAAAogMAAFICAAA' zoom='75' scrollx='0' scrolly='2412' flags='0' />
		<view type='0' name='DisplayInit' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAogMAAFICAAA' zoom='75' scrollx='0' scrolly='928' flags='0' />
		<view type='0' name='Plot' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAogMAAFICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='DrawLine' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAogMAAFICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Copy8bitBitmap' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAogMAAFICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Wheel' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAogMAAFICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Print' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAogMAAFICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='DispTextLine' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAogMAAFICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Copy24bitBitmap' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAogMAAFICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Copy16bitBitmap' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAogMAAFICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Copy1bitBitmap' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAogMAAFICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Copy4bitBitmap' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAogMAAFICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SetAddrWindow' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAogMAAFICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Color565' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAogMAAFICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SendWordMulti' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAogMAAFICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='IdleDisplay' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAogMAAFICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='WriteByte' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAogMAAFICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SendCommand' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAogMAAFICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='PushColor' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAogMAAFICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Reset' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAogMAAFICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
