void display1(char wei,uchar shu)
{
wei=wei-1;
wela|=0xf0;
if(wei==2)
P0=table1[shu];
else
P0=table[shu];
wela=wela&weitable[wei];
delay(5);
}
void display(unsigned char a,unsigned char b,unsigned char c,unsigned char d)
{
display1(4,a);
display1(3,b);
display1(2,c);
display1(1,d);
}
一周热门 更多>