#include #include #define uchar unsigned char #define uint unsignde int sbit P20 = P2^0; sbit P21 = P2^1; unsigned char code table []={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f}; unsigned char code table2 []={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x80}; unsigned int shi=0; unsigned int fen=0; unsigned int miao=0; unsigned int a=0; unsigned int b=0; unsigned int i; unsigned int t=0; unsigned int w=0; unsigned int v=0; sbit p30=P3^0; sbit p31=P3^1; void delay1ms(unsigned int i) //1ms { uchar j; while(i--) {for(j=0;j