String handling help appreciated
i want able send variable text strings lcd. i want put text in variable call lcd handler function creating. i have done far
char lcdmessage[200] = " "; //allocate space 200 characters
later in various places want call lcd handler following
strcpy(lcdmessage, "some text")
then call lcd handler following (among other things)
serial.print(lcdmessage)
all of works fine love have available space have allocated lcdmessage variable. perhaps define 200 characters , inadvertently send 205 characters...oops!
is there way make more dynamic? am going string handling in right way begin with?
thanks,
jim, k6jmg
char lcdmessage[200] = " "; //allocate space 200 characters
later in various places want call lcd handler following
strcpy(lcdmessage, "some text")
then call lcd handler following (among other things)
serial.print(lcdmessage)
all of works fine love have available space have allocated lcdmessage variable. perhaps define 200 characters , inadvertently send 205 characters...oops!
is there way make more dynamic? am going string handling in right way begin with?
thanks,
jim, k6jmg
what passing message string lcdhandler argument.
Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > String handling help appreciated
arduino
Comments
Post a Comment