LCD12864顯示遙控鍵值讀取程序#include#include#defineucharunsignedchar#defineuintunsignedint/*TS12864A-3端口定義*/#defineLCD_dataP0//數(shù)據(jù)口sbitLCD_RS=P2^0;//寄存器選擇輸入sbitLCD_RW=P2^1;//
#include#include #defineucharunsignedchar#defineuintunsignedintsbitBEEP=P3^7;//蜂鳴器驅(qū)動(dòng)線(xiàn)uchardis_buf;//顯示緩存uchartemp;ucharkey;//鍵順序嗎voidbeep();//蜂鳴器voiddelay0(ucharx
源程序:;********************************************************************************;*標(biāo)題:偉納電子ME300B單片機(jī)開(kāi)發(fā)系統(tǒng)演示程序-12864LCD顯示遙控鍵值讀取器*;*;************************