[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] PROGMEM on compound-literal arrays
From: |
Paul \"LeoNerd\" Evans |
Subject: |
Re: [avr-gcc-list] PROGMEM on compound-literal arrays |
Date: |
Sun, 6 Nov 2016 14:55:29 +0000 |
On Sun, 30 Oct 2016 20:17:51 +0100
Georg-Johann Lay <address@hidden> 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
address@hidden | https://metacpan.org/author/PEVANS
http://www.leonerd.org.uk/ | https://www.tindie.com/stores/leonerd/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [avr-gcc-list] PROGMEM on compound-literal arrays,
Paul \"LeoNerd\" Evans <=