<root>
<document schema='101' license='1,Bachman_00,Y69TCJ' title='' description='' target='PIC.18F.18F26K22' >
	<config data='!0,ff!8,ff!10,ff!18,ff!20,ff!28,ff!30,ff!38,ff!40,ff!48,ff!50,ff!58,ff!60,ff!68,ff%8,f%c,1%d,1%e,1%f,1%10,1%11,3%13,3%18,3%1a,f%28,1%29,1%2a,1%2b,1%2c,1%2d,1%2f,1%30,1%32,1%36,1%37,1%40,1%41,1%42,1%43,1%4e,1%4f,1%50,1%51,1%52,1%53,1%5d,1%5e,1%5f,1%60,1%61,1%62,1%63,1%6e,1' clkspd='19660800' simspd='1' usewdt='0' constif='0' />
	<plugins >
		<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='1cccdede-b17c-4e66-bf1b-630afeed41ce' 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='gomb' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='a' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='KEYPAD' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='SAYI' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TOPLAM' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='i' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Main' description='' >
						<command class_type='delay' title='Késleltetés' exp='300' type='1' />
						<command class_type='output' title='Kimenet' mode='2' port='1048577' mask='227' exp='0' />
						<command class_type='call' title='Komponens makró hívása' component='gLCD_SSD1306_i2c1' macro='Initialise' />
						<command class_type='call' title='Komponens makró hívása' component='PWM1' macro='Disable' />
						<command class_type='calculation' title='Számítás' >
							<exp exp='SAYI[0] = 0' />
							<exp exp='SAYI[1] = 0' />
							<exp exp='SAYI[2] = 0' />
							<exp exp='i = 0' />
							<exp exp='a = 0' />
							<exp exp='gomb = 0' />
						</command>
						<command class_type='call' title='Komponens makró hívása' component='gLCD_SSD1306_i2c1' macro='Print' >
							<argument exp='&quot;P W M:&quot;' />
							<argument exp='5' />
							<argument exp='5' />
							<argument exp='2' />
							<argument exp='0' />
						</command>
						<command class_type='loop' title='Ciklus' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='Komponens makró hívása' component='keypad_eb014' macro='GetNumber' >
									<return exp='KEYPAD' />
								</command>
								<command class_type='decision' title='Feltételes elágazás' exp='KEYPAD = 10' swap='0' >
									<flowline >
										<command class_type='delay' title='Késleltetés' exp='200' type='1' />
										<command class_type='calculation' title='Számítás' >
											<exp exp='gomb = gomb + 1' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='switch' title='Többirányú elágazás' textarea='36,25,36,25' exp='gomb' >
									<case >
										<flowline >
											<command class_type='call' title='Komponens makró hívása' component='gLCD_SSD1306_i2c1' macro='Print' >
												<argument exp='&quot;OFF&quot;' />
												<argument exp='90' />
												<argument exp='5' />
												<argument exp='2' />
												<argument exp='0' />
											</command>
											<command class_type='call' title='Komponens makró hívása' component='PWM1' macro='Disable' />
											<command class_type='call' title='Komponens makró hívása' component='gLCD_SSD1306_i2c1' macro='Print' >
												<argument exp='&quot;0&quot;' />
												<argument exp='5' />
												<argument exp='35' />
												<argument exp='4' />
												<argument exp='0' />
											</command>
											<command class_type='call' title='Komponens makró hívása' component='gLCD_SSD1306_i2c1' macro='Print' >
												<argument exp='&quot;0&quot;' />
												<argument exp='20' />
												<argument exp='35' />
												<argument exp='4' />
												<argument exp='0' />
											</command>
											<command class_type='call' title='Komponens makró hívása' component='gLCD_SSD1306_i2c1' macro='Print' >
												<argument exp='&quot;%&quot;' />
												<argument exp='40' />
												<argument exp='35' />
												<argument exp='4' />
												<argument exp='0' />
											</command>
										</flowline>
									</case>
									<case exp='1' >
										<flowline >
											<command class_type='call' title='Komponens makró hívása' component='gLCD_SSD1306_i2c1' macro='Print' >
												<argument exp='&quot;ON  &quot;' />
												<argument exp='90' />
												<argument exp='5' />
												<argument exp='2' />
												<argument exp='0' />
											</command>
											<command class_type='call' title='Komponens makró hívása' component='PWM1' macro='Enable' />
											<command class_type='call' title='Komponens makró hívása' component='eeprom1' macro='Read' >
												<return exp='KEYPAD' />
												<argument exp='0' />
											</command>
											<command class_type='call' title='Komponens makró hívása' component='gLCD_SSD1306_i2c1' macro='PrintNumber' >
												<argument exp='KEYPAD' />
												<argument exp='5' />
												<argument exp='35' />
												<argument exp='4' />
												<argument exp='0' />
											</command>
											<command class_type='call' title='Komponens makró hívása' component='eeprom1' macro='Read' >
												<return exp='KEYPAD' />
												<argument exp='1' />
											</command>
											<command class_type='call' title='Komponens makró hívása' component='gLCD_SSD1306_i2c1' macro='PrintNumber' >
												<argument exp='KEYPAD' />
												<argument exp='20' />
												<argument exp='35' />
												<argument exp='4' />
												<argument exp='0' />
											</command>
											<command class_type='call' title='Komponens makró hívása' component='eeprom1' macro='Read' >
												<return exp='TOPLAM' />
												<argument exp='2' />
											</command>
											<command class_type='call' title='Komponens makró hívása' component='PWM1' macro='SetDutyCycle' >
												<argument exp='TOPLAM' />
											</command>
											<command class_type='call' title='Komponens makró hívása' component='keypad_eb014' macro='GetNumber' >
												<return exp='KEYPAD' />
											</command>
											<command class_type='decision' title='Feltételes elágazás' exp='KEYPAD = 10' swap='0' >
												<flowline />
												<flowline >
													<command class_type='decision' title='Feltételes elágazás' exp='KEYPAD &lt;&gt; 255' swap='0' >
														<flowline >
															<command class_type='decision' title='Feltételes elágazás' exp='KEYPAD = 11' swap='0' >
																<flowline >
																	<command class_type='switch' title='Többirányú elágazás' textarea='36,25,36,25' exp='i' >
																		<case >
																			<flowline />
																		</case>
																		<case exp='1' >
																			<flowline >
																				<command class_type='calculation' title='Számítás' >
																					<exp exp='TOPLAM = (SAYI[0] * 256) / 100' />
																				</command>
																			</flowline>
																		</case>
																		<case exp='2' >
																			<flowline >
																				<command class_type='calculation' title='Számítás' >
																					<exp exp='TOPLAM = ((SAYI[0] * 10 + SAYI[1]) * 256) / 100' />
																				</command>
																			</flowline>
																		</case>
																		<case exp='3' >
																			<flowline >
																				<command class_type='calculation' title='Számítás' >
																					<exp exp='TOPLAM = ((SAYI[0] * 100 + SAYI[1] * 10 + SAYI[2]) * 256) / 100' />
																				</command>
																			</flowline>
																		</case>
																	</command>
																	<command class_type='call' title='Komponens makró hívása' component='PWM1' macro='SetDutyCycle' >
																		<argument exp='TOPLAM' />
																	</command>
																	<command class_type='call' title='Komponens makró hívása' component='eeprom1' macro='Write' >
																		<argument exp='2' />
																		<argument exp='TOPLAM' />
																	</command>
																	<command class_type='calculation' title='Számítás' >
																		<exp exp='a = 0' />
																		<exp exp='i = 0' />
																	</command>
																</flowline>
																<flowline >
																	<command class_type='calculation' title='Számítás' >
																		<exp exp='SAYI[a] = KEYPAD' />
																		<exp exp='a = a + 1' />
																	</command>
																	<command class_type='switch' title='Többirányú elágazás' textarea='36,25,36,25' exp='a' >
																		<case >
																			<flowline />
																		</case>
																		<case exp='1' >
																			<flowline >
																				<command class_type='call' title='Komponens makró hívása' component='gLCD_SSD1306_i2c1' macro='PrintNumber' >
																					<argument exp='KEYPAD' />
																					<argument exp='5' />
																					<argument exp='35' />
																					<argument exp='4' />
																					<argument exp='0' />
																				</command>
																				<command class_type='call' title='Komponens makró hívása' component='eeprom1' macro='Write' >
																					<argument exp='0' />
																					<argument exp='KEYPAD' />
																				</command>
																			</flowline>
																		</case>
																		<case exp='2' >
																			<flowline >
																				<command class_type='call' title='Komponens makró hívása' component='gLCD_SSD1306_i2c1' macro='PrintNumber' >
																					<argument exp='KEYPAD' />
																					<argument exp='20' />
																					<argument exp='35' />
																					<argument exp='4' />
																					<argument exp='0' />
																				</command>
																				<command class_type='call' title='Komponens makró hívása' component='eeprom1' macro='Write' >
																					<argument exp='1' />
																					<argument exp='KEYPAD' />
																				</command>
																			</flowline>
																		</case>
																	</command>
																	<command class_type='calculation' title='Számítás' >
																		<exp exp='SAYI[i] = KEYPAD' />
																		<exp exp='i = i + 1' />
																	</command>
																	<command class_type='loop' title='Ciklus' type='1' exp='KEYPAD = 255' >
																		<flowline >
																			<command class_type='call' title='Komponens makró hívása' component='keypad_eb014' macro='GetNumber' >
																				<return exp='KEYPAD' />
																			</command>
																		</flowline>
																	</command>
																</flowline>
															</command>
														</flowline>
														<flowline />
													</command>
												</flowline>
											</command>
										</flowline>
									</case>
									<case exp='2' >
										<flowline >
											<command class_type='calculation' title='Számítás' >
												<exp exp='gomb = 0' />
											</command>
										</flowline>
									</case>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='f6ab6074-68ba-4cd4-9274-f973102f8518' vmin='6' vmaj='1' codename='gLCD_SSD1306_i2c1' x='-80' 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 >
					<value target='pixel_height' data='64' />
					<value target='pixel_width' data='128' />
					<value target='Interlaced' data='0' />
					<value target='monochrome' data='1' />
					<value target='foreground_colour' data='16777215' />
					<value target='background_colour' data='0' />
					<value target='colour_bit_depth' data='1' />
					<value target='red_bit_depth' data='0' />
					<value target='green_bit_depth' data='0' />
					<value target='blue_bit_depth' data='0' />
					<value target='SD_pin' data='$PORTB.2' />
					<value target='SCK_pin' data='$PORTB.4' />
					<value target='DisplayMethod' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='b07090da-50a4-41ed-97d8-99016c092a14' vmin='0' vmaj='1' codename='keypad_eb014' x='-80' y='-48' z='1.85' 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 >
					<value target='port' data='005' />
					<value target='pin_col1' data='$PORTA.0' />
					<value target='pin_col2' data='$PORTA.7' />
					<value target='pin_col3' data='$PORTA.6' />
					<value target='pin_row1' data='$PORTA.2' />
					<value target='pin_row2' data='$PORTA.3' />
					<value target='pin_row3' data='$PORTA.4' />
					<value target='pin_row4' data='$PORTA.1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='dcbf571f-a6fa-402d-bdd4-be00cca4070f' vmin='1' vmaj='1' codename='eeprom1' x='-40' y='0' z='0' xsz='20' ysz='20' zsz='20' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='EESize' data='1024 byte' />
					<value target='EEbitdepth' data='8 bit' />
					<value target='InitialValues' data='' />
					<value target='InitValsParsed' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='444fb704-814c-4707-a15c-759ba088505c' vmin='5' vmaj='1' codename='PWM1' x='-80' y='48' z='11.1275' 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='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='255' />
					<value target='prescale' data='000' />
					<value target='period_calc' data='256.000000' />
					<value target='frequency_calc' data='3.906250' />
					<value target='pwm_prescale' data='1' />
					<value target='SimRep' data='001' />
					<value target='DispPeriods' data='001' />
				</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---------------------wAAAAAUAAAAqQQAAHUCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
