# include
#include
# define uchar unsigned char
# define uint unsigned int
Uchar code dis_code []={xa4 xc0 0, 0 xf9, 0, 0, xb0 x99 0, 0 x92, 0 x82, 0 xf8, 0 x80, 0 x90, 0 x88};
Void delay (uint y)
{
Uchar I;
While (y -)
for(i=0; i<110; I++);
}
Void main ()
{
Uchar I, j=0 x80;
While (1)
{
for(i=0; i<8; I++)
{
J=_crol_ (j, 1);
P0=dis_code [I];
The P2=j;
Delay (100);
}
}
}

CodePudding user response:
The wrong circuit diagram