#include<reg52.h>
unsigned char code table[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x88,0x83,0xc6,0xa1,0x84,0x8e};
void Delay(int t)
{
while(t--);
}
void main()
{
unsigned char i;
while(1)
{
for(i=0;i<16;i++)
{
P1=table[i];
Delay (50000);
}
}
}