Whenever I need to print to lcd display I have to type
lcd.setCursor(column, row);
lcd.print("String);
So I created a function
void lcdsnp(char col, char row, String data){ // Lcd set cursor and print
lcd.setCursor(col, row);
lcd.print(data);
}
which can be called by lcdsnp(col, row, "String"). I have a menu function which would be called once only if required for calibration. How to modify the function to use
lcd.print(F(data)) instead of lcd.print(data) to save SRAM space ?
It will work. The String class knows how to construct a String object from a pointer c-string (or c-string literal). It can even construct a String object from a __FlashStringHelper* pointer. So, without overloads like my previous post:
By using the method provided in the solution I made my 20 lcd.print("Some text) which was copying them from flash to RAM at startup was made to read from flash.
Serial print is used mostly for debugging. I won't need it now. Is it ok to leave Serial.begin(9600); as it is or should I delete it? Will it have any impact on resources?