1 of 1 people found this helpful
I see that you have added the example code to the attachments and not your project. Please share your project so that we can see the issue.
In the meantime, please note the following which could solve your issue.
CapSense_SetWidgetExt() only configures a particular to be scanned. This API needs to be followed by CapSense_Scan() to initiate a scan. In case you want to scan the second button, wait for the scan of first button to complete and then configure the second button using CapSense_SetWidgetExt() and perform the scan using CapSense_Scan() .
uint8 i =0 ;
if(CapSense_IsBusy() == 0)
if(i > 1)
i = 0;
CapSense_SetupWidgetExt(i,0); // Assuming there is only one sensor per widget.
Calling CapSense_SetupWidgetExt() one after the other will scan only the last widget that was setup using CapSense_SetupWidgetExt().