<root>
<document schema='101' license='-1,88263627,K38DMR' title='' description='' target='PIC.16F.16F628A' >
	<config data='!0,3ff8%0,10%2,0%3,1%6,1%5,1%7,1%8,1%d,1' clkspd='4000000' 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='ghostype' value='0' />
			<data name='monitor' value='1' />
			<data name='ictloop' value='0' />
			<data name='ictrate' value='20000' />
			<data name='ictmask' value='0' />
			<data name='anlpres' value='255' />
			<data name='digmask1' value='-1' />
			<data name='digmask2' value='-1' />
		</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='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='false' type='b1' description='' isconst='1' 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='true' type='b1' description='' isconst='1' isinit='1' usrinit='1' setinit='1' />
				</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='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<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 = float2int (SAYI[0] * 2.56)' />
																				</command>
																			</flowline>
																		</case>
																		<case exp='2' >
																			<flowline >
																				<command class_type='calculation' title='Számítás' >
																					<exp exp='TOPLAM = float2int ((SAYI[0] * 10 + SAYI[1]) * 2.56)' />
																				</command>
																			</flowline>
																		</case>
																		<case exp='3' >
																			<flowline >
																				<command class_type='calculation' title='Számítás' >
																					<exp exp='TOPLAM = float2int ((SAYI[0] * 100 + SAYI[1] * 10 + SAYI[2]) * 2.56)' />
																				</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='7' 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='128 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='6' 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='$PORTB.3' />
					<value target='RemapPin' data='' />
					<value target='timer' data='2' />
					<value target='period' data='255' />
					<value target='prescale' data='000' />
					<value target='period_calc' data='52.083332' />
					<value target='frequency_calc' data='19.200001' />
					<value target='pwm_prescale' data='1' />
					<value target='SimRep' 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---------------------wAAAAAUAAAAHwYAAAcDAAA' zoom='75' scrollx='1588' scrolly='1740' flags='0' />
	</layout>
</document>
</root>
