10s計(jì)時(shí)器 作者: 時(shí)間:2016-11-28 來(lái)源:網(wǎng)絡(luò) 加入技術(shù)交流群 掃碼加入和技術(shù)大咖面對(duì)面交流海量資料庫(kù)查詢(xún) 收藏 #include#define uchar unsigned char#define uint unsigned intvoid delayms(uint);uchar num;uchar code table[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90}; //共陽(yáng)極的十個(gè)數(shù)代碼void main(){for(num=0;num<10;num++){P0=table[num];delayms(1000);}}void delayms(uint xms) //定義延時(shí)函數(shù){uint i,j;for(i=xms;i>0;i--)for(j=110;j>0;j--);}
評(píng)論