“1112.C(6): error C231: 'P0': redefinition”不知道是什么地方出错了
请各位大虾帮看看
#include<reg52.h>
#include<intrins.h>
#define
uint
unsigned
int
void delay1s(uint );
int i,num[15]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f,0xbf,0xdf,0xef,0xf7,0xfb,0xfd,0xfe} 0=0xff;
void main()
{
while(1)
{
for(i=0;i<15;i++)
{
P0=num[i];
delay1s(500);
}
}
}
void delay1s(uint z)
{
uint x, y;
for(x=z;x>0;x--)
for(y=110;y>0;y--)
;
} |