流水灯电路图及其程序代码
本文引用地址://m.amcfsurvey.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,0x
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);
}
}
电路图文章专题:电路图符号大全
电路图符号相关文章:电路图符号大全
评论