How to save RAM?
hi,
i've bigger program have print lot serial , lcd, since every string print this:
serial.println("hallo, world!");
i eats ram amount of chars has. how can strings not eat ram, program memory.
i know there progmem macro, didn't find documented
only 6 pages in libc documentary...and nothing such functions printf_p() wich seems read strings progmem , print them (how use serial.print?) how use @ all? how string progmem, or progmem when writing this:
printf_p("hello world");
-- astro
i've bigger program have print lot serial , lcd, since every string print this:
serial.println("hallo, world!");
i eats ram amount of chars has. how can strings not eat ram, program memory.
i know there progmem macro, didn't find documented

only 6 pages in libc documentary...and nothing such functions printf_p() wich seems read strings progmem , print them (how use serial.print?) how use @ all? how string progmem, or progmem when writing this:
printf_p("hello world");

-- astro
you missed http://www.arduino.cc/en/reference/progmem ?
Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > How to save RAM?
arduino
Comments
Post a Comment