新聞中心

EEPW首頁 > 光電顯示 > 設計應用 > 流水燈電路圖及其程序代碼

流水燈電路圖及其程序代碼

作者: 時間:2012-07-31 來源:網(wǎng)絡 收藏

本文引用地址:http://www.2s4d.com/article/167753.htm
#include reg52.h>

#includeinstrins.h>

#define uchar unsigned char

#define uint unsigned int

uchar code led[]={0xfe,0xfb,0xfd ,0xf7,0xef,0xbf,0xdf,0x7f};

delay(uint z)

{

uint x,y;

for(x=z;x>0;x--)

for(y=110;y>0;y--);

}

main( )

{

uint i;

while(1)

{

P2=led[];

delay(500);

_crol_(led,1);

}

}

電路圖文章專題:電路圖符號大全


電路圖符號相關文章:電路圖符號大全




評論


相關推薦

技術專區(qū)

關閉