Hi guys, i'm having a problem while trying to print dinamic data (that changes during time) on a 16x2 I2C LCD. If I try to print only one string it works, but if i try to print two string on two different rows, data seems to be freezed. How can I fix that? Thx
void setup() {
Serial.begin(38400);
Wire.begin();
initLEDS(); //other stuff
InitTxPackets();//
controlsInit();//
lcd.begin(16,2);
lcd.backlight();
lcd.clear();
lcd.home();
lcd.print("G:");
lcd.setCursor(0,1);
delay(200);LEDSAllOff();//
}
void loop()
{
input();//lcdWrite((String)VData.G,(String)VData.AP); //VData.G & VData.AP are floats
time++;
output();//
}
void lcdWrite(String s1, String s2){
if (time>=50)
{lcd.setCursor(2,0);
lcd.println(s1);
lcd.setCursor(1,1);
lcd.println(s2);time=0;
}}