<root>
<document schema='101' license='1,ScottOpenshaw,MQKF7W' title='' description='' target='PIC.16F.16F1938' >
	<config data='!0,ea4!10,1633%0,4%3,0%5,1%6,0%7,1%8,0%9,3%b,1%c,0%d,0%10,3%14,3%18,0%19,1%1a,1%1c,1%1d,0' clkspd='32000000' simspd='1' usewdt='0' constif='0' />
	<plugins >
		<dll_dbg_icd enabled='0' >
			<data name='debug' value='1' />
			<data name='userpins' value='0' />
			<data name='speed' value='0' />
			<data name='usev9' value='0' />
			<data name='breaks' value='8' />
			<data name='stacks' value='8' />
			<data name='clkport' value='1' />
			<data name='clkbit' value='6' />
			<data name='dataport' value='1' />
			<data name='databit' value='7' />
			<data name='monitor' value='1' />
			<data name='ictloop' value='0' />
			<data name='ictrate' value='20000' />
			<data name='ictmask' value='0' />
		</dll_dbg_icd>
		<dll_models enabled='1' />
		<dll_upgrader enabled='1' />
		<dll_webhelp enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug />
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='6637141a-3e3e-4746-8124-9ba4d8a5b77a' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='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' poslock='0' >
			<resources />
			<properties />
			<values />
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='Count' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Ion_Ontime' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Up_b' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ReadProgSW' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Second' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</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='PortC_Bit3' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='DisplayFunction' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Count_5' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Count_4' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Count_3' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Tick' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Count_2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Count_1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Y' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='milliamps' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Minutes' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='X' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TimerTick' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Up' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='eepromvalue1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pwm' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='eepromvalue0' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Program' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='mA_0' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Seconds' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Minute' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Update' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='OX_Ontime' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='milliamps_1' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Previous_y' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='mA' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Voltage_1' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Down_b' type='b1' 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='voltage_0' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Previous_x' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Down' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Minutes_PortC_Bit3' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Reset' description='' >
						<command class_type='decision' title='Decision' exp='tick &gt; 122' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='Tick = 0' />
									<exp exp='Seconds = Seconds + 1' />
								</command>
								<command class_type='decision' title='Decision' exp='Seconds &lt; 60' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='Seconds = Seconds + 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='Seconds = 0' />
											<exp exp='Minutes = Minutes + 1' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' exp='minutes &lt; 20' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='Minutes = Minutes + 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='native' title='C Code' ccode='asm
