This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

button with different DETECTION DELAY

Hello,

I want to know if it is possible to configure a button to act with different Detection delay. In other words I want to have a single button to be able to trigger two different functions depending on the time the button is pressed.

Thanks in advance, Alvaro O.P.

Parents
  • It sounds like you want to measure the duration of the button push. You can do this by by adding a timer to the button push interrupt and then you measure the duration until you get a button released. Based on the timer value you can have it do different functions as you want.

Reply
  • It sounds like you want to measure the duration of the button push. You can do this by by adding a timer to the button push interrupt and then you measure the duration until you get a button released. Based on the timer value you can have it do different functions as you want.

Children
No Data
Related