cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC™ 4

AdamCheng
New Contributor II

HI ,

I use PSoC4 Capsense function for 12keys touch.

when I run 

CapSense_ProcessAllWidgets();
CapSense_ScanAllWidgets();

Now, I use "CapSense_IsWidgetActive" function to check which key is pressed one by one.

Is there any other function to directly confirm which button is pressed?

0 Likes
1 Solution
LinglingG_46
Moderator
Moderator

Sorry for the late response.

I attached a test project here. Please check if it can meet your requirement.

View solution in original post

3 Replies
Bob_Marlowe
Expert II

You may check using IsAnyWidgetActive() function but if there is you need to scan through all the buttons.

 

Bob

0 Likes
AdamCheng
New Contributor II

Dear Bob,

I have used  IsAnyWidgetActive()   this function.

If the product has 20 buttons, I need to confirm whether they are pressed one by one use CapSense_IsWidgetActive.

Is there a faster way to confirm that those buttons are pressed?

0 Likes
LinglingG_46
Moderator
Moderator

Sorry for the late response.

I attached a test project here. Please check if it can meet your requirement.

View solution in original post