(&quot;reset&quot;);' language='C' />
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Displayfunction4_1' description='' >
						<command class_type='decision' title='Decision' exp='Update = 1' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='ClearLine' >
									<argument exp='1' />
								</command>
								<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='Cursor' >
									<argument exp='0' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='Call Component Macro' component='pot_color_cap2' macro='GetAverageInt' >
									<return exp='voltage_0' />
									<argument exp='50' />
									<argument exp='5' />
								</command>
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
									<exp exp='milliamps = voltage_0 * 4.98999 / 0.48' />
									<exp exp='' />
									<exp exp='' />
								</command>
								<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='PrintNumber' >
									<argument exp='milliamps' />
								</command>
								<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='Cursor' >
									<argument exp='5' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='PrintString' >
									<argument exp='&quot;mA BLUE ION&quot;' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Displayfunction0B' description='' >
						<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='ClearLine' >
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='Cursor' >
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='PrintNumber' >
							<argument exp='y' />
						</command>
						<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='Cursor' >
							<argument exp='3' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='PrintString' >
							<argument exp='&quot;% BLUE POWER&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='eeprom1' macro='Write' >
							<argument exp='3' />
							<argument exp='y' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='previous_y = y' />
						</command>
						<command class_type='delay' title='Delay' exp='15' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Displayfunction0A' description='' >
						<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='ClearLine' >
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='Cursor' >
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='print' component='LCDAdafruitOLED1' macro='PrintNumber' >
							<argument exp='x' />
						</command>
						<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='Cursor' >
							<argument exp='3' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='PrintString' >
							<argument exp='&quot;% RED POWER&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='eeprom1' macro='Write' >
							<argument exp='2' />
							<argument exp='x' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='previous_x = x' />
						</command>
						<command class_type='delay' title='Delay' exp='15' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='DisplayFunction4' description='' >
						<command class_type='decision' title='Decision' exp='Update = 1' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='ClearLine' >
									<argument exp='0' />
								</command>
								<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='Cursor' >
									<argument exp='0' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='pot_color_cap1' macro='GetAverageInt' >
									<return exp='Voltage_1' />
									<argument exp='50' />
									<argument exp='5' />
								</command>
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
									<exp exp='' />
									<exp exp='milliamps_1 = voltage_1 * 4.98999 / 0.479' />
									<exp exp='' />
								</command>
								<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='PrintNumber' >
									<argument exp='milliamps_1' />
								</command>
								<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='Cursor' >
									<argument exp='5' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='PrintString' >
									<argument exp='&quot;mA RED  OXI&quot;' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Displayfunction1' description='' >
						<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='ClearLine' >
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='Cursor' >
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='PrintNumber' >
							<argument exp='OX_ONTIME' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='eeprom1' macro='Write' >
							<argument exp='1' />
							<argument exp='OX_OnTime' />
						</command>
						<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='Cursor' >
							<argument exp='5' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='PrintString' >
							<argument exp='&quot;MIN ON RED&quot;' />
						</command>
						<command class_type='delay' title='Delay' exp='10' type='1' />
						<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='ClearLine' >
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='Cursor' >
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='PrintNumber' >
							<argument exp='ION_OnTime' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='eeprom1' macro='Write' >
							<argument exp='0' />
							<argument exp='ION_OnTime' />
						</command>
						<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='Cursor' >
							<argument exp='5' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='PrintString' >
							<argument exp='&quot;MIN ON BLUE&quot;' />
						</command>
						<command class_type='delay' title='Delay' exp='10' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='CountDown' description='' >
						<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='TimerTick &lt; 59' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
									<exp exp='TimerTick = TimerTick + 1' />
									<exp exp='' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
									<exp exp='TimerTick = 0' />
									<exp exp='Count_3 = Count_3 + 1' />
									<exp exp='' />
									<exp exp='' />
								</command>
								<command class_type='decision' title='Decision' exp='Count_3 &lt; 2000' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='Count_3 = Count_3 + 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='Count_3 = 0' />
										</command>
										<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='OX_OnTime &gt; 0' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
													<exp exp='OX_OnTime = OX_OnTime - 1' />
												</command>
												<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Read' >
													<return exp='X' />
													<argument exp='2' />
												</command>
												<command class_type='call' title='Call Component Macro' component='PWM1' macro='SetDutyCycle' >
													<argument exp='x' />
												</command>
											</flowline>
											<flowline >
												<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='OX_OnTime = 0' swap='0' >
													<flowline >
														<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='PWM1' macro='SetDutyCycle' >
															<argument exp='0' />
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
										</command>
										<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='ION_OnTime &gt; 0' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
													<exp exp='ION_OnTime = ION_OnTime - 1' />
												</command>
												<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Read' >
													<return exp='Y' />
													<argument exp='3' />
												</command>
												<command class_type='call' title='Call Component Macro' component='PWM2' macro='SetDutyCycle' >
													<argument exp='y' />
												</command>
											</flowline>
											<flowline >
												<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='ION_OnTime = 0' swap='0' >
													<flowline >
														<command class_type='call' title='Call Component Macro' component='PWM2' macro='SetDutyCycle' >
															<argument exp='0' />
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='TMR0INT' description='' >
						<command class_type='calculation' title='Calculation' >
							<exp exp='' />
							<exp exp='Count_1 = Count_1 + 1' />
						</command>
						<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='Count_1 &gt; 122' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='Count_1 = 0' />
									<exp exp='Second = Second + 1' />
									<exp exp='Count_2 = Count_2 + 1' />
									<exp exp='TimerTick = TimerTick + 1' />
									<exp exp='Count_4 = Count_4 + 1' />
									<exp exp='Count_5 = Count_5 + 1' />
									<exp exp='Tick = Tick + 1' />
									<exp exp='' />
								</command>
								<command class_type='decision' title='Decision' exp='Second = 2' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='Second = 0' />
											<exp exp='Update = 1' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='Count_2 &gt; 60' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
											<exp exp='Count_2 = 0' />
											<exp exp='Minutes_PortC_Bit3 = Minutes_PortC_Bit3 + 1' />
											<exp exp='Minutes = Minutes + 1' />
										</command>
										<command class_type='decision' title='Decision' exp='Minutes_PortC_Bit3 = 20' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
													<exp exp='Minutes_PortC_Bit3 = 0' />
													<exp exp='PortC_Bit3 = !PortC_Bit3' />
												</command>
												<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='PortC_Bit3' swap='0' >
													<flowline >
														<command class_type='output' title='Output' textarea='36,0,511,300' mode='1' port='1048578' mask='8' exp='1' />
													</flowline>
													<flowline >
														<command class_type='output' title='Output' textarea='36,0,511,300' mode='1' port='1048578' mask='8' exp='0' />
													</flowline>
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Decision' exp='minutes &lt; 2590' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='Minutes = Minutes + 1' />
												</command>
											</flowline>
											<flowline >
												<command class_type='native' title='C Code' ccode='asm
