请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:LAUNCHXL-CC1352R1 大家好、我目前正在将 cc1352r1 launchpad 套件与 contiki-OS 结合使用。 但我想知道如何读取数字引脚以连接外部传感器、或者是否有任何方法可以使用 contiki-OS 或 rio-OS 通过 Launchpad 套件读取传感器。 我希望您能帮助我提供这些信息。 谢谢你。
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.
大家好、我目前正在将 cc1352r1 launchpad 套件与 contiki-OS 结合使用。 但我想知道如何读取数字引脚以连接外部传感器、或者是否有任何方法可以使用 contiki-OS 或 rio-OS 通过 Launchpad 套件读取传感器。 我希望您能帮助我提供这些信息。 谢谢你。
尊敬的 Andrea:
我对 Contiki 没有任何经验、但似乎您可以使用 GPIO hal、请参阅 GPIO-hal-example.c
查看 button-sensor.c 也可能很有用(CONFIG_Buttons 配置 GPIO、 value_select 读取 GPIO、 而 button_press_handler 是中断处理程序)。
我们通常不支持 Contiki。 如需更多 Contiki 支持、请访问 https://gitter.im/contiki-ng
此致、
尼古拉伊