From 0 to 100 script

Hello everyone,

I’m trying to write a script that goes from which goes from 0 to 100 in 10 minutes with the look of a digital clock.

I hope someone can help.

Thank you!


Try to look at the map() function (for your number going from 0 to 100) and millis() for your 10 minutes :

also a good start for your ?6000 millis? timer can find
timer class

Thank you very much!

You may also be interested in the timing libraries:

…and keep in mind that, unlike millis() (which is aligned to the sketch start time) second() and minute() are already aligned to the wall clock.

Finally, you may be interested in example sketches and tutorials relating to time – for example:

1 Like