This will be a very, very short post. I found out there is a few things in my google code page I don’t have a “blahg” entry for, my old ClickButton library for the Arduino is one of them.

Basically, I was annoyed by some of my formerly named variables and some minor stuff (hello, OCD?). That, and also someone asked a question about it so I took another look at it. Above all it is untested, for now, so feel free to report back any problems. Or go back to the previous version.

It still just copes with one button, but I included a simple example using an array of ClickButton objects for more buttons.

It features basically two types of button clicks; short and long clicks, and can test for click-and-hold. Button logic does not matter (active low or active high buttons).

I removed the maxPresses (max click count) limit, it seemed unnecessary.

Until next time,