poelstra / arduino-multi-button

Reliable detection of single, double and long clicks for Arduino.
MIT License
74 stars 15 forks source link

Three clicks detection #2

Open SteFR opened 6 years ago

SteFR commented 6 years ago

Hello,

Very interesting library. Congratulations for the work.

I want to design a domotical central for my house's shutters. (13 shutters, 13 Up buttons and 13 Down buttons).

Idea :

I tried to understand your program to modify it. But I'm not enough experienced to implement the "three clicks" functionality.

My questions :

Best regards,

Stéphane C.

poelstra commented 6 years ago

Thanks!

I do have triple-clicking (arbitrary number of clicks, actually) in mind for a future version, as I also need it for a future project.

It will be necessary to introduce a delay to signalling the double-click event to the user, and count the number of clicks in-between. I tried to quickly hack it in just now, but it doesn't seem to be possible to do so by changing just a line or two, so I'll have to look at it when I have more time later.

I'll keep this issue open to track its progress.

DarkblooM-IO commented 3 months ago

Any news about this?

poelstra commented 3 months ago

Nope, I (apparently :)) didn't need it yet...