Re: PROGMEM on compound-literal arrays
"Paul \"LeoNerd\" Evans" <[email protected]> Sun, 6 Nov 2016 14:55:29 +0000
| Newsgroups | gmane.comp.hardware.avr.gcc |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 30 Oct 2016 20:17:51 +0100 Georg-Johann Lay <[email protected]> wrote: > Well, code like > > i2c_write ( > #include "data.def" > ); > > where data.def contains > > 4, (const uint8_t[]){0x10, 0x20, 0x30, 0x40} > > might be in order for auto generated code, but solutions that first > define a variable and then use it by its name is superior. One > reason is that multiple uses of the same ad hoc data don't generate > different instances. Ahyes, multiple references. Given as these are image bitmaps for an OLED display, perhaps it would be best for me to put them in some variables after all. -- Paul "LeoNerd" Evans [email protected] | https://metacpan.org/author/PEVANS http://www.leonerd.org.uk/ | https://www.tindie.com/stores/leonerd/