<root>
<document schema='100' platform='pic8' license='Upgraded,v5 User,******' title='' description='' guid='' target='16F877A' >
	<config data='#0,3f72' clkspd='19660800' simspd='1' usewdt='0' constif='0' />
	<supplement use='1' head='rom char *xlut = {120,125,130,135,140,145,149,153,157,160,163,165,167,168,169,170,169,168,167,165,163,160,157,153,149,145,140,135,130,125,120,114,109,104,99,95,90,86,82,79,76,74,72,71,70,70,70,71,72,74,76,79,82,86,90,95,99,104,109,114};
rom char *ylut = {110,110,111,112,114,116,119,122,126,130,135,139,144,149,154,160,165,170,175,180,185,189,193,197,200,203,205,207,208,209,210,209,208,207,205,203,200,197,193,189,185,180,175,170,165,160,154,149,144,139,135,130,126,122,119,116,114,112,111,110};' body='' />
	<debug />
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' protect='11' />
		<definition guid='' vmin='0' vmaj='1' visiblename='' description='' category='' dynamic='0' standalone='0' 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' interactive='1' solid='1' layer='0' >
			<resources />
			<properties />
			<values />
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='cnt' type='ubyte' array='0' byref='0' description='' isconst='0' isinit='0' usrinit='0x0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='tog' type='ubyte' array='0' byref='0' description='' isconst='0' isinit='0' usrinit='0x0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='in' type='ubyte' array='0' byref='0' description='' isconst='0' isinit='0' usrinit='0x0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='hour' type='ubyte' array='0' byref='0' description='' isconst='0' isinit='0' usrinit='0x0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='running' type='ubyte' array='0' byref='0' description='' isconst='0' isinit='0' usrinit='0x0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='old_sec' type='ubyte' array='0' byref='0' description='' isconst='0' isinit='0' usrinit='0x0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='retval' type='ubyte' array='0' byref='0' description='' isconst='0' isinit='0' usrinit='0x0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='sec' type='ubyte' array='0' byref='0' description='' isconst='0' isinit='0' usrinit='0x0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Y' type='sint' array='0' byref='0' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='X' type='sint' array='0' byref='0' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='old_min' type='ubyte' array='0' byref='0' description='' isconst='0' isinit='0' usrinit='0x0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='min' type='ubyte' array='0' byref='0' description='' isconst='0' isinit='0' usrinit='0x0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='volume' type='ubyte' array='0' byref='0' description='' isconst='0' isinit='0' usrinit='0x0' setinit='' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Timer_Interrupt' description='' >
						<command class_type='calculation' title='Calculation' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' >
							<exp exp='cnt = cnt + 1' />
						</command>
						<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='cnt = 75' swap='0' >
							<flowline name='Timer_Interrupt' description='' >
								<command class_type='calculation' title='Calculation' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' >
									<exp exp='cnt = 0' />
									<exp exp='sec = sec + 1' />
								</command>
								<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='sec = 60' swap='0' >
									<flowline name='Timer_Interrupt' description='' >
										<command class_type='calculation' title='Calculation' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' >
											<exp exp='sec = 0' />
											<exp exp='min = min + 1' />
										</command>
										<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='min = 60' swap='0' >
											<flowline name='Timer_Interrupt' description='' >
												<command class_type='calculation' title='Calculation' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' >
													<exp exp='min = 0' />
													<exp exp='hour = hour + 1' />
												</command>
												<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='hour = 12' swap='0' >
													<flowline name='Timer_Interrupt' description='' >
														<command class_type='calculation' title='Calculation' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' >
															<exp exp='hour = 0' />
														</command>
													</flowline>
													<flowline name='Timer_Interrupt' description='' />
												</command>
											</flowline>
											<flowline name='Timer_Interrupt' description='' />
										</command>
									</flowline>
									<flowline name='Timer_Interrupt' description='' />
								</command>
							</flowline>
							<flowline name='Timer_Interrupt' description='' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Audio_Application' description='' >
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='ClearDisplay' />
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='SetForegroundColour' >
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='Print' >
							<argument exp='&quot;Audio Player&quot;' />
							<argument exp='30' />
							<argument exp='30' />
							<argument exp='2' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='SetForegroundColour' >
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='255' />
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='Print' >
							<argument exp='&quot;Play&quot;' />
							<argument exp='30' />
							<argument exp='60' />
							<argument exp='2' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='Print' >
							<argument exp='&quot;Pause&quot;' />
							<argument exp='30' />
							<argument exp='90' />
							<argument exp='2' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='Print' >
							<argument exp='&quot;Resume&quot;' />
							<argument exp='30' />
							<argument exp='120' />
							<argument exp='2' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='Print' >
							<argument exp='&quot;Volume Up&quot;' />
							<argument exp='30' />
							<argument exp='150' />
							<argument exp='2' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='Print' >
							<argument exp='&quot;Volume Down&quot;' />
							<argument exp='30' />
							<argument exp='180' />
							<argument exp='2' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='Print' >
							<argument exp='&quot;Stop&quot;' />
							<argument exp='30' />
							<argument exp='210' />
							<argument exp='2' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='Print' >
							<argument exp='&quot;Exit&quot;' />
							<argument exp='30' />
							<argument exp='240' />
							<argument exp='2' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='SetForegroundColour' >
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_EnableTouchscreenPicaso' />
						<command class_type='loop' title='Loop' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='running' type='0' start='1' count='1' breakend='0' >
							<flowline name='Audio_Application' description='' >
								<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_GetTouchCoordinatesPicaso' >
									<return exp='in' />
								</command>
								<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='in' swap='0' >
									<flowline name='Audio_Application' description='' >
										<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_ReadTouchCoordinatesPicaso' >
											<return exp='X' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_ReadTouchCoordinatesPicaso' >
											<return exp='Y' />
											<argument exp='1' />
										</command>
										<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='(X &gt; 0 &amp;&amp; X &lt; 239) &amp;&amp; (Y &gt; 45 &amp;&amp; Y &lt; 75)' swap='0' >
											<flowline name='Audio_Application' description='' >
												<command class_type='call' title='Start file playing' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_PlayAudioFromFilePicaso' >
													<argument exp='1' />
													<argument exp='&quot;d16k16.wav&quot;' />
												</command>
											</flowline>
											<flowline name='Audio_Application' description='' />
										</command>
										<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='(X &gt; 0 &amp;&amp; X &lt; 239) &amp;&amp; (Y &gt; 75 &amp;&amp; Y &lt; 105)' swap='0' >
											<flowline name='Audio_Application' description='' >
												<command class_type='call' title='Pause Playback' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_PlayAudioFromFilePicaso' >
													<argument exp='3' />
													<argument exp='&quot;&quot;' />
												</command>
											</flowline>
											<flowline name='Audio_Application' description='' />
										</command>
										<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='(X &gt; 0 &amp;&amp; X &lt; 239) &amp;&amp; (Y &gt; 105 &amp;&amp; Y &lt; 135)' swap='0' >
											<flowline name='Audio_Application' description='' >
												<command class_type='call' title='Resume Playback' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_PlayAudioFromFilePicaso' >
													<argument exp='4' />
													<argument exp='&quot;&quot;' />
												</command>
											</flowline>
											<flowline name='Audio_Application' description='' />
										</command>
										<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='(X &gt; 0 &amp;&amp; X &lt; 239) &amp;&amp; (Y &gt; 135 &amp;&amp; Y &lt; 165)' swap='0' >
											<flowline name='Audio_Application' description='' >
												<command class_type='call' title='Volume Up' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_SetVolumePicaso' >
													<argument exp='253' />
												</command>
											</flowline>
											<flowline name='Audio_Application' description='' />
										</command>
										<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='(X &gt; 0 &amp;&amp; X &lt; 239) &amp;&amp; (Y &gt; 165 &amp;&amp; Y &lt; 195)' swap='0' >
											<flowline name='Audio_Application' description='' >
												<command class_type='call' title='Volume Down' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_SetVolumePicaso' >
													<argument exp='3' />
												</command>
											</flowline>
											<flowline name='Audio_Application' description='' />
										</command>
										<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='(X &gt; 0 &amp;&amp; X &lt; 239) &amp;&amp; (Y &gt; 195 &amp;&amp; Y &lt; 225)' swap='0' >
											<flowline name='Audio_Application' description='' >
												<command class_type='call' title='Stop Playback' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_PlayAudioFromFilePicaso' >
													<argument exp='2' />
													<argument exp='&quot;&quot;' />
												</command>
											</flowline>
											<flowline name='Audio_Application' description='' />
										</command>
										<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='(X &gt; 0 &amp;&amp; X &lt; 239) &amp;&amp; (Y &gt; 225 &amp;&amp; Y &lt; 255)' swap='0' >
											<flowline name='Audio_Application' description='' >
												<command class_type='calculation' title='Calculation' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' >
													<exp exp='running = 0' />
												</command>
											</flowline>
											<flowline name='Audio_Application' description='' />
										</command>
									</flowline>
									<flowline name='Audio_Application' description='' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_DisableTouchscreenPicaso' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Draw_Application' description='' >
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_InitialiseCard' >
							<return exp='retval' />
						</command>
						<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='retval' swap='0' >
							<flowline name='Draw_Application' description='' >
								<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='Print' >
									<argument exp='&quot;Card Not Detected&quot;' />
									<argument exp='5' />
									<argument exp='5' />
									<argument exp='0' />
									<argument exp='1' />
								</command>
							</flowline>
							<flowline name='Draw_Application' description='' >
								<command class_type='call' title='Open Paint Pad Image' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_DisplayImageFromFilePicaso' >
									<return exp='retval' />
									<argument exp='0' />
									<argument exp='0' />
									<argument exp='&quot;paintpad.Gci&quot;' />
									<argument exp='0' />
									<argument exp='0' />
								</command>
								<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='retval' swap='0' >
									<flowline name='Draw_Application' description='' >
										<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='Print' >
											<argument exp='&quot;Image Error&quot;' />
											<argument exp='5' />
											<argument exp='15' />
											<argument exp='0' />
											<argument exp='1' />
										</command>
									</flowline>
									<flowline name='Draw_Application' description='' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='Print' >
							<argument exp='&quot;E&quot;' />
							<argument exp='9' />
							<argument exp='276' />
							<argument exp='1' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='Print' >
							<argument exp='&quot;X&quot;' />
							<argument exp='9' />
							<argument exp='284' />
							<argument exp='1' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='Print' >
							<argument exp='&quot;I&quot;' />
							<argument exp='9' />
							<argument exp='292' />
							<argument exp='1' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='Print' >
							<argument exp='&quot;T&quot;' />
							<argument exp='9' />
							<argument exp='300' />
							<argument exp='1' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_EnableTouchscreenPicaso' />
						<command class_type='loop' title='Loop' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='running' type='0' start='1' count='1' breakend='0' >
							<flowline name='Draw_Application' description='' >
								<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_GetTouchCoordinatesPicaso' >
									<return exp='in' />
								</command>
								<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='in' swap='0' >
									<flowline name='Draw_Application' description='' >
										<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_ReadTouchCoordinatesPicaso' >
											<return exp='X' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_ReadTouchCoordinatesPicaso' >
											<return exp='Y' />
											<argument exp='1' />
										</command>
										<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='(X &gt; 0 &amp;&amp; X &lt; 50) &amp;&amp; (Y &gt; 175 &amp;&amp; Y &lt; 210)' swap='0' >
											<flowline name='Draw_Application' description='' >
												<command class_type='call' title='Red' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='SetForegroundColour' >
													<argument exp='255' />
													<argument exp='0' />
													<argument exp='0' />
												</command>
											</flowline>
											<flowline name='Draw_Application' description='' >
												<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='(X &gt; 0 &amp;&amp; X &lt; 33) &amp;&amp; (Y &gt; 210 &amp;&amp; Y &lt; 243)' swap='0' >
													<flowline name='Draw_Application' description='' >
														<command class_type='call' title='Blue' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='SetForegroundColour' >
															<argument exp='0' />
															<argument exp='0' />
															<argument exp='255' />
														</command>
													</flowline>
													<flowline name='Draw_Application' description='' >
														<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='(X &gt; 33 &amp;&amp; X &lt; 75) &amp;&amp; (Y &gt; 210 &amp;&amp; Y &lt; 243)' swap='0' >
															<flowline name='Draw_Application' description='' >
																<command class_type='call' title='Yellow' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='SetForegroundColour' >
																	<argument exp='0xff' />
																	<argument exp='0xff' />
																	<argument exp='0' />
																</command>
															</flowline>
															<flowline name='Draw_Application' description='' >
																<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='(X &gt; 0 &amp;&amp; X &lt; 56) &amp;&amp; (Y &gt; 243 &amp;&amp; Y &lt; 263)' swap='0' >
																	<flowline name='Draw_Application' description='' >
																		<command class_type='call' title='Green' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='SetForegroundColour' >
																			<argument exp='0' />
																			<argument exp='255' />
																			<argument exp='0' />
																		</command>
																	</flowline>
																	<flowline name='Draw_Application' description='' >
																		<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='(X &gt; 56 &amp;&amp; X &lt; 83) &amp;&amp; (Y &gt; 243 &amp;&amp; Y &lt; 285)' swap='0' >
																			<flowline name='Draw_Application' description='' >
																				<command class_type='call' title='Purple' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='SetForegroundColour' >
																					<argument exp='255' />
																					<argument exp='0' />
																					<argument exp='255' />
																				</command>
																			</flowline>
																			<flowline name='Draw_Application' description='' >
																				<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='(X &gt; 26 &amp;&amp; X &lt; 56) &amp;&amp; (Y &gt; 273 &amp;&amp; Y &lt; 319)' swap='0' >
																					<flowline name='Draw_Application' description='' >
																						<command class_type='call' title='Orange' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='SetForegroundColour' >
																							<argument exp='0xFF' />
																							<argument exp='0x80' />
																							<argument exp='0' />
																						</command>
																					</flowline>
																					<flowline name='Draw_Application' description='' >
																						<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='(X &gt; 56 &amp;&amp; X &lt; 89) &amp;&amp; (Y &gt; 285 &amp;&amp; Y &lt; 319)' swap='0' >
																							<flowline name='Draw_Application' description='' >
																								<command class_type='call' title='Black' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='SetForegroundColour' >
																									<argument exp='0' />
																									<argument exp='0' />
																									<argument exp='0' />
																								</command>
																							</flowline>
																							<flowline name='Draw_Application' description='' >
																								<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='(X &gt; 0 &amp;&amp; X &lt; 26) &amp;&amp; (Y &gt; 273 &amp;&amp; Y &lt; 319)' swap='0' >
																									<flowline name='Draw_Application' description='' >
																										<command class_type='calculation' title='Exit Loop' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' >
																											<exp exp='running = 0' />
																										</command>
																									</flowline>
																									<flowline name='Draw_Application' description='' >
																										<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_DrawCircle' >
																											<argument exp='X' />
																											<argument exp='Y' />
																											<argument exp='1' />
																											<argument exp='1' />
																										</command>
																									</flowline>
																								</command>
																							</flowline>
																						</command>
																					</flowline>
																				</command>
																			</flowline>
																		</command>
																	</flowline>
																</command>
															</flowline>
														</command>
													</flowline>
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline name='Draw_Application' description='' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_DisableTouchscreenPicaso' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Video_Application' description='' >
						<command class_type='comment' title='' comment='In this example the video has been disabled. To find out more
