@cevepe
you could use a template to spare a lot of overloads
template < typename T0, typename T1>
void printLCD(T0 line0, T1 line1)
{
lcd.clear();
//lcd.setCursor(0, 0); // done by clear anyway
lcd.print(line0);
lcd.setCursor(0, 1);
lcd.print(line1);
}
this enables you do print out more than just char*,
Examples:
printLCD("test", "string lit");
printLCD("char", 'x');
String aString = "FooFoo";
printLCD("String", aString);
printLCD("int", 1234);
printLCD(1234, "int");
printLCD("float", 12.34);
printLCD(12.34, "float");
printLCD(12.34, F("mixed with F-Makro"));
but if you need really a function for "that i don't have to write 5 lines all the time" ... and if you really need it a lot in your sketch, you might consider other concepts, for example holding the data in PROGMEM or using the F-Makro