(&quot;reset&quot;);' language='C' />
											</flowline>
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='TimerTick &lt; 59' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
											<exp exp='TimerTick = TimerTick + 1' />
											<exp exp='' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
											<exp exp='TimerTick = 0' />
											<exp exp='Count_3 = Count_3 + 1' />
											<exp exp='' />
											<exp exp='' />
										</command>
										<command class_type='decision' title='Decision' exp='Count_3 &lt; 2' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='Count_3 = Count_3 + 1' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='Count_3 = 0' />
												</command>
												<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='OX_OnTime &gt; 0' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
															<exp exp='OX_OnTime = OX_OnTime - 1' />
														</command>
														<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Read' >
															<return exp='X' />
															<argument exp='2' />
														</command>
														<command class_type='call' title='Call Component Macro' component='PWM1' macro='SetDutyCycle' >
															<argument exp='x' />
														</command>
													</flowline>
													<flowline >
														<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='OX_OnTime = 0' swap='0' >
															<flowline >
																<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='PWM1' macro='SetDutyCycle' >
																	<argument exp='0' />
																</command>
															</flowline>
															<flowline />
														</command>
													</flowline>
												</command>
												<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='ION_OnTime &gt; 0' swap='0' >
													<flowline >
														<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
															<exp exp='ION_OnTime = ION_OnTime - 1' />
														</command>
														<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Read' >
															<return exp='Y' />
															<argument exp='3' />
														</command>
														<command class_type='call' title='Call Component Macro' component='PWM2' macro='SetDutyCycle' >
															<argument exp='y' />
														</command>
													</flowline>
													<flowline >
														<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='ION_OnTime = 0' swap='0' >
															<flowline >
																<command class_type='call' title='Call Component Macro' component='PWM2' macro='SetDutyCycle' >
																	<argument exp='0' />
																</command>
															</flowline>
															<flowline />
														</command>
													</flowline>
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Polarity' description='' >
						<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='Count_2 &gt; 120' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
									<exp exp='Count_2 = 0' />
									<exp exp='Minutes_PortC_Bit3 = Minutes_PortC_Bit3 + 1' />
									<exp exp='' />
								</command>
								<command class_type='decision' title='Decision' exp='Minutes_PortC_Bit3 = 3' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
											<exp exp='Minutes_PortC_Bit3 = 0' />
											<exp exp='PortC_Bit3 = !PortC_Bit3' />
										</command>
										<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='PortC_Bit3' swap='0' >
											<flowline >
												<command class_type='output' title='Output' textarea='36,0,511,300' mode='1' port='1048578' mask='8' exp='1' />
											</flowline>
											<flowline >
												<command class_type='output' title='Output' textarea='36,0,511,300' mode='1' port='1048578' mask='8' exp='0' />
											</flowline>
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<command class_type='native' title='C Code' textarea='36,0,511,300' ccode='osccon=0xf0;//32Mhz' language='C' />
						<command class_type='comment' title='' comment='OLED start delay' textarea='12,0,12,0' />
						<command class_type='output' title='Output' mode='1' port='1048578' mask='128' exp='1' />
						<command class_type='delay' title='Delay' exp='1' type='2' />
						<command class_type='output' title='Output' mode='1' port='1048578' mask='128' exp='0' />
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
							<exp exp='previous_x = 5' />
							<exp exp='previous_y = 5' />
							<exp exp='eepromvalue0 = 2' />
							<exp exp='eepromvalue1 = 3' />
							<exp exp='x = eepromvalue0' />
							<exp exp='y = eepromvalue1' />
							<exp exp='pwm = 0' />
							<exp exp='TimerTick = 0' />
							<exp exp='Tick = 0' />
							<exp exp='Seconds = 0' />
							<exp exp='Minutes = 0' />
							<exp exp='Minute = 0' />
							<exp exp='Count = 0' />
							<exp exp='Count_1 = 0' />
							<exp exp='Count_2 = 0' />
							<exp exp='Count_3 = 0' />
							<exp exp='Count_4 = 0' />
							<exp exp='Count_5 = 0' />
							<exp exp='' />
							<exp exp='PortC_Bit3 = 0' />
							<exp exp='Minutes_PortC_Bit3 = 1' />
							<exp exp='DisplayFunction = 0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='Clear' />
						<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='Cursor' >
							<argument exp='5' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='PrintString' >
							<argument exp='&quot;READ&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='Cursor' >
							<argument exp='1' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='PrintString' >
							<argument exp='&quot;INSTRUCTIONS&quot;' />
						</command>
						<command class_type='delay' title='Delay' exp='1' type='2' />
						<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='Clear' />
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Read' >
							<return exp='Ion_ONTime' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Read' >
							<return exp='OX_Ontime' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='Cursor' >
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='PrintNumber' >
							<argument exp='OX_Ontime' />
						</command>
						<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='Cursor' >
							<argument exp='5' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='PrintString' >
							<argument exp='&quot;MIN ON RED&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='Cursor' >
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='PrintNumber' >
							<argument exp='Ion_Ontime' />
						</command>
						<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='Cursor' >
							<argument exp='5' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='PrintString' >
							<argument exp='&quot;MIN ON BLUE&quot;' />
						</command>
						<command class_type='delay' title='Delay' exp='2' type='2' />
						<command class_type='call' title='Call Component Macro' component='LCDAdafruitOLED1' macro='Clear' />
						<command class_type='call' title='Call Component Macro' component='PWM1' macro='Enable' />
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Read' >
							<return exp='X' />
							<argument exp='2' />
						</command>
						<command class_type='call' title='Call Component Macro' component='PWM1' macro='SetDutyCycle' >
							<argument exp='x' />
						</command>
						<command class_type='call' title='Call Component Macro' component='PWM2' macro='Enable' />
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Read' >
							<return exp='Y' />
							<argument exp='3' />
						</command>
						<command class_type='call' title='Call Component Macro' component='PWM2' macro='SetDutyCycle' >
							<argument exp='y' />
						</command>
						<command class_type='interrupt' title='Interrupt' textarea='36,0,511,300' enable='1' name='TMR0' call='TMR0INT' >
							<settings timer='1' prescale='256' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAA' masklo='-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAA' >
								<option value='1' />
								<option value='0' />
								<option value='8' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='loop' title='Loop' textarea='36,0,511,300' type='0' exp='1' >
							<flowline >
								<command class_type='input' title='Input' textarea='36,0,511,300' mode='1' port='1048576' mask='128' exp='ReadProgSW' />
								<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='ReadProgSW' swap='0' >
									<flowline >
										<command class_type='loop' title='Loop' textarea='36,0,511,300' type='0' exp='ReadProgSW' start='0' >
											<flowline >
												<command class_type='input' title='Input' textarea='36,0,511,300' mode='1' port='1048576' mask='128' exp='ReadProgSW' />
												<command class_type='delay' title='Delay' exp='50' type='1' />
											</flowline>
										</command>
										<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='DisplayFunction &lt; 1' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
													<exp exp='DisplayFunction = DisplayFunction + 1' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
													<exp exp='DisplayFunction = 0' />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='input' title='Input' textarea='36,0,511,300' mode='1' port='1048576' mask='4' exp='Down' />
								<command class_type='input' title='Input' textarea='36,0,511,300' mode='1' port='1048576' mask='8' exp='Up' />
								<command class_type='input' title='Input' textarea='36,0,511,300' mode='1' port='1048576' mask='16' exp='Down_b' />
								<command class_type='input' title='Input' textarea='36,0,511,300' mode='1' port='1048576' mask='32' exp='Up_b' />
								<command class_type='switch' title='Switch' textarea='36,25,511,325' exp='DisplayFunction' >
									<case >
										<flowline />
									</case>
									<case exp='0' >
										<flowline >
											<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
												<exp exp='Program = 1' />
											</command>
											<command class_type='calculation' title='Calculation' >
												<exp exp='milliamps = 0' />
												<exp exp='milliamps_1 = 0' />
												<exp exp='mA = 0' />
												<exp exp='mA_0 = 0' />
												<exp exp='Voltage_0 = 0' />
												<exp exp='Voltage_1 = 0' />
											</command>
											<command class_type='call' title='Call Macro' textarea='36,0,511,300' macro='DisplayFunction4' />
											<command class_type='call' title='Call Macro' macro='Displayfunction4_1' />
											<command class_type='calculation' title='Calculation' >
												<exp exp='Program = 0' />
											</command>
											<command class_type='decision' title='Decision' exp='Up = 1' swap='0' >
												<flowline >
													<command class_type='call' title='Call Macro' macro='Displayfunction0A' />
													<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
														<exp exp='x = x + 1' />
													</command>
													<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='x = 101' swap='0' >
														<flowline >
															<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
																<exp exp='x = 0' />
															</command>
														</flowline>
														<flowline />
													</command>
													<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' ccode='//Call Component Macro
