the target is to reduce program space because I use these two lines alot in my program and it really works nice, but the problem is that I don't want to use this function only with chars (because I declared const char msg[]), I want to print bools or ints. and my function in this case can print only chars, how to make it general, just like lcd.print()
must I write a seperate function for each type ? or there is some magic can I do
that's wrong now, defining a function using #define makes the compiler replacing the function literally with its code, the size of code will still huge, so we didn't solve the problem, but we converts it to another shape