LCD12864显示遥控键值读取程序#include#include#defineucharunsignedchar#defineuintunsignedint/*TS12864A-3端口定义*/#defineLCD_dataP0//数据口sbitLCD_RS=P2^0;//寄存器选择输入sbitLCD_RW=P2^1;//
#include#include #defineucharunsignedchar#defineuintunsignedintsbitBEEP=P3^7;//蜂鸣器驱动线uchardis_buf;//显示缓存uchartemp;ucharkey;//键顺序吗voidbeep();//蜂鸣器voiddelay0(ucharx
源程序:;********************************************************************************;*标题:伟纳电子ME300B单片机开发系统演示程序-12864LCD显示遥控键值读取器*;*;************************