Hi,
I have a push button, and i want to connect to a microcontroller, and i have two actions :
--long press
--short press
can i do this by only microcontroller and puch button ?
thanks
Yes. Connect Push button to an Interrupt pin (To avoid polling overhead). Start a timer upon interrupt. Use the timer value to determine whether it is a long/short press.