I am a newbie... I have ATMega2560 with 16x2 LCD shield and am using Atmel Studio to build my code with Arduino 1.03. It is not in sketch format... Just a bunch of *.h and *.cpp files...
I am trying to do the following but I sometimes get unexpected characters or garbage being printed to my LCD...
But if I do the following, I get the correct result
strcpy_P(lcd_buf, menu_str[0]);
That makes me think there is something wrong with the way I am using pgm_read_word().
So I thought may be I should define menu_str [] in the following way
Thanks guys... None of the solutions worked, that's because I am compiling in Atmel Studio 6. The compiler in Atmel Studio does not like the way I declared menu_str[ ]. It wanted the following