Storing images as byte arrays in a seperate file within a sketch folder



iv been using lcd screen on arduino mega , have found out storing images byte arrays using small windows based tool convert image.

i copy/paste byte array (quite alot of charters) @ top of arduino sketch , can reference , use byte array/image on lcd screen great!

the problem makes sketch long when having multiple images....

how go storing byte arrays (images) in separate file such .c or .h file within sketch folder can still access within sketch use on lcd screen?

a quick step step guide great because im 100% possible do.

thanks!

#include friend.  create new file called "image_a.h", paste text in first image.  create second file called "image_b.h" , paste text second image.

then @ top of sketch, this:

code: [select]

#include "image_a.h"
#include "image_b.h"


the compiler insert files @ point.


Arduino Forum > Using Arduino > Project Guidance > Storing images as byte arrays in a seperate file within a sketch folder


arduino

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support