嗨,戴维,
如果您使用的是CAPENSESEYCSDV2.X,可以使用CAPENSESEYSCONSORMONDATION[],这是一个Unt8阵列,它可以保持传感器“或”关闭状态(用于按钮、矩阵按钮或滑块)。CabSnSeSysRealon掩膜[ 0 ]包含用于传感器0到7的屏蔽位(传感器0是位0,SCONSOR1是位1)。CabSnSeSysRealon掩膜(1)包含传感器8到15(如果需要的话)的掩蔽位,等等。这个UIT8阵列包含尽可能多的元素,以容纳所有放置的传感器。如果传感器处于开启状态,则位的值为1,如果传感器关闭,则为0。
如果您使用的是CAPENSESEYCSDv3.x/ 4 .x/x.x.x,可以使用Strut实例:CAPENSESEYDSRAM。它的原型是在CabSnSexRM结构中定义的。
无论是长触摸还是短触摸,都需要定制代码来识别它。
谢谢,
赖安
以上来自于百度翻译
以下为原文
Hi David,
If you are using CapSense_CSD v2.x, you can use CapSense_sensorOnMask[], This is a uint8 array that holds the sensor 'on' or 'off' state (for buttons, matrix buttons or sliders). CapSense_sensorOnMask[0] contains the masked bits for sensor 0 through 7 (sensor 0 is bit 0, sensor1 is bit 1). CapSense_sensorOnMask[1] contains the masked bits for sensor 8 through 15 (if they are needed), and so on. This uint8 array contains as many elements as are necessary to contain all placed sensor. The value of a bit is 1 if the sensor is on and 0 if the sensor is off.
If you are using CapSense_CSD v3.x/4.x/5.x, you can use the struct instance: CapSense_dsRam.snsStatus[wdgtId]. Its prototype is defined in CapSense_RAM_STRUCT in CapSense_Structure.h.
Either long touch or short touch, requires customized code to identify it.
Thanks,
Ryan