Go Down

Topic: Data Tracking with Machine Status Light on CNC machine. (Read 934 times) previous topic - next topic


how can i reset the millis() ?

Reset the Arduino.

What's with
     the random
                                      Code that
                runs all

over the place

                         is really hard to read.


how can i reset the millis() ?

Probably, resetting the value of millis() is not the best way to achieve your goal. What are you trying to achieve?
I only provide help via the forum - please do not contact me for private consultancy.


how can i reset the millis() ?

You don't, although I can see how you might have interpreted my remarks that way. What I was trying to say was that on each transition, you need to store the value of millis at that time, so that you calculate how much time was spent in that state when the next transition occurs. You can see a simple version of this kind of usage (without the time summation) in the blink without delay example.

Go Up