请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:CC2530 您好!
我一直在尝试设置 P1.0至 P1.6的任一引脚、但它们都不能用作 HAL_KEY_SW_2的输入。 P1.3和 P1.2会导致问题、结果是出厂复位和功耗漂移的问题。 因此、我剩下 P1.0、P1.1、P1.4、P1.5和 P1.6、 但它们不起作用。 为什么这些引脚不起作用?
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.
我在 hal_key.c 中使用 P1.6附加 SW7的实现
遗憾的是、您提供的代码仍然无法正常工作。 我还将您的 if 语句从 if (P1_7)更改为 if (P1_6)、但它没有修复它。 那么、为什么 P1.6仍然不起作用呢? 您是否已测试 P1.6是否适合您的?