Home > Back-end >  I have here a traffic light subroutine and a lattice rolling display program, I want them to do at t
I have here a traffic light subroutine and a lattice rolling display program, I want them to do at t

Time:02-20

Void main ()
{
Unsigned char TAB, j;
Unsigned int I;
Unsigned int p=1;
Unsigned int o;

HLD ();
For (o=0; O<4. O++)
{
Ys ();
}
While (p)
{
For (I=0; i<50; I++)
{
For (TAB=0; Tab<8; Tab++)
{

Hc595SendByte (0 x00);
COMMONPORTS=TAB [TAB];
Hc595SendByte (CHARCODE [j] [TAB]);
Delay (2);
}

}
J++;
If (j==8)
{
j=0;
}
P++;
If (p==10)
{
P=0;
}

}
}
This is display program, take a look at roughly, mainly thinking
  • Related