Author Topic: constant lists for lcd display application  (Read 1809 times)

0 Members and 1 Guest are viewing this topic.

SamMarco

constant lists for lcd display application
« on: September 02, 2012, 02:50:34 PM »
I'm working on an application with an LCD and several text strings. Due to the Arduino RAM restrictions, I would like to use constant strings. Anyway the use of

Code: [Select]
const char message = "this is a message";
is useless because this const only affects to the write property of message, but it is placed in RAM instead of ROM.

I have seen those

Code: [Select]
prog_char miss00[] PROGMEM = "Message again";
I experience some hangs-up (reboot) in the Arduino.

What do you recommend me? I'm sure that there may be another posts about the same topic but I don't find them.  :-X

bds

Re: constant lists for lcd display application
« Reply #1 on: October 17, 2012, 12:43:05 AM »
refer to the arduino reference on PROGMEM.

http://www.arduino.cc/en/Reference/PROGMEM
at the bottom of the page you should find the section titled 'Arrays of strings'.

This should sort your troubles.