//Call Component Macro: SetDutyCycle(x)
FCD_PWM0_SetDutyCycle(FCV_X);
' component='PWM1' macro='SetDutyCycle' >
														<argument exp='x' />
													</command>
													<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='x = 0' swap='0' >
														<flowline >
															<command class_type='output' title='Output' textarea='36,0,511,300' mode='1' port='1048578' mask='32' exp='0' />
														</flowline>
														<flowline />
													</command>
													<command class_type='delay' title='Delay' exp='15' type='1' />
												</flowline>
												<flowline >
													<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='down = 1' swap='0' >
														<flowline >
															<command class_type='call' title='Call Macro' macro='Displayfunction0A' />
															<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
																<exp exp='x = x - 1' />
															</command>
															<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='x = 255' swap='0' >
																<flowline >
																	<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
																		<exp exp='x = 100' />
																	</command>
																</flowline>
																<flowline />
															</command>
															<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' ccode='//Call Component Macro
//Call Component Macro: SetDutyCycle(x)
FCD_PWM0_SetDutyCycle(FCV_X);
' component='PWM1' macro='SetDutyCycle' >
																<argument exp='x' />
															</command>
															<command class_type='delay' title='Delay' exp='15' type='1' />
														</flowline>
														<flowline />
													</command>
												</flowline>
											</command>
											<command class_type='decision' title='Decision' exp='(Up = 0) &amp;&amp; (Down = 0)' swap='0' >
												<flowline >
													<command class_type='call' title='Call Macro' macro='DisplayFunction4' />
												</flowline>
												<flowline />
											</command>
											<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='up_b = 1' swap='0' >
												<flowline >
													<command class_type='call' title='Call Macro' macro='Displayfunction0B' />
													<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
														<exp exp='y = y + 1' />
													</command>
													<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='y = 101' swap='0' >
														<flowline >
															<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
																<exp exp='y = 0' />
															</command>
														</flowline>
														<flowline />
													</command>
													<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' ccode='//Call Component Macro
