How to get centroid with ModusToolbox for PSoC4000S

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

cross mob
YoIs_1298666
Level 5
Level 5
250 sign-ins 100 replies posted 100 sign-ins

Hello,

We know how to get the touch position(centroid) of CapSense Linear Slider with PSoC Creator.

       uint32 centroid;

      centroid = CapSense_GetCentroidPos(CapSense_SLD_WDGT_ID);

How can we get it with ModusToolbox?

Best regards,

Yocchi

0 Likes
1 Solution
AlenAn14
Moderator
Moderator
Moderator
500 replies posted 100 solutions authored 250 replies posted

Hi @YoIs_1298666 ,

Have you tried creating the Capsense example projects that are provided in ModusToolbox 2.4 .

You can try going through the below mentioned 2 examples to understand more in detail of how to use the capsense feature in ModusToolbox:
1. CAPSENSE Buttons and Slider
2. CAPSENSE Custom Scan

capsense.png

Hope this helps.

Regards
Alen

 

View solution in original post

0 Likes
1 Reply
AlenAn14
Moderator
Moderator
Moderator
500 replies posted 100 solutions authored 250 replies posted

Hi @YoIs_1298666 ,

Have you tried creating the Capsense example projects that are provided in ModusToolbox 2.4 .

You can try going through the below mentioned 2 examples to understand more in detail of how to use the capsense feature in ModusToolbox:
1. CAPSENSE Buttons and Slider
2. CAPSENSE Custom Scan

capsense.png

Hope this helps.

Regards
Alen

 

0 Likes