Jun 28, 2021
10:41 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 28, 2021
10:41 PM
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
Labels
- Labels:
-
PSoC 4 MCU
1 Reply
Jun 29, 2021
12:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 29, 2021
12:15 AM
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);