Home > other >  0-99099-9, 0-9999 digital tube display
0-99099-9, 0-9999 digital tube display

Time:10-01

Four digital tube display how to into a 90 - bit, how code, a great god help myself
Four digital tube 0-9 shows the code below) :
For (I=1, i<10, i++)
{
For (j=0, j<4, j++)
{
Write_DATA (0 x68 + 2 x j, Tab [10] (j + I) % | 0 by 8
0 {
delay_ms(1000);
}

Seek advice on how to display the 0-99, 0, 0-999-9999, with all of you to a 90 - bit into a need to how to write code,

CodePudding user response:

Int main (void)
{
Delay_init ();
Uart_init (115200);
TM1637_Init ();
Time_Display ();
While (1)
{
X44 TM1637_WriteCommand (0);
For (first=0; First<6; First++)
{
TM1637_WriteData (0 xc0, DataDp [first]);
For (second=0; Second<10; Second++)
{
TM1637_WriteData (0 xc1, DataDp [second]);
For (third=0; Third<6; Third++)
{
TM1637_WriteData (0 xc2, DataDp [third]);
For (fourth=0; Fourth<10; Fourth++)
{
TM1637_WriteData (0 xc3, DataDp (fourth));
delay_ms(1000);
}
}
}
}
X8a TM1637_WriteCommand (0);
}
}

Some time ago to get digital tube, can consult

CodePudding user response:

The
reference 1/f, Just send the memory response:
int main (void)
{
Delay_init ();
Uart_init (115200);
TM1637_Init ();
Time_Display ();
While (1)
{
X44 TM1637_WriteCommand (0);
For (first=0; First<6; First++)
{
TM1637_WriteData (0 xc0, DataDp [first]);
For (second=0; Second<10; Second++)
{
TM1637_WriteData (0 xc1, DataDp [second]);
For (third=0; Third<6; Third++)
{
TM1637_WriteData (0 xc2, DataDp [third]);
For (fourth=0; Fourth<10; Fourth++)
{
TM1637_WriteData (0 xc3, DataDp (fourth));
delay_ms(1000);
}
}
}
}
X8a TM1637_WriteCommand (0);
}
}

Written earlier to get digital tube, can consult

Ok, thank you very much, I really look back,
  • Related