Howdy,
I'm in the process of converting my AVR code to work with my shiny new Maple r5 using libmaple. I have a font table that was previously stored in PROGMEM. According to the docs I should use something like:
static unsigned char font[] __attribute__((section (".USER_FLASH"))) = { ... };
Which seems to compile fine. Now, how exactly do I read it? Do I refer to font
as a regular variable, i.e.: font[0]
will return the first element, etc. ? Or is there a special function similar to pgm_read_byte(..)
?
-robodude666