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.
工具/软件:Code Composer Studio
大家好,我正在使用 msp430fr2532实现2电容式钥匙 , 我想在一个应用中,当我触摸一把钥匙时,相应的 LED 应该会亮起 。 我已将 CAP0.2和 CAP0.3用于开关。我的 LED 连接到 P1.0和 P1.1。
问题:-
1 ) 初始化生成代码时、当我触摸键时没有任何 LED 亮起、但随后我更改了 LED1和 LED2的位
将 P1.0指定为 BIT0、将 P1.1指定为 BIT1
#define LED1_PIN (BIT0)
#define LED2_PIN (BIT1)
但我的 LED 2不起作用(将 BIT1分配给 msp430fr2532的 P1.1是否正确)。
2) 2) 当我按任意键时,仅连接到 P1.0的 LED 亮起,而我只想在按键1时将其打开 。