#include<reg52.h>
void delay(int count);
void main(void)
{
int n;
code unsigned char value[]={0x00,0x80,0xC0,0xE0,0xF0,0xF8,0xFC,0xFE,
0xFF,0x7F,0x3F,0x1F,0x0F,0x07,0x03,0x01};
while(1)
{
for(n=0;n<16;n++)
{
P0=value[n];
delay(100);
}
}
}
void delay(int count)
{
int x,y;
for(x=0;x<count;x++)
{
for(y=0;y<500;y++)
{
}
}
}