Ir al contenido

Welcome!

This community is for professionals and enthusiasts of our products and services. Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

Esta pregunta ha sido marcada
1 Responder
3854 Vistas

Dear Industrial Shields team, 


which is the maximum value that the millis() function can hold on a counter? 


Thank you,

Avatar
Descartar
Mejor respuesta

Hi there!


Using Millis() function the variable that returns is a 32-bit positive integer (uint32_t).

The maximum number available is about 4E + 9 milliseconds = 4E + 6 seconds = 71E + 3 minutes = 1200 hours = 49.7 days.

When this time has elapsed, start again from 0.


You can get more information related with Millis() library at the following link to our blog: 

https://www.industrialshields.com/blog/arduino-industrial-1/post/industrial-arduino-millis-vs-delay-248


Cheers!

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
abr 24
1710
1
ago 21
2655
1
jun 20
3494
3
mar 21
4705
1
oct 20
3654