Go Down

Topic: trouble with timestamps (Read 831 times) previous topic - next topic

AWOL

I'd try putting in some debug prints, to give you some idea of what is going on.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

PaulS

I think that you want to record when the buttons first go HIGH, not that they are HIGH on this pass through loop(). This will require that you keep track of the previous state of the button. When the state changes to HIGH, record the time.

Debouncing the switches would be useful, too.

Go Up