Problem with millis() timing

I guess because you used “while” which blokes the code until the 5sec passes?

1 Like