May 17, 2013

Get four functions from one button for Arduino projects

 How many functions can you get from one button in your Arduino projects? One? Possibly two? No... with the code provided by enthusiast Jeff Saltzman you can get four functions. Using the code you can detect a press, a double-press, a short hold and a long hold. It's great to use with projects that require a minimalist user interface, a low physical part count or just for something different on your next project. The code is quite simple, and Jeff demonstrates the interface in the following video:


That's a clever piece of coding and quite useful, so visit Jeff's website for more instructions. And for more, we're on twitter and Google+, so follow us for news and product updates as well. 

If you're new to Arduino, the first step is a solid board for your projects - our Freetronics Eleven - the Arduino-Uno compatible with low-profile USB socket, onboard prototyping space and easy to view LEDs:


Leave a comment

Comments have to be approved before showing up.