On Sun, 30 Oct 2016 20:17:51 +0100
Georg-Johann Lay <a...@gjlay.de> 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

leon...@leonerd.org.uk      |  https://metacpan.org/author/PEVANS
http://www.leonerd.org.uk/  |  https://www.tindie.com/stores/leonerd/

_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to