Hi,
I am using Button2 library for one of my projects. I would like to count from button that has been pushed and till it has been released. I have already completed my interface using Button2 library. So it is difficult for me to change the button2 library.
Sorry for that.
I am using Button2 library for my project. I need to increase the value of a variable when the button is pressed too long and to increment by 1 when it is pressed only once.
The example "Single Button" with the library shows a variety of functions, including click() and longClick(). Those functions are called when a click or long click is completed, so why not do your incrementing in there?