This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
xi,
你直接将P1.3设置成输入,然后去读取P1.3的电平就行了。考虑到你按键的抖动,你可以用延时消抖或是用定时中断读取的方式去查看P1.3的输入电平。
这样会比较好一些。
谢谢