//Call Component Macro: SetDutyCycle(x)
FCD_PWM0_SetDutyCycle(FCV_X);
' component='PWM2' macro='SetDutyCycle' >
														<argument exp='y' />
													</command>
													<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='y = 0' swap='0' >
														<flowline >
															<command class_type='output' title='Output' textarea='36,0,511,300' mode='1' port='1048578' mask='8' exp='0' />
														</flowline>
														<flowline />
													</command>
													<command class_type='delay' title='Delay' exp='15' type='1' />
												</flowline>
												<flowline >
													<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='down_b = 1' swap='0' >
														<flowline >
															<command class_type='call' title='Call Macro' macro='Displayfunction0B' />
															<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
																<exp exp='y = y - 1' />
															</command>
															<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='y = 255' swap='0' >
																<flowline >
																	<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
																		<exp exp='y = 100' />
																	</command>
																</flowline>
																<flowline />
															</command>
															<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' ccode='//Call Component Macro
//Call Component Macro: SetDutyCycle(x)
FCD_PWM0_SetDutyCycle(FCV_X);
' component='PWM2' macro='SetDutyCycle' >
																<argument exp='y' />
															</command>
															<command class_type='delay' title='Delay' exp='15' type='1' />
														</flowline>
														<flowline />
													</command>
												</flowline>
											</command>
											<command class_type='decision' title='Decision' exp='(Up_b = 0) &amp;&amp; (Down_b = 0)' swap='0' >
												<flowline >
													<command class_type='call' title='Call Macro' macro='Displayfunction4_1' />
												</flowline>
												<flowline />
											</command>
											<command class_type='calculation' title='Calculation' >
												<exp exp='Update = 0' />
											</command>
										</flowline>
									</case>
									<case exp='1' >
										<flowline >
											<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
												<exp exp='Program = 1' />
												<exp exp='' />
											</command>
											<command class_type='call' title='Call Macro' textarea='36,0,511,300' macro='Displayfunction1' />
											<command class_type='calculation' title='Calculation' >
												<exp exp='Program = 0' />
												<exp exp='' />
												<exp exp='' />
											</command>
											<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='up = 1' swap='0' >
												<flowline >
													<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='OX_OnTime &lt; 1440' swap='0' >
														<flowline >
															<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
																<exp exp='OX_OnTime = OX_OnTime + 1' />
															</command>
														</flowline>
														<flowline />
													</command>
												</flowline>
												<flowline >
													<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='down = 1' swap='0' >
														<flowline >
															<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='OX_OnTime &gt; 0' swap='0' >
																<flowline >
																	<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
																		<exp exp='OX_OnTime = OX_OnTime - 1' />
																	</command>
																</flowline>
																<flowline />
															</command>
														</flowline>
														<flowline />
													</command>
												</flowline>
											</command>
											<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='up_b = 1' swap='0' >
												<flowline >
													<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='ION_OnTime &lt; 1440' swap='0' >
														<flowline >
															<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
																<exp exp='ION_OnTime = ION_OnTime + 1' />
															</command>
														</flowline>
														<flowline />
													</command>
												</flowline>
												<flowline >
													<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='down_b = 1' swap='0' >
														<flowline >
															<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='ION_OnTime &gt; 0' swap='0' >
																<flowline >
																	<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
																		<exp exp='ION_OnTime = ION_OnTime - 1' />
																	</command>
																</flowline>
																<flowline />
															</command>
														</flowline>
														<flowline />
													</command>
												</flowline>
											</command>
											<command class_type='decision' title='Decision' exp='(Up = 1) || (Down = 1) || (UP_b = 1) || (Down_b = 1)' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
														<exp exp='DisplayFunction = 1' />
														<exp exp='Count_4 = 0' />
														<exp exp='' />
													</command>
												</flowline>
												<flowline >
													<command class_type='calculation' title='Calculation' >
														<exp exp='Count_4 = Count_4 + 1' />
													</command>
													<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='(Up = 0) &amp;&amp; (Down = 0) &amp;&amp; (Up_b = 0) &amp;&amp; (Down_b = 0)' swap='0' >
														<flowline >
															<command class_type='decision' title='Decision' exp='Count_4 &gt; 120' swap='0' >
																<flowline >
																	<command class_type='calculation' title='Calculation' >
																		<exp exp='Count_4 = 0' />
																		<exp exp='DisplayFunction = 0' />
																		<exp exp='' />
																	</command>
																</flowline>
																<flowline />
															</command>
														</flowline>
														<flowline />
													</command>
												</flowline>
											</command>
										</flowline>
									</case>
									<case exp='2' >
										<flowline >
											<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
												<exp exp='Program = 1' />
												<exp exp='' />
											</command>
											<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='x &lt;&gt; previous_x || Program' swap='0' >
												<flowline >
													<command class_type='call' title='Call Macro' textarea='36,0,511,300' macro='Displayfunction0A' />
												</flowline>
												<flowline />
											</command>
											<command class_type='decision' title='Decision' exp='y &lt;&gt; previous_y || Program' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
														<exp exp='Program = 0' />
													</command>
													<command class_type='call' title='Call Macro' textarea='36,0,511,300' macro='Displayfunction0B' />
												</flowline>
												<flowline />
											</command>
											<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='up_b = 1' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
														<exp exp='y = y + 1' />
													</command>
													<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='y = 101' swap='0' >
														<flowline >
															<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
																<exp exp='y = 0' />
															</command>
														</flowline>
														<flowline />
													</command>
													<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' ccode='//Call Component Macro
