Fri Mar 20, 2015 12:06 pm
const byte map1[] = {data};
const byte *maps = {map1};
const byte *currentmap;
currentmap = maps[0];
const byte map1[] PROGMEM = {data};
Fri Mar 20, 2015 1:10 pm
#include <avr/pgmspace.h>
...
const byte map1[] PROGMEM = {data};
byte yourdata = pgm_read_byte(&(map1[3]));
Fri Mar 20, 2015 1:23 pm
const byte arr[] PROGMEM = {42};
arr[0]; // returns 42
Fri Mar 20, 2015 1:33 pm
#include <avr/pgmspace.h>
...
const byte level1[] PROGMEM = {data};
const byte level2[] PROGMEM = {data};
uint16_t levels[] PROGMEM = {&(level1), &(level2)};
byte b = pgm_read_byte(pgm_read_ptr(&(levels[levelindex]))+dataindex);
Fri Mar 20, 2015 3:29 pm
CORE: *** Invalid read address PC=083e SP=08f8 O=3081 Address dc01 out of ram (08ff)