#include<reg51.h>
#define uint unsigned int
#define uchar unsigned char
sbit wela=P0;
sbit dula=P1;
uchar code table[]={
0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};
uchar code table1[]={
0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,
0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};
void main()
{
while(1)
{
uchar i;
for(i=0;i<8;i++)
wela=table[i];
dula=table1[i];
}
}
为什么数码管上没有数字啊 求大神告诉啊
|