//Call Component Macro: SetDutyCycle(x)
FCD_PWM0_SetDutyCycle(FCV_X);
' component='PWM2' macro='SetDutyCycle' >
														<argument exp='y' />
													</command>
													<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='y = 0' swap='0' >
														<flowline >
															<command class_type='output' title='Output' textarea='36,0,511,300' mode='1' port='1048578' mask='8' exp='0' />
														</flowline>
														<flowline />
													</command>
												</flowline>
												<flowline >
													<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='down_b = 1' swap='0' >
														<flowline >
															<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
																<exp exp='y = y - 1' />
															</command>
															<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='y = 255' swap='0' >
																<flowline >
																	<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
																		<exp exp='y = 100' />
																	</command>
																</flowline>
																<flowline />
															</command>
															<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' ccode='//Call Component Macro
//Call Component Macro: SetDutyCycle(x)
FCD_PWM0_SetDutyCycle(FCV_X);
' component='PWM2' macro='SetDutyCycle' >
																<argument exp='y' />
															</command>
														</flowline>
														<flowline />
													</command>
												</flowline>
											</command>
											<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='up = 1' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
														<exp exp='x = x + 1' />
													</command>
													<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='x = 101' swap='0' >
														<flowline >
															<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
																<exp exp='x = 0' />
															</command>
														</flowline>
														<flowline />
													</command>
													<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' ccode='//Call Component Macro
