hddforensic:
Hi,Because millis is not accurate, I'd like to use RTC instead.
I have a project with an Lcd counter. it increase by One, every
second more or less because millis is not accurateTo execute my counter every second I use the common following line with millis
if(currentMillis - previousMillis > interval) {
do something
}previousMillis = currentMillis;
Question
now.second() is the variable for second is in it ?
How can use it to replace millis ?
You are most of the way there already.
Instead of using previousMillis, create a variable named previousSecond and use it.
Then you will be able to compare now.second() to previousSecond.
(Hint: the symbol != means "does not equal".)