Quote Originally Posted by HenrikOlsson View Post
Hi,
Here the strings are stored in program flash (where else should it go?) and written to the LCD when the LCDOUT statement executes. It's not the most efficient way of doing it but it's probably the easiest. If the messages are partly "the same" (like in the above example) you can have subroutines to print just that part which you then GOSUB from within the Case section, that will save on flash since you don't have to store the same string ("This is message") more than one time[code]
/Henrik.
Love the idea, unfortunately, the messages are ALL different. Some have similar parts, but not similar enough to make that viable.

That's the reason for LOTS of messages.

I decided to store 16 characters for each message (including leading and trailing spaces) because it makes displaying them SO much easier. Each one is a complete line on the LCD, and the loop is the same, no matter if the message is " BLACK FLAG "
or " REPORT TO PIT ". I want each message centered in the display for ease of reading at race speeds.

Ciao!

Andy