three functions (press, double-click, long press) in one button


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    966


    Did you find this post helpful? Yes | No

    Default Re: three functions (press, double-click, long press) in one button

    Well, I guess, you need to wait anyway to determine a double press. So, one option left is to reduce the waiting time from 1sec to maybe 300mS.

    Second option would be to selectively look for a single press, double press or long press where applicable and thus save the common routine which determines all three modes.

  2. #2
    Join Date
    Aug 2005
    Location
    Michigan, USA
    Posts
    224


    Did you find this post helpful? Yes | No

    Default Re: three functions (press, double-click, long press) in one button

    I think "short" press, "long" press (>1 second), and "longer" press (>2 seconds) might work better since you can act on the "release" switch state. I would also use a piezo speaker or something similar for audible feedback. Generate a single short beep on the "new press" state, a double beep at the one second timeout, and a triple beep at the 2 second timeout.

    Cheerful regards, Mike

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