#include <16f88.h>
#define use_portb_kbd TRUE
#include <KBD.C>
#define LCD_ENABLE_PIN PIN_B0
#define LCD_RS_PIN PIN_B1
#define LCD_RW_PIN PIN_B2
#define LCD_DATA4 PIN_B4
#define LCD_DATA5 PIN_B5
#define LCD_DATA6 PIN_B6
#define LCD_DATA7 PIN_B7
#include <lcd.c>
char anahtar;
void main()
{
kbd_init();
lcd_init();
while(TRUE)
{
anahtar=kbd_getc();
delay_ms(1);
if(anahtar != 0)
{
printf(lcd_putc,"\f%c",anahtar);
delay_ms(200);
}
}
}
Hiç yorum yok:
Yorum Gönder
Her yorum bilgidir. Araştırmaya devam...