国产一级AV免费播放片_欧美写真日韩一区在线播放_亚洲一区中文字幕在线_国产成人综合v在线_日本一区二区桃色_午夜性色福利影院_亚洲午夜精品日本_中文国产日本在线播放免费_亚洲精品国产一级毛片_午夜精品视频在线观看91

led數字顯示 LED8X8點陣顯示數字0-9數字

下面是電路圖:

/*名稱:8X8LED點陣顯示數字

說明:1.8X8LED點陣屏循環(huán)顯示數字0~9,刷新過程為動態(tài)變換完成。

2.行掃描為XXled數字顯示,接P1口,列掃描為YYled數字顯示,接P3口

*/

#include

#include

#define uchar unsigned char

#define uint unsigned int

uchar code XX[]=

{

0x00,0x3e,0x41,0x41,0x41,0x3e,0x00,0x00,//0

0x00,0x00,0x00,0x21,0x7f,0x01,0x00,0x00,//1

0x00,0x27,0x45,0x45,0x45,0x39,0x00,0x00,//2

0x00,0x22,0x49,0x49,0x49,0x36,0x00,0x00,//3

0x00,0x0c,0x14,0x24,0x7f,0x04,0x00,0x00,//4

0x00,0x72,0x51,0x51,0x51,0x4e,0x00,0x00,//5

0x00,0x3e,0x49,0x49,0x49,0x26,0x00,0x00,//6

0x00,0x40,0x40,0x40,0x4f,0x70,0x00,0x00,//7

0x00,0x36,0x49,0x49,0x49,0x36,0x00,0x00,//8

0x00,0x32,0x49,0x49,0x49,0x3e,0x00,0x00//9

};

uchar code YY[]={0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80};

uchar i,k,j,t=0,Num_Index;

void yanchi(uchar ms)

{

while(ms--)

{

for (i=0;i }

}

//主程序

void main()

{

while(1)

{

for(t=0;t {

for(j=0;j {

for(k=0;k {

P1=YY[k];

P3=~XX[t*8+k];

yanchi(2);

}

}//**************************0

}

}

}

/*******************************************************************************************/

#include

#include

#define uchar unsigned char

#define uint unsigned int

uchar code XX[]=

{

0x00,0x3e,0x41,0x41,0x41,0x3e,0x00,0x00,//0

0x00,0x00,0x00,0x21,0x7f,0x01,0x00,0x00,//1

0x00,0x21,0x43,0x45,0x49,0x31,0x00,0x00,//2

0x00,0x22,0x49,0x49,0x49,0x36,0x00,0x00,//3

0x00,0x0c,0x14,0x24,0x7f,0x04,0x00,0x00,//4

0x00,0x72,0x51,0x51,0x51,0x4e,0x00,0x00,//5

0x00,0x3e,0x49,0x49,0x49,0x26,0x00,0x00,//6

0x00,0x40,0x40,0x4f,0x50,0x60,0x00,0x00,//7

0x00,0x36,0x49,0x49,0x49,0x36,0x00,0x00,//8

0x00,0x32,0x49,0x49,0x49,0x3e,0x00,0x00//9

};

uchar code YY[]={0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80};

uint i,k,j,t;

void yanchi(uchar ms)

{

while(ms--)

{

for (i=0;i }

}

//主程序

void main()

{

while(1)

{

for(t=0;t {

for(j=0;j {

for(k=0;k {

P1=YY[k];

P2=~XX[(t)*8+k];

P3=~XX[((t0)/10)*8+k];

P0=~XX[(t/100)*8+k];

yanchi(2);

}

}//**************************0

}

}

}

文章由啟和科技編輯


上一篇:led顯示屏市場 2021年中國LED顯示屏市場分析報告

下一篇:led顯示屏市場 2020年中國LED顯示屏市場現(xiàn)狀及發(fā)展趨勢預測分析

TAG標簽: LED顯示屏