1602液晶显示

时间:2015-04-13 14:15:19
【文件属性】:

文件名称:1602液晶显示

文件大小:4KB

文件格式:TXT

更新时间:2015-04-13 14:15:19

1602液晶显示

#define LCM_RW P2_0 //定义引脚 #define LCM_RS P2_1 #define LCM_E P2_2 #define LCM_Data P1 #define Busy 0x80 //用于检测LCM状态字中的Busy标识 #include void WriteDataLCM(unsigned char WDLCM); void WriteCommandLCM(unsigned char WCLCM,BuysC); unsigned char ReadDataLCM(void); unsigned char ReadStatusLCM(void); void LCMInit(void); void DisplayOneChar(unsigned char X, unsigned char Y, unsigned char DData); void DisplayListChar(unsigned char X, unsigned char Y, unsigned char code *DData); void Delay5Ms(void); void Delay400Ms(void); unsigned char code cdle_net[] = {"www.cdle.net"}; unsigned char code email[] = {"pnzwzw@cdle.net"};


网友评论

相关文章