欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136

標題: 初學者基于51單片機數碼管9到0循環顯示 [打印本頁]

作者: 33332    時間: 2018-6-30 18:27
標題: 初學者基于51單片機數碼管9到0循環顯示
#include<reg51.h>
#include<intrins.h>
#define uchar unsigned char
#define uint unsigned int
uchar code DSY_CODE[]={0x90,0x80,0xf8,0x82,0x92,0x99,0xb0,0xa4,0xf9,0xc0,0xFF};

void DelayMS(uint x)
{
uchar t;
while(x--) for(t=0;t<120;t++);
}

void main()
{

uchar i=0;
P2=0x00;
while(1)
{
P2=~DSY_CODE[i];
i=(i+1)%10;
DelayMS(180);
}
}

111111111111.JPG (81.63 KB, 下載次數: 53)

111111111111.JPG





歡迎光臨 (http://m.raoushi.com/bbs/) Powered by Discuz! X3.1