C - how to use PROGMEM to store and read char array

arduino, c

Solution

There's an example on how to do precisely this on the Arduino website. (See under "Arrays of strings".)

Problem

I have three char arrays, and I don't want Arduino store those in SRAM, so I want to use PROGMEM to store and read in flash, instead. ``` char *firstArr[]={"option 1","option 2","option 3","option 4"}; char *secondArr[]={"test 1","test 2"}; ```

Original source