请问程序是怎么实现原理图里矩阵按键及矩阵灯的功能的?就是说程序是怎么识别人手触摸的是哪一个按键以及对应灯亮的?用CDC软件生成代码没有LED灯的功能实现,求教大家
New Output http://www.ti.com.cn/cn/lit/df/tidro65/tidro65.pdf
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.
请问程序是怎么实现原理图里矩阵按键及矩阵灯的功能的?就是说程序是怎么识别人手触摸的是哪一个按键以及对应灯亮的?用CDC软件生成代码没有LED灯的功能实现,求教大家
New Output http://www.ti.com.cn/cn/lit/df/tidro65/tidro65.pdf
CDC只能设置触摸管脚定义,LED灯On/Off通过代码实现,函数实现在updateLED(),通过回调函数实现
回调函数
//! \brief Registering the application's callback function
//! \param[in] N/A
//!
void USER_registerCallback(void)
{
MAP_CAPT_registerCallback(&BTN0000, &USER_callbackButtons);
MAP_CAPT_registerCallback(&PRX0000, &USER_callbackProx);
}//end of USER_registerCallback(void)