Button press and hold/ double press and hold

you can have a look at this oneButton library to see how the state machine was implemented


(This content is part of the http://www.mathertel.de/ web site)