To be honest, I have no clue what you are asking exactly, but I guess you want to print a predefined char-array to the LCD. As you are giving not much information, I just can say, that it works pretty well for me, so the problem is possibly in your datastructure.
[tt]
const unsigned char scaleNames[3][4] = {
{ “—” }, { “min” }, { “MAJ” }
};
MIOS_LCD_PrintCString(scaleNames[1]); // prints “min”
[/tt]
also:
[tt]if (variable[5] == “abcd”[/tt]) {
[tt]MIOS_PrintCString(variable) [/tt] //doesn’t print anything, because you are trying to print the whole array.
** Note: Actually filling the array with a string is not so straightforward. You cannot just do
foo = "New 1";
Because “New 1” is a string in code space and ‘foo’ is in RAM. That is probably bad pracice anyway. As has been suggested prieviously you could use a pointer to the string in code (like PrintCString) or you could use something like strcpy(). If you are printing a number you can use the BCD functions provided by TK. However - and this is untested - If you were filling the array from another variable then it could be useful. Maybe you’d like to try: