按键判断的几种方法 1.利switch.....case 语句,由于switch语句可以判断离散值,所以可以用来判断按键eg:switch(P1) { case 0xfe:delay(); if(P1=0xfe)... Other 2023-05-23 127 点赞 1 评论 192 浏览