單片機學(xué)習(xí)——lcd1602顯示實驗之一
“I LIKE MCU!
本文引用地址:http://www.ex-cimer.com/article/201611/320189.htm?。兀桑粒稀。祝铡 ?rdquo;
且顯示方式為從右邊屏依次向左動態(tài)移出。
解決方案:(c語言編程)
#include
#define uchar unsigned char
#define uint unsigned int
uchar code table[]="I LIKE MCU!";
uchar code table1[]="XIAO WU"
sbit lcdrs=P1^7;
sbit lcdrw=P1^6;
sbit lcde=P2^4;
sbit le=P3^
sbit leden=P2^5;
sbit
void delay(uint a) ;
uchar num;
void write_com(uchar com) //寫入命令子函數(shù)
{
}
void write_data(uchar dat) //寫入數(shù)據(jù)子函數(shù)
{
}
void init() //初始化子函數(shù)
{
}
void main() //主函數(shù)
{
}
void delay(uint a) { //延時函數(shù)
}
評論