Announcements
Community Announcement : Welcome to the NEW Cypress Developer Community.
cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

TeCh_3034126
New Contributor II

Hi,

I am using CYBLE-014008-EVAL.

I have configured 2 touch buttons using CapSense CSD module.

I have been reference to the example CE210291_CapSense_P4_One_Button

I tried to use:

CapSense_CSD_Start();                                                  to start CapSense function

CapSense_CSD_ScanSensor(button_id);                    to scan a button

CapSense_CSD_CheckIsSensorActive(button_id)     to check whether the button is pressed

However, CapSense_CSD_CheckIsSensorActive(button_id) always returned 'FAIL'

Did I use the right function?

Can anyone show me a example code?

Thanks!

Terry

0 Likes
3 Replies
RyanZhao
Moderator
Moderator

Hi Terry,

Which version of CapSense_CSD are you using?

As far as I can see, both process widget and update baseline are lost in your code.

And seems that you didn't wait until a hardware scan cycle finished.

Thanks,

Ryan

0 Likes
TeCh_3034126
New Contributor II

Hi Ryan,

Thanks for your help.

I am using CapSense CSD v2.60.

Can you suggest a sample code of using CapSense CSD?

Thanks,

Terry

0 Likes
TeCh_3034126
New Contributor II

Hi Ryan,

Thanks for your insight.

I solved it as I was reference to the tuner API.

Terry

0 Likes