Hi, i am making little big (not so big) project and i have a problem. In my library i have a function lcd_print which i am using to printing text or whatever i want to lcd. It look like that.
void lcd_print(char* text){
lcd.printstr(text);
}
In my main program, I am trying to use this function and as a parameter i am sending String or double. For example
String signCounter = '"Blabla";
lcd_print(signCounter);
But i got typical error:
- error: cannot convert 'String' to 'char*' for argument '1' to 'void lcd_print(char*)'
lcd_print(znakCasovac);
So i tried to use it like this:
lcd_print((String)signCounter);
but it didnt work.
I cant just use function lcd.print(), bcs i have declared lcd in library with function
void lcd_print(char* text) and i cant double it.
I tried everything I could think of, but it didnt work like i want.
I hope u can help me and that u understood what i mean with all it