cord_h = P3 & 0x0f; //读入列线值 P3 = cord_h | 0xf0; //输出当前列线值 cord_l = P3 & 0xf0; //读入行线值 return( cord_h + cord_l );//键盘最后组合码值 } } return( 0xff ); //返回该值 } 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17...