In one of the examples there is code explaining for a long press. However that only works after you release the button. I wanted a press-hold function to for example switch off a radio. If anyone is looking for that, here is the code.
longPressAfterMiliseconds is a global variable stating how long you need to press before it is triggered.
In one of the examples there is code explaining for a long press. However that only works after you release the button. I wanted a press-hold function to for example switch off a radio. If anyone is looking for that, here is the code. longPressAfterMiliseconds is a global variable stating how long you need to press before it is triggered.