欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136
標題:
LCD1602滾動顯示的單片機源程序
[打印本頁]
作者:
初心22
時間:
2019-6-12 22:14
標題:
LCD1602滾動顯示的單片機源程序
#include<reg52.h>
typedef unsigned char uint8;
typedef unsigned int uint16;
sbit rs=P2^6;
sbit rw=P2^5;
sbit e=P2^7;
uint8 a[16]="perchin designed";
uint8 b[27]="welcome to the world of mcu";
void delay(uint16 i) //1us
{
while(i--);
}
void wrc(uint8 c)
{
delay(1000);
rs=0;
rw=0;
e=0;
P0=c;
e=1;
delay(10);
e=0;
/*
P0=c<<4;
e=1;
e=0;*/ //四位的LCD要加上
}
void wrd(uint8 dat)
{
delay(1000);
rs=1;
rw=0;
e=0;
P0=dat;
e=1;
delay(10);
e=0;
/*
P0=dat<<4;
e=1;
e=0;*/ //四位的LCD要加上
rs=0;
}
void init()
{
delay(1000);
/*wrc(0x32);
wrc(0x28);
wrc(0x28); */ //四位的LCD要加上
wrc(0x38);
wrc(0x38);
wrc(0x38);
wrc(0x0c);
wrc(0x01);
}
void display()
{
uint8 i;
滾動顯示.zip
2019-6-12 22:14 上傳
點擊文件名下載附件
下載積分: 黑幣 -5
633 Bytes, 下載次數: 16, 下載積分: 黑幣 -5
程序
作者:
contactdeshine
時間:
2019-6-13 02:21
非常感謝,現在還在用數碼管,但是感覺液晶是趨勢,請教一下LCD故障率怎么樣?數碼管可以用很久感覺。
作者:
去微軟try
時間:
2019-6-13 14:13
很不錯
歡迎光臨 (http://www.raoushi.com/bbs/)
Powered by Discuz! X3.1