Sunday, February 24, 2019

Measure times using millis()

   If you need to find the time what a button is pusshed or you want to use one button for made more function (short or long push / short, medium or long push) it can use millis() function with Arduino  language.
   Information for this thechnique (method) I found it on Doz's Blog.
   For test, I use a simple schematic (one button) and pushtime1button.ino program (sketch).
    For understand more ok the style of use, I tested also with 2 buttons, using pushtime2buttons.ino sketch.
     I made a short movie named measure times using millis() where is mase some tests: