Capacitive touch - trapping a long press?


Results 1 to 8 of 8

Threaded View

  1. #5
    Join Date
    Mar 2009
    Posts
    653


    Did you find this post helpful? Yes | No

    Default Re: Capacitive touch - trapping a long press?

    Quote Originally Posted by rsocor01 View Post
    You might be able to use some code for a long press in a regular pushbutton and convert it to what you need. Robert
    Hi Robert, unfortunately, I don't think that would be possible.

    With a regular button/switch press using interrupts, firstly an interrupt happens (ie when the switch is pressed), then in the interrupt routine the rogram just rechecks after a short while to see if the same condition is held.

    But with capacitive touch, you have to exit the interrupt routine in order to get the next 'timebase' (the timebase here being 'time' between a timer based based interrupt - & is used to count the output from the CPS module), in other words you can't hang around in the interrupt routine to see if the condition has held.
    Last edited by HankMcSpank; - 10th June 2011 at 09:25.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts