After scan which widget is actived

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
AdamCheng
Level 1
Level 1
10 sign-ins 5 replies posted 5 sign-ins

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
lock attach
Attachments are accessible only for community members.
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

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
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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

 

Bob

0 Likes

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
lock attach
Attachments are accessible only for community members.
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

Sorry for the late response.

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