Hi,
In my sketch I have a some loops that write to the LCD. The command lcd.clear() in a loop will make the LCD flicker.
Below code only clears lcd when request comes from another source.
If needed you can clear the lcd extra by using the lcd.clear() command or lcdSource=""
Srting lcdSource = ""; // memorizes last clear request
void lcdClear(String requestSource){ // only clears the LCD when new text needs to be displayed, this avoids blinking of the text
if (lcdSource != requestSource){
lcd.clear();
lcdSource = requestSource;
}
}