toto_na16
Member level 1
hi ,
I wrote this code to display a pressed key (1-16) on LCD
but when i press a key it make all the screen full of this character ?
can anyone tell me why ?
I wrote this code to display a pressed key (1-16) on LCD
but when i press a key it make all the screen full of this character ?
Code:
char t[6];
unsigned i;
void main(){
TRISD=0x00;
Lcd_Config(&PORTD,2,3,0,7,6,5,4);
Keypad_Init(&PORTB);
while(1){
while(Keypad_Read()==0){
}
i = Keypad_Read();
WordToStr(i,t);
LCD_Out_Cp(t);
}
}
can anyone tell me why ?