I just want to lcd.print the word LED1
Then surround LED with quotes. If it is not surrounded by quotes, the compiler will look for a variable with that name.
So I need to do this to all the text I want to print?
No, that was just an example. Like this:
char line1[] = "hamster";
lcd.print(line1);
lcd.print("hamster");
These two blocks of code will produce the same result on the lcd.
Do i need to do a char somewhere for all of them?
Either that, or you use constant strings:
menuLedOn ("something", "something else", "Led1", 1);
Here's another simple example:
void sentence(char *animal, char *action, int times)
{
Serial.print("The ");
Serial.print(animal);
Serial.print(" ");
Serial.print(action);
Serial.print(" ");
Serial.print(times);
Serial.print(" time(s)");
}
Given this block of code, you could print out different sentences using different arguments:
sentence("dog", "licks", 8); // The dog licks 8 time(s)
sentence("cat", "purrs", 1); // The cat purrs 1 time(s)