Pages: [1]   Go Down
Author Topic: serial print from memory  (Read 1250 times)
0 Members and 1 Guest are viewing this topic.
Michigan
Offline Offline
Newbie
*
Karma: 1
Posts: 33
IR Combat
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Is it possible to implement a new simple function to print to an LCD from memory (not RAM) without having to use the complicated progmem function?  like a simple

memory.print("XXXX");

I have a library someone else wrote that does that and it saves tons of RAM withough having to use progmem directly.
Logged

IR Combat laser tag developer/inventor

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 310
Posts: 26627
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You said have the library -what's the problem?
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Portugal
Offline Offline
God Member
*****
Karma: 6
Posts: 962
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The only wait do do that is using PROGMEM in the declaration and then pgm_read_byte_near, so its pretty simple to use....
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 653
Posts: 50881
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
The only wait do do that is using PROGMEM in the declaration and then pgm_read_byte_near, so its pretty simple to use....
I recognize all of those words, but I don't think that I've ever seen them used in that order before. That particular order did not convey much to me.
Logged

Global Moderator
Dallas
Online Online
Shannon Member
*****
Karma: 212
Posts: 13085
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


I don't know if it will work with an LCD but the Flash Library works with Serial and makes embedding string constants very simple...

http://arduiniana.org/libraries/flash/
Logged

Pages: [1]   Go Up
Jump to: