JChristensen / JC_Button

Arduino library to debounce button switches, detect presses, releases, and long presses
GNU General Public License v3.0
425 stars 102 forks source link

double_click check #34

Closed Yembot31013 closed 1 year ago

Yembot31013 commented 1 year ago

please can you make a function or simple example for checking if the button is pressed twice, three times, e.t.c

JChristensen commented 1 year ago

Very sorry, I have no plans to do this.

iharshadec commented 9 months ago

https://github.com/Kuantronic/JC_Button this repo has some logic added to detect such a way.

Yembot31013 commented 9 months ago

ok? @iharshadec what is the logic please?

iharshadec commented 8 months ago

ok? @iharshadec what is the logic please?

Have a look at this example code:- https://github.com/Kuantronic/JC_Button/blob/master/examples/MultiPressRead/MultiPressRead.ino