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/CC2650MODA:CC2650MODA

Guru**** 2563960 points
Other Parts Discussed in Thread: CC2650MODA

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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/686960/ccs-cc2650moda-cc2650moda

器件型号:CC2650MODA

工具/软件:Code Composer Studio

您好!

我使用的是 CC2650MODA、最后我使用 BLE-SDK 插件中的 simple_peripheral 示例实现了广播。 我可以通过蓝牙发送任何值、但当我尝试发送引脚状态信息(高电平或低电平)时、我无法发送。 我不知道原因。  

PIN_Config radCtrlCfg[]=


ioID_13) | PIN_INPUT_EN | PIN_PULLUP、/*引脚配置

我尝试使用下面的两种方法来获取输入值、但它不起作用。

值=值+ PIN_getInputValue (PIN_ID (13);

值=值+ PIN_getInputValue (IOID_13);

请帮我如何读取输入状态并通过蓝牙发送?

此致、

Murat Kayhan

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

    您好!

    我建议您使用引脚驱动器。

    我们提供了有关如何使用引脚驱动器的开箱即用示例。(例如:pinStandby 示例)

    请看一下。