1.aledԴ?源码?
aledԴ??
// 单片机数码管动态显示学号(注多位数码管用静态显示电路会很复杂,所以一般多用动态显示),源码股票山水源码方法有多种,源码大马网站源码下面是源码977小说源码一个仿真例程可以参考。#include<reg.h>
#define uchar unsigned char
// 此表为 LED 的源码验证端口源码字模 0 1 2 3 4 5 6 7 8 9 a b c d e f
unsigned char code LED7Code[] = { 0x3F,0x,0x5B,0x4F,0x,0x6D,0x7D,0x,0x7F,0x6F,0x,0x7C,0x,0x5E,0x,0x};
void delay(uchar z)
{
uchar i,j;
for(i=0;i<;i++)
for(j=0;j<z;j++);
}
void main()
{
while(1)
{
P0=0xff;
P2=LED7Code[0];
P0=0xfe;
delay(5);
P0=0xff;
P2=LED7Code[1];
P0=0xfd;
delay(5);
P0=0xff;
P2=LED7Code[8];
P0=0xfb;
delay(5);
P0=0xff;
P2=LED7Code[3];
P0=0xf7;
delay(5);
P0=0xff;
P2=LED7Code[0];
P0=0xef;
delay(5);
P0=0xff;
P2=LED7Code[5];
P0=0xdf;
delay(5);
P0=0xff;
P2=LED7Code[0];
P0=0xbf;
delay(5);
P0=0xff;
P2=LED7Code[8];
P0=0x7f;
delay(5);
}
}