about how to run video from the on board SD card please consult
the datasheet for more information on running videos from your
4D display.' ccode='' textshow='1' textmode='0' textarea='500,75,500,75' break='0' mark='0' disable='0' hide='0' customize='0' />
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='1' hide='0' customize='0' component='v5__glcd0' macro='G4D_DisplayVideoFromCard' >
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='240' />
							<argument exp='320' />
							<argument exp='1' />
							<argument exp='33' />
							<argument exp='400' />
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Clock_Application' description='' >
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_InitialiseCard' >
							<return exp='retval' />
						</command>
						<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='retval' swap='0' >
							<flowline name='Clock_Application' description='' >
								<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='Print' >
									<argument exp='&quot;Card Not Detected&quot;' />
									<argument exp='5' />
									<argument exp='5' />
									<argument exp='0' />
									<argument exp='1' />
								</command>
							</flowline>
							<flowline name='Clock_Application' description='' >
								<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='Print' >
									<argument exp='&quot;Card OK&quot;' />
									<argument exp='5' />
									<argument exp='5' />
									<argument exp='0' />
									<argument exp='1' />
								</command>
								<command class_type='delay' title='Delay' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='1' type='2' />
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' >
							<exp exp='old_sec = 255' />
							<exp exp='old_min = 255' />
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_EnableTouchscreenPicaso' />
						<command class_type='loop' title='Loop' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='running' type='0' start='1' count='1' breakend='0' >
							<flowline name='Clock_Application' description='' >
								<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='min != old_min' swap='0' >
									<flowline name='Clock_Application' description='' >
										<command class_type='call' title='Open Clock Image' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_DisplayImageFromFilePicaso' >
											<return exp='retval' />
											<argument exp='0' />
											<argument exp='0' />
											<argument exp='&quot;paintpad.Gci&quot;' />
											<argument exp='0x0009' />
											<argument exp='0x6800' />
										</command>
										<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='retval' swap='0' >
											<flowline name='Clock_Application' description='' >
												<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='Print' >
													<argument exp='&quot;Image Error&quot;' />
													<argument exp='5' />
													<argument exp='15' />
													<argument exp='0' />
													<argument exp='1' />
												</command>
											</flowline>
											<flowline name='Clock_Application' description='' />
										</command>
										<command class_type='native' title='C Code' comment='' ccode='FCV_X = xlut[FCV_MIN];
