Combining millis with button sensing

arduino_new:
consider the following pseudo code:

No, do not consider useless (pseudo) code :slight_smile:

Consider this nice guide in the top of the forum instead!