程序应该没有问题吧,是不是硬件连接的问题.
程序如下(为使用硬件连接模板,改了下接口)
#include
#include
#define uchar unsigned char
#define uint unsigned int
unsigned int m,n;
unsigned char code table[]={ 0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,
0x80,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e};
void DelayMS(uint x)
{
uchar i;
while(x--) for(i=0;i