[COLOR="#FF0000"]unsigned char [/COLOR]digit[10]=
{
0b01111110, // 0
0b00010010, // 1
0b10111100, // 2
0b10110110, // 3
0b11010010, // 4
0b11100110, // 5
0b11001110, // 6
0b00110010, // 7
0b11111110, // 8
0b11110010 // 9
} ;
void display(char * content, int howmany){
[COLOR="#FF0000"]unsigned char Bytem;[/COLOR]
while ([COLOR="#FF0000"]howmany[/COLOR]) { // for every byte in buffer
[COLOR="#FF0000"]Bytem = digit[content[[SIZE=3]--howmany[/SIZE]] - '0']; [/COLOR]
/* here the 4094 routine */
}
}
void main () {
[COLOR="#FF0000"] char x[4] = "123";
[/COLOR] while ( 1 ){
[COLOR="#FF0000"]display ( x, 3);//or display(x,strlen(x)) or display(x,sizeof(x))[/COLOR]
// and so on
}
}