请问CC2650stk上有蜂鸣器吗,如何控制
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.
没有【楼下已更正,请以后发布的答案为准】,CC2650stk的详细功能描述请见: http://www.ti.com.cn/tool/cn/cc2650stk
请按照本手册安装软硬件: http://www.ti.com/cn/lit/pdf/swru410
应该是有的,电池座傍边最大那个黑的方块。
而且ios的app上可以控制buzzer的开关。
2650STG的board.c中也定义了
PIN_Config BoardGpioInitTable[] = {
。。。
Board_BUZZER | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX, /* Buzzer initially off */
。。。
}
在sensortag.c中有一句
PIN_setOutputValue(hGpioPin, Board_BUZZER, Board_BUZZER_OFF);
这应该就是蜂鸣器的控制操作了。
当然之前还应该有一些引脚配置什么的,细节还未看清楚。
BBW说得对,这个是我回复错了,抱歉。
CC2650STK上有buzzer,可以通过PWM驱动,并且TI有提供相关代码,请看这边: https://e2e.ti.com/support/wireless_connectivity/f/538/p/405132/1435673#1435673