原理图程序#include #include #define uchar unsigned char#define uint unsigned int uchar code SEG= 0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f;void delay()uint i;for(i=0;i520;i+); main()while(1)uchar i;P3=0x7f;for(i=0;i8;i+)P3=_crol_(P3,1);P0=SEGi;DELAY();