新聞中心

EEPW首頁 > 嵌入式系統(tǒng) > 設計應用 > 基于指針的流水燈

基于指針的流水燈

作者: 時間:2016-11-25 來源:網(wǎng)絡 收藏
#include
charcode msg[8]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};

voiddelay(intt)
{
for(;t!=0;t--);
}

voidmain()
{
unsignedchar*i,p;
while(1)
{

i=msg;
for(p=0;p<8;p++)
{
delay(40000);
P1=*(i++);
// P1 = *(i + p);

}
}
}


關鍵詞: 指針流水

評論


技術專區(qū)

關閉