G'Day,
Is there a sneaky way of printing a string that has been composed in an array?
e.g.
char buffer[10];
buffer[0]='c';
buffer[1]='a';
buffer[2]='t'
buffer[3]=0; // null character to indicate end of string
What I normally do is
For (i=0;i<4;i++) Serial.print(buffer*);*
I know I can Serial.print(“cat”) but I use sensor input values to set buffer[] locations, so cannot hard code the string contents.
Tks