PIC16F877A 驱动 LCD 1602https://static.assets-stash.eet-china.com/album/old-resources/2008/9/30/655dc439-4e4e-4cd5-a51e-89bcf93ea1f9.rar
#include <16F877.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=20000000)
#include <lcd.c>
#include <kbd.c>
void main() {
char k;
lcd_init();
kbd_init();
lcd_putc("\fReady...\n");
while (TRUE) {
k="kbd"_getc();
if(k!=0)
if(k=='*')
lcd_putc('\f');
else
lcd_putc(k);
}
}
文章评论(0条评论)
登录后参与讨论