/* Main.c file generated by New Project wizard
 *
 * Created:   周日 十月 22 2017
 * Processor: 80C51
 * Compiler:  Keil for 8051
 */

#include <reg51.h>
#define uint unsigned int 
#define uchar unsigned char
 uchar shuzu[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90};
void delay(uint a)
{
   while(a--);
   }

void main()
 { 
   uint i; 
   while(1)
   {
      for(i=0;i<10;i++)
      {
    P2=shuzu[i];
    delay(500000);
     
     
      }
  }
 }