#include
#define uchar unsigned char
uchar led[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};
void delay(int a)
{
while(a--);
}
main()
uchar i;
while(1)
for(i=0;i
P0=0xff;P2=0x00;delay(10000);P0=0x00;P2=0xff;delay(10000);
P0=0x55;P2=0x55;delay(10000);P0=0xaa;P2=0xaa;delay(10000);
#include
#define uchar unsigned char
uchar led[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};
void delay(int a)
{
while(a--);
}
main()
{
uchar i;
while(1)
{
for(i=0;i
for(i=0;i
for(i=0;i
for(i=0;i
for(i=0;i
P0=0xff;P2=0x00;delay(10000);P0=0x00;P2=0xff;delay(10000);
}
for(i=0;i
P0=0x55;P2=0x55;delay(10000);P0=0xaa;P2=0xaa;delay(10000);
}
}
}