Home > other >  Help bosses! Single chip microcomputer digital tube (Yang) single digital tube
Help bosses! Single chip microcomputer digital tube (Yang) single digital tube

Time:09-27

#include
# define uchar unsigned char
# define uint unsigned int
Sbit dula=P2 ^ 6;
Sbit wela=P2 ^ 7;
uchar i;
Uchar code number [10]={XCF xa4 0, 0 xc0, 0, 0 x98, 0 xa4, 0 XCF, 0 xf8, 0 x98, 0 xb0, 0 xc0};
Void delay (uint);
Void main ()
{
While (1)
{
for(i=0; i<10; I++)
{
Dula=1;
P0=number [I];
Dula=0;
delay(500);

}
}
}
Void delay (uint x)
{
Uint j, k;
For (j=x; J> 0; J -)
For (k=110; J> 0; K -);
}

Where is this wrong? Burn the digital tube display only then 2 results are unchanged

CodePudding user response:

If there is no a slip of the pen, the for (k=110; J> 0; K -) should be the for (k=110; K> 0; K -),

CodePudding user response:

reference 1st floor yishumei response:
if there is no a slip of the pen, the for (k=110; J> 0; K -) should be the for (k=110; K> 0; K -),

Thank you very much, I checked the whole morning
  • Related