Christmas

Arduino - Loading Strings from Flash Memory

December 22, 2014
arduino, C, Christmas, progmem

I got out my Arduino board for the first time in a while for a Christmas themed project. More on that in another post. This post is about loading strings from the Arduino’s flash memory, aka program memory, aka PROGMEM. There is an example in the PROGMEM link above, but it’s kinda ugly. Here’s the main points from their example code: // set up strings prog_char string_0[] PROGMEM = "String 0"; // "String 0" etc are strings to store - change to suit. ...