Device 16f628 ' Secilen islemci
xtal = 4 ' dahili osilator icin config ayarlarını kullan
'------------------LCD AYARLARI------------------------
LCD_DTPIN = PORTB.0
LCD_RSPIN = PORTB.4
LCD_ENPIN = PORTB.5
LCD_INTERFACE = 4 ' 4-bit Interface
LCD_LINES = 2 ' 2 satir LCD
LCD_TYPE = 0
LCD_COMMANDUS = 2000
LCD_DATAUS = 50
'----------DEGISKEN AYARLARI--------------
DIM POT as BYTE
'-------------------------------------------
BASLA:
VAR1 = POT PORTA.0 , 100 ' 100 yerine 255 de kullanabilirsin
PRINT At 1,1, " POT DEGER:",Dec POT , " "
GOTO BASLA