Start of Christmas Weekend

Woohoo, week is over, got an official day off tomorrow and Monday, plus light work week next week.  I need the rest.

I took some time to get back to Arduino, I picked up on another reason not to like upgrading the IDE, one thing that changed was PROGMEM,  I tried to reuse some code and it did not work because of how you use it.

Still have to move from progmem to a variable, but the declaration is different.

Old way from 2012

PROGMEM prog_char TL_00[] = "Larry Apolonio";
PROGMEM char *TopLine[] = 
{ 
 TL_00, TL_01
};

New way

const char TL_00[] PROGMEM = "Larry Apolonio";
const char * const TopLine[] PROGMEM = 
{ 
 TL_00, TL_01
};

 

This entry was posted in Arduino, Technical, Training. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.