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

PSoC 4 MCU

Marcus_Hellen
New Contributor II

Hello everyone,

I am using CY8C4147AZS-S475 MCU and I want to get haptic when I touch my touchpad. I think I can be done with I2C. How can I write the necessary code in application layer?

Is there anyone who can help me?

Thank you in advance!

Marcus

 

0 Likes
1 Reply
Marcus_Hellen
New Contributor II

Is it possible to write like the following code? :

for(;;)
{
/* Place your application code here. */
if(CapSense_NOT_BUSY== CapSense_IsBusy()){
CapSense_ProcessAllWidgets();
if(CapSense_IsAnyWidgetActive()){
Xcord = CapSense_GetXYCoordinates(CapSense_TOUCHPAD_POS_X_VALUE);
Ycord = CapSense_GetXYCoordinates(CapSense_TOUCHPAD_POS_Y_VALUE);
I2C_sda_Write(ON); 

I2C_scl_Write(ON);

0 Likes