Según altos estándares industriales

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.

0

Counter with millis() function

por
Guest
en 12/4/21 10:29 95 vistas

Dear Industrial Shields team, 


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


Thank you,


0
Industrial Shields Forum user

Support Team

--Support Team--

1000000007
| 0 0 0
Sant Fruitós de Bages, España
--Support Team--
Support Team
En 12/4/21 10:55

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!


Mantener informado

Acerca de esta comunidad

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. Lea los lineamientos

Herramientas de las preguntas

3 seguidor(es)

Estadísticas

Preguntado: 12/4/21 10:29
Visto: 95 veces
Última actualización: 12/4/21 10:55