Haptic I2C Software

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

cross mob
Marcus_Hellen
Level 3
Level 3
10 replies posted 10 questions asked 10 likes given

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
Level 3
Level 3
10 replies posted 10 questions asked 10 likes given

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