FCV_Y = ylut[FCV_MIN];' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' language='C' />
										<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='SetForegroundColour' >
											<argument exp='0' />
											<argument exp='0' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='DrawLine' >
											<argument exp='120' />
											<argument exp='160' />
											<argument exp='X' />
											<argument exp='Y' />
										</command>
										<command class_type='native' title='C Code' comment='' ccode='FCV_X = xlut[FCV_HOUR * 5];
FCV_Y = ylut[FCV_HOUR * 5];' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' language='C' />
										<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='SetForegroundColour' >
											<argument exp='255' />
											<argument exp='0' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='DrawLine' >
											<argument exp='120' />
											<argument exp='160' />
											<argument exp='X' />
											<argument exp='Y' />
										</command>
										<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='SetForegroundColour' >
											<argument exp='0' />
											<argument exp='0' />
											<argument exp='0' />
										</command>
										<command class_type='calculation' title='Calculation' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' >
											<exp exp='old_min = min' />
										</command>
										<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='Print' >
											<argument exp='&quot;EXIT&quot;' />
											<argument exp='108' />
											<argument exp='302' />
											<argument exp='0' />
											<argument exp='0' />
										</command>
									</flowline>
									<flowline name='Clock_Application' description='' />
								</command>
								<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='sec != old_sec' swap='0' >
									<flowline name='Clock_Application' description='' >
										<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='PrintNumber' >
											<argument exp='hour' />
											<argument exp='104' />
											<argument exp='10' />
											<argument exp='0' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='Print' >
											<argument exp='&quot;:&quot;' />
											<argument exp='116' />
											<argument exp='10' />
											<argument exp='0' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='PrintNumber' >
											<argument exp='min' />
											<argument exp='122' />
											<argument exp='10' />
											<argument exp='0' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='Print' >
											<argument exp='&quot;:&quot;' />
											<argument exp='134' />
											<argument exp='10' />
											<argument exp='0' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='PrintNumber' >
											<argument exp='sec' />
											<argument exp='140' />
											<argument exp='10' />
											<argument exp='0' />
											<argument exp='0' />
										</command>
										<command class_type='calculation' title='Calculation' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' >
											<exp exp='old_sec = sec' />
										</command>
									</flowline>
									<flowline name='Clock_Application' description='' />
								</command>
								<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_GetTouchCoordinatesPicaso' >
									<return exp='in' />
								</command>
								<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='in' swap='0' >
									<flowline name='Clock_Application' description='' >
										<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_ReadTouchCoordinatesPicaso' >
											<return exp='X' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_ReadTouchCoordinatesPicaso' >
											<return exp='Y' />
											<argument exp='1' />
										</command>
										<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='(X &gt; 80 &amp;&amp; X &lt; 170) &amp;&amp; (Y &gt; 285 &amp;&amp; Y &lt; 319)' swap='0' >
											<flowline name='Clock_Application' description='' >
												<command class_type='calculation' title='Exit Loop' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' >
													<exp exp='running = 0' />
												</command>
											</flowline>
											<flowline name='Clock_Application' description='' />
										</command>
									</flowline>
									<flowline name='Clock_Application' description='' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_DisableTouchscreenPicaso' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Gallery_Application' description='' >
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_InitialiseCard' >
							<return exp='retval' />
						</command>
						<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='retval' swap='0' >
							<flowline name='Gallery_Application' description='' >
								<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='Print' >
									<argument exp='&quot;Card Not Detected&quot;' />
									<argument exp='5' />
									<argument exp='5' />
									<argument exp='0' />
									<argument exp='1' />
								</command>
							</flowline>
							<flowline name='Gallery_Application' description='' >
								<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='Print' >
									<argument exp='&quot;Card OK&quot;' />
									<argument exp='5' />
									<argument exp='5' />
									<argument exp='0' />
									<argument exp='1' />
								</command>
								<command class_type='delay' title='Delay' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='1' type='2' />
								<command class_type='call' title='Open Dolphin Image' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_DisplayImageFromFilePicaso' >
									<return exp='retval' />
									<argument exp='0' />
									<argument exp='0' />
									<argument exp='&quot;paintpad.Gci&quot;' />
									<argument exp='0x0002' />
									<argument exp='0x5A00' />
								</command>
								<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='retval' swap='0' >
									<flowline name='Gallery_Application' description='' >
										<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='Print' >
											<argument exp='&quot;Image Error&quot;' />
											<argument exp='5' />
											<argument exp='15' />
											<argument exp='0' />
											<argument exp='1' />
										</command>
									</flowline>
									<flowline name='Gallery_Application' description='' />
								</command>
								<command class_type='delay' title='Delay' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='3' type='2' />
								<command class_type='call' title='Open Parrot Image' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_DisplayImageFromFilePicaso' >
									<return exp='retval' />
									<argument exp='0' />
									<argument exp='0' />
									<argument exp='&quot;paintpad.Gci&quot;' />
									<argument exp='0x0004' />
									<argument exp='0xB400' />
								</command>
								<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='retval' swap='0' >
									<flowline name='Gallery_Application' description='' >
										<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='Print' >
											<argument exp='&quot;Image Error&quot;' />
											<argument exp='5' />
											<argument exp='15' />
											<argument exp='0' />
											<argument exp='1' />
										</command>
									</flowline>
									<flowline name='Gallery_Application' description='' />
								</command>
								<command class_type='delay' title='Delay' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='3' type='2' />
								<command class_type='call' title='Open Wolf Image' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_DisplayImageFromFilePicaso' >
									<return exp='retval' />
									<argument exp='0' />
									<argument exp='0' />
									<argument exp='&quot;paintpad.Gci&quot;' />
									<argument exp='0x0007' />
									<argument exp='0x0E00' />
								</command>
								<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='retval' swap='0' >
									<flowline name='Gallery_Application' description='' >
										<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='Print' >
											<argument exp='&quot;Image Error&quot;' />
											<argument exp='5' />
											<argument exp='15' />
											<argument exp='0' />
											<argument exp='1' />
										</command>
									</flowline>
									<flowline name='Gallery_Application' description='' />
								</command>
								<command class_type='delay' title='Delay' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='3' type='2' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main_Menu' description='' >
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='ClearDisplay' />
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='SetForegroundColour' >
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='Print' >
							<argument exp='&quot;Main Menu&quot;' />
							<argument exp='30' />
							<argument exp='30' />
							<argument exp='2' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='SetForegroundColour' >
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='255' />
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='Print' >
							<argument exp='&quot;Gallery&quot;' />
							<argument exp='30' />
							<argument exp='60' />
							<argument exp='2' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='Print' >
							<argument exp='&quot;Drawing&quot;' />
							<argument exp='30' />
							<argument exp='90' />
							<argument exp='2' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='Print' >
							<argument exp='&quot;Clock&quot;' />
							<argument exp='30' />
							<argument exp='120' />
							<argument exp='2' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='Print' >
							<argument exp='&quot;Video Player&quot;' />
							<argument exp='30' />
							<argument exp='150' />
							<argument exp='2' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='Print' >
							<argument exp='&quot;Audio Player&quot;' />
							<argument exp='30' />
							<argument exp='180' />
							<argument exp='2' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='SetForegroundColour' >
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_InitialiseCard' >
							<return exp='retval' />
						</command>
						<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='retval' swap='0' >
							<flowline name='Main_Menu' description='' >
								<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='Print' >
									<argument exp='&quot;Card Not Detected&quot;' />
									<argument exp='5' />
									<argument exp='250' />
									<argument exp='0' />
									<argument exp='1' />
								</command>
							</flowline>
							<flowline name='Main_Menu' description='' >
								<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='Print' >
									<argument exp='&quot;Card Detected&quot;' />
									<argument exp='5' />
									<argument exp='250' />
									<argument exp='0' />
									<argument exp='1' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_EnableTouchscreenPicaso' />
						<command class_type='loop' title='Loop' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='running = 0' type='0' start='1' count='1' breakend='0' >
							<flowline name='Main_Menu' description='' >
								<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_GetTouchCoordinatesPicaso' >
									<return exp='in' />
								</command>
								<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='in' swap='0' >
									<flowline name='Main_Menu' description='' >
										<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_ReadTouchCoordinatesPicaso' >
											<return exp='X' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_ReadTouchCoordinatesPicaso' >
											<return exp='Y' />
											<argument exp='1' />
										</command>
										<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='(X &gt; 10 &amp;&amp; X &lt; 180) &amp;&amp; (Y &gt; 45 &amp;&amp; Y &lt; 75)' swap='0' >
											<flowline name='Main_Menu' description='' >
												<command class_type='calculation' title='Exit Loop' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' >
													<exp exp='running = 1' />
												</command>
											</flowline>
											<flowline name='Main_Menu' description='' />
										</command>
										<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='(X &gt; 10 &amp;&amp; X &lt; 180) &amp;&amp; (Y &gt; 75 &amp;&amp; Y &lt; 105)' swap='0' >
											<flowline name='Main_Menu' description='' >
												<command class_type='calculation' title='Exit Loop' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' >
													<exp exp='running = 2' />
												</command>
											</flowline>
											<flowline name='Main_Menu' description='' />
										</command>
										<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='(X &gt; 10 &amp;&amp; X &lt; 180) &amp;&amp; (Y &gt; 105 &amp;&amp; Y &lt; 135)' swap='0' >
											<flowline name='Main_Menu' description='' >
												<command class_type='calculation' title='Exit Loop' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' >
													<exp exp='running = 3' />
												</command>
											</flowline>
											<flowline name='Main_Menu' description='' />
										</command>
										<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='(X &gt; 10 &amp;&amp; X &lt; 180) &amp;&amp; (Y &gt; 135 &amp;&amp; Y &lt; 165)' swap='0' >
											<flowline name='Main_Menu' description='' >
												<command class_type='calculation' title='Exit Loop' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' >
													<exp exp='running = 4' />
												</command>
											</flowline>
											<flowline name='Main_Menu' description='' />
										</command>
										<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='(X &gt; 10 &amp;&amp; X &lt; 180) &amp;&amp; (Y &gt; 165 &amp;&amp; Y &lt; 195)' swap='0' >
											<flowline name='Main_Menu' description='' >
												<command class_type='calculation' title='Exit Loop' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' >
													<exp exp='running = 5' />
												</command>
											</flowline>
											<flowline name='Main_Menu' description='' />
										</command>
									</flowline>
									<flowline name='Main_Menu' description='' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='G4D_DisableTouchscreenPicaso' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='Initialise' />
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__glcd0' macro='SetBackgroundColour' >
							<argument exp='255' />
							<argument exp='255' />
							<argument exp='255' />
						</command>
						<command class_type='calculation' title='Calculation' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' >
							<exp exp='sec = 0' />
							<exp exp='min = 0' />
							<exp exp='hour = 0' />
						</command>
						<command class_type='interrupt' title='Start clock ticking' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' enable='1' name='TMR0' call='Timer_Interrupt' >
							<settings timer='1' prescale='256' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='1' />
								<option value='0' />
								<option value='8' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='calculation' title='Start by displaying menu' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' >
							<exp exp='running = 0' />
						</command>
						<command class_type='loop' title='Loop' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' exp='1' type='0' start='1' count='1' breakend='0' >
							<flowline name='Main' description='' >
								<command class_type='switch' title='Switch' comment='' ccode='' textshow='1' textmode='0' textarea='36,25,511,325' break='0' mark='0' disable='0' hide='0' customize='0' exp='running' >
									<case >
										<flowline name='Main' description='' >
											<command class_type='calculation' title='Calculation' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' >
												<exp exp='running = 0' />
											</command>
										</flowline>
									</case>
									<case exp='0' >
										<flowline name='Main' description='' >
											<command class_type='call' title='Call Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' macro='Main_Menu' />
										</flowline>
									</case>
									<case exp='1' >
										<flowline name='Main' description='' >
											<command class_type='call' title='Call Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' macro='Gallery_Application' />
											<command class_type='calculation' title='Calculation' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' >
												<exp exp='running = 0' />
											</command>
										</flowline>
									</case>
									<case exp='2' >
										<flowline name='Main' description='' >
											<command class_type='call' title='Call Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' macro='Draw_Application' />
										</flowline>
									</case>
									<case exp='3' >
										<flowline name='Main' description='' >
											<command class_type='call' title='Call Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' macro='Clock_Application' />
										</flowline>
									</case>
									<case exp='4' >
										<flowline name='Main' description='' >
											<command class_type='call' title='Call Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' macro='Video_Application' />
											<command class_type='calculation' title='Calculation' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' >
												<exp exp='running = 0' />
											</command>
										</flowline>
									</case>
									<case exp='5' >
										<flowline name='Main' description='' >
											<command class_type='call' title='Call Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' macro='Audio_Application' />
										</flowline>
									</case>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='c6586b24-9a1c-4e19-8051-8ae5923c418a' vmin='0' vmaj='0' codename='v5__glcd0' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' >
				<resources />
				<properties />
				<values >
					<value target='reset_pin' data='$PORTC0.5' />
					<value target='tx_pin' data='$PORTC0.6' />
					<value target='rx_pin' data='$PORTC0.7' />
					<value target='channel' data='1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
</document>
</root>
