请教高手一个显示问题
这是我写的程序,但运行后设置的键盘没有用,那位帮我看看好不 ?void test(unsigned char a,unsigned char b)
{
unsigned char i,m;
LED_Send_data(Dis_table[0]);
LED_Sel_Seq(a|0x00);
delayNs(10);
for(i=1;i<9;i++)
if(LED_SEL_D4!=b)
{
a = a<<1;
b=b>>1;
i++;
}
else m=i;
}
void main(void)
{
unsigned char m;
test(0x01,0x80);
while(m=1)
{
LED_Send_Data(Dis_table[8]);
LED_Sel_Seq(0xc8 | 0x00);
delayNs(20);
}
while(m=2)
{
LED_Send_Data(Dis_table[7]);
LED_Sel_Seq(0xc8 | 0x00);
delayNs(20);
}
while(m=3)
{
LED_Send_Data(Dis_table[6]);
LED_Sel_Seq(0xc8 | 0x00);
delayNs(20);
}
while(m=4)
{
LED_Send_Data(Dis_table[5]);
LED_Sel_Seq(0xc8 | 0x00);
delayNs(20);
}
while(m=5)
{
LED_Send_Data(Dis_table[4]);
LED_Sel_Seq(0xc8 | 0x00);
delayNs(20);
}
while(m=6)
{
LED_Send_Data(Dis_table[3]);
LED_Sel_Seq(0xc8 | 0x00);
delayNs(20);
}
while(m=7)
{
LED_Send_Data(Dis_table[2]);
LED_Sel_Seq(0xc8 | 0x00);
delayNs(20);
}
while(m=8)
{
LED_Send_Data(Dis_table[1]);
LED_Sel_Seq(0xc8 | 0x00);
delayNs(20);
}
}