while(1)
{
r_temp_key = keyscan();
switch (r_temp_key)
{
case 0xee:
//key1
break;
case 0xed:
//key2
break;
case 0xeb:
//key3
break;
case 0xe7:
//key4
break;
case 0xde:
//key5
break;
case 0xdd:
//key6
break;
case 0xdb:
//key7
break;
case 0xd7:
//key8
break;
case 0xbe:
//key9
break;
case 0xbd:
//key10
break;
case 0xbb:
//key11
break;
case 0xb7:
//key12
break;
case 0x7e:
//key13
break;
case 0x7d:
//key14
break;
case 0x7b:
//key15
break;
case 0x77:
//key16
break;
default:
break;
}
}
}