fungus:
zarobhr:
MyLCD(10,0,"ALL in ");
MyLCD(5,1,"Error");
void MyLCD(byte col, byte row, ?????? info { \Here is where i am not sure of the proper datatype for the ?????? so it will take anything just like the print/write does
//do additional stuff here
lcd.setCursor(col,row);
lcd.print(info);
}
Try this:
template<class T>
void MyLCD(byte col, byte row, T t)
{
lcd.setCursor(col,row);
lcd.print(t);
}
i added that to the code after my void loop
CMSBridge_ino2:6: error: 'T' has not been declared
CMSBridge_ino2.cpp: In function 'void loop()':
CMSBridge_ino2:246: error: invalid conversion from 'const char*' to 'int'
CMSBridge_ino2:246: error: initializing argument 3 of 'void MyLCD(byte, byte, int)'