//Call Component Macro: SetDutyCycle(x)
FCD_PWM0_SetDutyCycle(FCV_X);
' component='PWM1' macro='SetDutyCycle' >
														<argument exp='x' />
													</command>
													<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='x = 0' swap='0' >
														<flowline >
															<command class_type='output' title='Output' textarea='36,0,511,300' mode='1' port='1048578' mask='32' exp='0' />
														</flowline>
														<flowline />
													</command>
												</flowline>
												<flowline >
													<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='down = 1' swap='0' >
														<flowline >
															<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
																<exp exp='x = x - 1' />
															</command>
															<command class_type='decision' title='Decision' textarea='36,0,511,300' exp='x = 255' swap='0' >
																<flowline >
																	<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
																		<exp exp='x = 100' />
																	</command>
																</flowline>
																<flowline />
															</command>
															<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' ccode='//Call Component Macro
//Call Component Macro: SetDutyCycle(x)
FCD_PWM0_SetDutyCycle(FCV_X);
' component='PWM1' macro='SetDutyCycle' >
																<argument exp='x' />
															</command>
														</flowline>
														<flowline />
													</command>
												</flowline>
											</command>
										</flowline>
									</case>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='672cb410-6026-403b-aff7-0628fe9e8140' vmin='8' vmaj='1' codename='LCDAdafruitOLED1' x='-8' y='56' z='3.575' xsz='176' ysz='72' zsz='7.15' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='d0_pin' data='$PORTB.0' />
					<value target='d1_pin' data='$PORTB.1' />
					<value target='d2_pin' data='$PORTB.2' />
					<value target='d3_pin' data='$PORTB.3' />
					<value target='rs_pin' data='$PORTB.4' />
					<value target='rw_pin' data='$PORTB.5' />
					<value target='enable_pin' data='$PORTB.6' />
					<value target='Rows' data='2' />
					<value target='Columns' data='16' />
					<value target='BackgroundColor' data='4720649' />
					<value target='LineColor' data='8388608' />
					<value target='TextColor' data='16776960' />
					<value target='Font' data='Arial' />
					<value target='CursorPosX' data='16' />
					<value target='CursorPosY' data='1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='5c1da48f-ce54-4622-bdd9-fc812e373696' vmin='0' vmaj='1' codename='sw_push_rnd_pnl1' x='-56' y='0' z='-6.175' 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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTA.3' />
					<value target='polarity' data='000' />
					<value target='debounce' data='10' />
					<value target='operation' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='5c1da48f-ce54-4622-bdd9-fc812e373696' vmin='0' vmaj='1' codename='sw_push_rnd_pnl2' x='-56' y='-24' z='-6.175' 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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTA.2' />
					<value target='polarity' data='000' />
					<value target='debounce' data='10' />
					<value target='operation' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='5c1da48f-ce54-4622-bdd9-fc812e373696' vmin='0' vmaj='1' codename='sw_push_rnd_pnl3' x='0' y='0' z='-6.175' 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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTA.5' />
					<value target='polarity' data='000' />
					<value target='debounce' data='10' />
					<value target='operation' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='5c1da48f-ce54-4622-bdd9-fc812e373696' vmin='0' vmaj='1' codename='sw_push_rnd_pnl4' x='0' y='-24' z='-6.175' 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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTA.4' />
					<value target='polarity' data='000' />
					<value target='debounce' data='10' />
					<value target='operation' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='5c1da48f-ce54-4622-bdd9-fc812e373696' vmin='0' vmaj='1' codename='sw_push_rnd_pnl5' x='-24' y='-8' z='-6.175' xsz='0.851064' ysz='0.851064' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTA.7' />
					<value target='polarity' data='000' />
					<value target='debounce' data='10' />
					<value target='operation' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='dcbf571f-a6fa-402d-bdd4-be00cca4070f' vmin='1' vmaj='1' codename='eeprom1' x='112' y='-72' z='1.24088' xsz='20' ysz='20' zsz='20' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='EESize' data='256 byte' />
					<value target='EEbitdepth' data='8 bit' />
					<value target='InitialValues' data='0,1,0x2,0x03,&apos;A&apos;,&apos;b&apos;,&quot;Hello&quot;' />
					<value target='InitValsParsed' data='0,1,0x2,0x03,&apos;A&apos;,&apos;b&apos;,&apos;H&apos;,&apos;e&apos;,&apos;l&apos;,&apos;l&apos;,&apos;o&apos;' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='444fb704-814c-4707-a15c-759ba088505c' vmin='5' vmaj='1' codename='PWM1' x='-47.9999' y='-71.9999' z='1.302' xsz='1.4' ysz='1.4' zsz='1.4' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='1' poslock='1' >
				<resources />
				<properties />
				<values >
					<value target='channel' data='001' />
					<value target='altpin' data='0' />
					<value target='pwm_pin' data='$PORTC.2' />
					<value target='RemapPin' data='' />
					<value target='period' data='100' />
					<value target='prescale' data='000' />
					<value target='period_calc' data='12.625146' />
					<value target='frequency_calc' data='79.207001' />
					<value target='pwm_prescale' data='1' />
					<value target='SimRep' data='001' />
					<value target='DispPeriods' data='003' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='444fb704-814c-4707-a15c-759ba088505c' vmin='5' vmaj='1' codename='PWM2' x='48.0001' y='-71.9999' z='1.302' xsz='1.4' ysz='1.4' zsz='1.4' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='1' poslock='1' >
				<resources />
				<properties />
				<values >
					<value target='channel' data='002' />
					<value target='altpin' data='0' />
					<value target='pwm_pin' data='$PORTC.1' />
					<value target='RemapPin' data='' />
					<value target='period' data='100' />
					<value target='prescale' data='000' />
					<value target='period_calc' data='12.625146' />
					<value target='frequency_calc' data='79.207001' />
					<value target='pwm_prescale' data='1' />
					<value target='SimRep' data='001' />
					<value target='DispPeriods' data='003' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='7fdaec78-394e-4ec9-a578-4f1a12a12076' vmin='1' vmaj='1' codename='led_5mm_clip1' x='-88' y='8' z='-3.85' xsz='2.05128' ysz='2.05128' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTC.3' />
					<value target='polarity' data='001' />
					<value target='on_color' data='8453975' />
					<value target='show_label' data='002' />
					<value target='label_property' data='pin' />
					<value target='label_color' data='16777215' />
					<value target='label_scale' data='1.000000' />
					<value target='label_auto_scale' data='0' />
					<value target='label_position' data='003' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='14683ea8-5a08-4b3a-be2d-3dea3e17e720' vmin='2' vmaj='1' codename='pot_color_cap1' x='40' y='0' z='9' xsz='25.1419' ysz='25.1419' zsz='18.45' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='1' poslock='1' >
				<resources />
				<properties />
				<values >
					<value target='angle_start' data='225.000000' />
					<value target='angle_sweep' data='270.000000' />
					<value target='cap_color' data='192' />
					<value target='point_color' data='16777215' />
					<value target='channel' data='0' />
					<value target='vrefvol' data='500' />
					<value target='vrefop' data='000' />
					<value target='convspd' data='003' />
					<value target='actime' data='40' />
					<value target='bits' data='10' />
					<value target='bitmul' data='0.004883' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='14683ea8-5a08-4b3a-be2d-3dea3e17e720' vmin='2' vmaj='1' codename='pot_color_cap2' x='40' y='-24' z='9' xsz='25.1419' ysz='25.1419' zsz='18.45' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='1' poslock='1' >
				<resources />
				<properties />
				<values >
					<value target='angle_start' data='225.000000' />
					<value target='angle_sweep' data='270.000000' />
					<value target='cap_color' data='16711680' />
					<value target='point_color' data='16777215' />
					<value target='channel' data='1' />
					<value target='vrefvol' data='500' />
					<value target='vrefop' data='000' />
					<value target='convspd' data='003' />
					<value target='actime' data='40' />
					<value target='bits' data='10' />
					<value target='bitmul' data='0.004883' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='9737364' 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='0' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='25' />
		<camera xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel3d>
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAYAQAADQDAAA' zoom='75' scrollx='1247' scrolly='4176' flags='0' />
		<view type='0' name='Displayfunction1' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAYAQAADQDAAA' zoom='75' scrollx='0' scrolly='30' flags='0' />
		<view type='0' name='TMR0INT' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAYAQAADQDAAA' zoom='75' scrollx='0' scrolly='1425' flags='0' />
		<view type='0' name='Displayfunction0B' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAYAQAADQDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Displayfunction0A' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAYAQAADQDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='DisplayFunction4' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAYAQAADQDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Displayfunction4_1' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAYAQAADQDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
