8 static unsigned char table[] = {63, 6, 91, 79, 102, 109, 125, 7, 127, 111};
15 char a, b, c, d, e, f, g;
19 unsigned long long sseg_val = ((
unsigned long long)
DOT_BITVALUE) << 4*8;
21 short int low_byte = val & 255;
22 short int high_byte = val >> 8;
23 for ( a =
'0' - 1; high_byte >= 0; high_byte -= 100 ) ++a;
24 for ( b =
'9' + 1; high_byte < 0; high_byte += 10 ) --b;
30 d = (low_byte * 10)>>8;
31 low_byte = low_byte * 10 - d*256;
33 e = (low_byte * 10)>>8;
34 low_byte = low_byte * 10 - e*256;
36 f = (low_byte * 10)>>8;
37 low_byte = low_byte * 10 - f*256;
39 g = (low_byte * 10)>>8;
40 low_byte = low_byte * 10 - g*256;
void leds_ctrl(unsigned short val)
unsigned char convert_char_digit_2_sseg(char c)
void sevensegments_ctrl(unsigned long long val, unsigned long long mask)