ELSE HATASI

Başlatan fn3hrjnj, 05 Nisan 2011, 00:55:58

fn3hrjnj

DEFINE LCD_DREG    PORTD
DEFINE LCD_DBIT    4
DEFINE LCD_EREG    PORTD
DEFINE LCD_EBIT    3
DEFINE LCD_RSREG   PORTD
DEFINE LCD_RSBIT   2
DEFINE LCD_BITS    4
DEFINE LCD_LINE    2

LCDOUT $FE,$40,31,31,31,31,31,31,31,31
LCDOUT $FE,2,0

VU0 VAR PORTB.0
VU1 VAR PORTB.1
VU2 VAR PORTB.2
VU3 VAR PORTB.3
VU4 VAR PORTB.4
VU5 VAR PORTB.5
VU6 VAR PORTB.6
VU7 VAR PORTB.7
VU8 VAR PORTC.0
VU9 VAR PORTC.1


LCD1:LCDOUT $FE,$80,0
LCD2:LCDOUT $FE,$81,00
LCD3:LCDOUT $FE,$82,000
LCD4:LCDOUT $FE,$83,0000
LCD5:LCDOUT $FE,$84,00000
LCD6:LCDOUT $FE,$85,000000
LCD7:LCDOUT $FE,$86,0000000
LCD8:LCDOUT $FE,$87,00000000
LCD9:LCDOUT $FE,$88,000000000
LCD10:LCDOUT $FE,$89,0000000000
LCD11:LCDOUT $FE,$8A,00000000000
LCD12:LCDOUT $FE,$8B,000000000000
LCD13:LCDOUT $FE,$8C,0000000000000
LCD14:LCDOUT $FE,$8D,00000000000000
LCD15:LCDOUT $FE,$8E,000000000000000
LCD16:LCDOUT $FE,$8F,0000000000000000





TRISB=%11111111
TRISC=%11000000
PAUSE 200
LCDOUT $FE,1

BASLA:
IF VU0=1 THEN LCDOUT $FE,$80,0
ELSE
LCDOUT $FE,$80," "
ENDIF
GOTO BASLA
END



ARKADAŞLAR KOD BÖLE LCD VU METRE YAPACAĞIM . . . .
AMA PBP HATA VERİYOR NERDE YANLIŞ YAPMIŞIMDIR ACABA ?

drmp

If VU0=1 Then
LCDOUT $FE,$80,0
Else
LCDOUT $FE,$80," "
EndIf
böyle kullan sorun kalkar

fn3hrjnj

Son anda O dediğin Geldi Aklıma :) Allah Razı Olsun . Fazla İleri Deillim PBP de  :)

drmp

merak etme içine girdikçe bir şeyler kapıyor insan