I have wrote a program it works fine but, the data on my lcd get's very frequently updated, so I cant read it any more.
If I put a delay in the program the lcd works, but I need a high refresh rate for the rest of my program, how can I solve this problem?
Greetz,
Emiel
sory for my bad english
When you update the LCD, note the time. Don't update if less than 100 milliseconds have passed:
unsigned long lastRefreshTime = 0;
void loop()
{
.
.
.
if (millis() - lastRefreshTime > 100)
{
update the LCD;
lastRefreshTime = millis();
}
.
.
.
}
When you update the LCD, note the time. Don't update if less than 100 milliseconds have passed
Alternatively, don't update the LCD unless the data has changed.
Which would work for you depends on what you are writing to the LCD. It was hard to tell from the code you posted...