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.

[参考译文] CCS/MSP430FR4133:MSP430FR4133 Launchpad

Guru**** 2042920 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/864728/ccs-msp430fr4133-msp430fr4133-launchpad

器件型号:MSP430FR4133

工具/软件:Code Composer Studio

如何使用 launchpad 上的板载按钮 P2.6

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您必须将引脚2.6配置为输入、然后定义按下引脚时会发生什么情况。

    一个非常基本的示例是在按下按钮时将 LED 设置为高电平。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    TI Resource Explorer ( msp430fr413x_p1_01.c )中提供了一个代码示例,其中展示了 Mike 解释的上述功能。  

    您在代码中唯一需要做的更改是将输入设置为端口2引脚6、而不是端口1引脚3。

    此致、

    Matt