-->

Short Press Button Time


-->

Short Press Button Time. How to detect short press we measure the time duration between the pressed and released events. The gpio interface can be used to.

Pressable button UXT Documentation
Pressable button UXT Documentation from microsoft.github.io

In this guide i look at determining if the key press was short or long. As i learned that millis () doesn't increment inside an isr, i figured out a way to detect short/long press with attachinterrupt. The long press function is triggered whilst the button is being pressed, the short press function is triggered once the button is released.

-->

Pressable button UXT Documentation

If this time is shorter than the set amount, it counts as a short press. The long press function is triggered whilst the button is being pressed, the short press function is triggered once the button is released. The gpio interface can be used to. In this guide i look at determining if the key press was short or long.

-->