單片機(jī)學(xué)習(xí)——lcd1602顯示實(shí)驗(yàn)之一
“I LIKE MCU!
本文引用地址:http://m.butianyuan.cn/article/201611/320189.htmXIAO?。祝铡 ?rdquo;
且顯示方式為從右邊屏依次向左動(dòng)態(tài)移出。
解決方案:(c語(yǔ)言編程)
#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í)函數(shù)
}
評(píng)論