The following code generates trash characters after the second print. I don't see why this is happening. Tried it with 2 different 16x2 displays. on an UNO.
#include <LCD_I2C.h>
int8_t secs = 45;
LCD_I2C lcd(0x27, 16, 2);
void setup() {
Serial.begin(115200);
delay(250);
lcd.begin();
lcd.backlight();
lcd.clear();
DisplayTime();
}
void loop() {}
void DisplayTime() {
int8_t n;
lcd.backlight();
lcd.setCursor(11, 0);
lcd.print(secs / 60);
Serial.println(secs % 60);
lcd.setCursor(11, 1);
n = secs % 60;
lcd.println(n);
}