[an error occurred while processing this directive]
[an error occurred while processing this directive]
|
DigitASCI[] - массив десятичных цифр, которые д.б. перекодированы
char_led[1] - перекодированные цифры
const uchar led8_char[]={
0b11000000, //0
0b11111001, //1
0b10100100, //2
0b10110000, //3
0b10011001, //4
0b10010010, //5
0b10000010, //6
0b11111000, //7
0b10000000, //8
0b10010000, //9
0b11111111, //' '
};
char_led[1] = led8_char[DigitASCI[1]];
char_led[2] = led8_char[DigitASCI[2]];
char_led[3] = led8_char[DigitASCI[3]];
E-mail: info@telesys.ru