请问高手谢谢!!!
请问高手下面这个程序 key的值有那些啊?我是想得到的key的值是(0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80)d但现在不是这样的要怎么该啊?int read_key(void)
{
unsigned char i = 0;
unsigned char a = 1;
unsigned char key = 0;
unsignde char m = 1;
delayNs(10);
for(i=0;i<8;i++)
{
if(unsignde char m == 1)
{
key = a;
}
a <<= 1;
}
return key;
}