SmartButton class

Showroom for MicroPython related hardware projects.
Target audience: Users wanting to show off their project!
Post Reply
fma
Posts: 164
Joined: Wed Jan 01, 2014 5:38 pm
Location: France

SmartButton class

Post by fma » Mon Apr 27, 2015 3:57 pm

Hi!

Part of my future smart gamepad, and already part of my Hexapod framework, here is a SmartButton class, which can handle press/release/click/double-click/hold/double-hold triggers (triple-click/triple-hold can be add without problem). Based on a FSM.

Feel free to test/comment/review!
Frédéric

Post Reply