void
ShowNumber(unsigned
long
num)
{
LedBuff[0]=LedChar[num%10];
LedBuff[1]=LedChar[num/10%10];
LedBuff[2]=LedChar[num/100%10];
LedBuff[3]=LedChar[num/1000%10];
LedBuff[4]=LedChar[num/10000%10];
LedBuff[5]=LedChar[num/100000%10];
if
(num<100000)LedBuff[5] = 0xFF;
if
(num<10000) LedBuff[4] = 0xFF;
if
(num<1000) LedBuff[3] = 0xFF;
if
(num<100) LedBuff[2] = 0xFF;
if
(num<10) LedBuff[1] = 0xFF;
}