Jun 14, 2021
11:15 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 14, 2021
11:15 PM
How can i use one capsense button with two event . Example if i am pressing capsense for 5 sec it will work for event number 2 @
Solved! Go to Solution.
Labels
- Labels:
-
PSoC 4 MCU
1 Solution
Attachments are accessible only for community members.
Jun 14, 2021
11:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 14, 2021
11:48 PM
Hi @iammyur
You can do this with the help of a timer block. I am attaching a project that calls 2 functions based on the CapSense status. A short press will call Function1 and a long press (of 5 seconds) will call function2. I have prepared this for the 145-40XX kit, but you can port it to any device.
Best regards,
Hari
6 Replies