Hello GHI folks,
I have a button attached to an input port on a FEZ Panda.
I would like to perform one action if the button is pressed for < 1 second
I would like to perform a different action if the button is held down for >= 1 second.
I understand about the rising edge and falling edge of the button press.
I also understand about timers.
I am not sure if the easiest approach is to start a timer when the button is pressed and stop the timer when the button is released. I then look to see if elapsed time is less than or greater than 1 second. This seems like a lot of work and not the best approach.
I would appreciate any recommendations from you gurus!
Walnut Creek, CA