Gunner
July 19, 2019, 10:52pm
9
millis() is part of the Arduino core functions… and is not required nor excluded when using Blynk, any more so than other Arduino commands or libraries.
Generally it is used anytime you want to display UpTime or other “time past since boot” calculations.
#13 - The All-in-One Timer Function (AKA Lambda Function) - No, I don’t entirely understand it… but it works
I like this for it’s relative simplicity… no separate function to call (or write in the code) I just copy/paste my most used into my new sketches…
The UpTime counter. Note: the millis() counter will eventually loop back to 0 in about 50 days… don’t use this as a long term counter if long term accuracy mattters - https://www.arduino.…
#22 - Super Simple Duration Counter
OK, 'fess up time… I have rarely used millis() unless it was already included in some example or snippet copied from elsewhere, so I just assumed using it for actual human readable time was difficult… Well, it is not!!
V0 is a Button Widget set to switch mode
V1 is a Display Widget
And that is it… If all you need is a readable Hours/Minutes/Seconds duration display, without using Time library, RTC, etc. then here you go.
EDIT - Updated to count d…
1 Like