Hi,
I guess this must have been asked numerous times, so sorry for me asking this again…
What I would like to do is this:
When I move or turn a fader or pot, I want to display a short message on the LED that says which pot was turned. So I have created a table that contains 64 message texts to displaying a short info on LED about which AIN pot was moved.
For doing that I started adjusting the ain64_din128_dout128_v2_0 main.c file.
The messages are stored in a variable like this:
code char * pot_text[]={
"U. Draw. 16\0" , // 1 - Drawbar 1
"U. Draw. 5 1/3\0", // 2 - Drawbar 2
"U. Draw. 8\0" , // 3 - Drawbar 3
"U. Draw. 4\0" , // 4 - Drawbar 4
"U. Draw. 2 2/3\0", // 5 - Drawbar 5
};
Call to display text:
MIOS_LCD_CursorSet(0x00);
MIOS_LCD_PrintCString(pot_text[last_ain_pin]);
When I try to implement the variable pot_text as a global variable inside main.c, it does not work. The displayed text is garbled and consists of garbage. But when I declare the pot_text variable as a local variable in DISPLAY_tick it works if I have a rather short pot_text table (not 64 entries but maybe about entries).
Is there a limit in size for variables for MIOS_LCD_PrintCString?
What is the recommended way for creating a message text table and displaying one of these messages on the LCD?
Thx for any help,
Crypto.