I have a routine that prints strings on an LCD display. There are lots of them depending what the product is doing, none more than 20 characters.
First I put all the strings together in an array - that doesn't make for good software legibility, as the string is in a different place to the routine that displays it.
Then I tried:
DisplayBuffer[]="string_to_print";
LCD_Disp(&DisplayBuffer);
but I realise that copies the string to RAM and then prints it from RAM, which isn't very efficient.
What's the best way?
First I put all the strings together in an array - that doesn't make for good software legibility, as the string is in a different place to the routine that displays it.
Then I tried:
DisplayBuffer[]="string_to_print";
LCD_Disp(&DisplayBuffer);
but I realise that copies the string to RAM and then prints it from RAM, which isn't very efficient.
What's the best way?