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

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

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

Is the template class available in the IDE and in which lib does it live? Fungus (short for Funny Gustavo?)? Thank You, that Print function would solve a lot of GLCD printing that I need to do with the UTFT Library

Bob

--> WA7EMS "The solution of every problem is another problem." -Johann Wolfgang von GoetheI do answer technical questions PM'd to me with whatever is in my clipboard

Template functions must be defined in a .h file that is then included in the sketch.

No, they can be in the source.If you include a header, its contents is placed in the spot of the '#include', so its no different to putting it at the top of the sketch. The compiler just needs to see it before its used.

EDIT: PaulS may be right regarding Arduino specifics, it may only copy the function prototype without the previous 'template' line.Try putting it all on the one line 'template<class T> void MyLCD(byte col, byte row, T t);' though before separating. Had no trouble with template objects, spose functions are a different kettle of tea.