I have an RTC modual and lcd all wired up with an arduino mega. My code should all be correct but i get a flickering lcd instead of it displaying the information. Can someone help me troubleshoot this issue.
RTC.ino (9.16 KB)
I have an RTC modual and lcd all wired up with an arduino mega. My code should all be correct but i get a flickering lcd instead of it displaying the information. Can someone help me troubleshoot this issue.
RTC.ino (9.16 KB)
Attaching your code instead of posting it as described in the "how to use this forum-please read" stickies makes your code less accessible to members.
As far as I can see, you are rewriting the LCD as fast as the loop() runs, which will be much faster than the LCD is capable of refreshing. I see nothing in there that does the job of waiting for a second to pass before updating it.
loop() {
Ask the RTC for the current time
if the time is different now from the last time I updated it
display the time ow
end
}