Go Down

Topic: how to use bitmap? (Read 1 time) previous topic - next topic

TTU.ABD

For function [ drawBitmap(x, y, sx, sy, data [, scale]); ]  in library utft, do I put
replacing data the name of array or the data of array(all the
Hexadecimals of pixels ) ?

pYro_65

The type is an 'unsigned int*' so it would be an array of 16 bit data.
You want to put the name of the array.

TTU.ABD

am I put the data of array (all hexadecimals of pixels) on the same arduino program or put the file (.c) which contains the data of array on the sd card?

pYro_65

If you wish to use a .c file it will have to be compiled into the sketch.
You could store a binary file of the data, then using the SD library, read it into your sketch first then pass it to the drawBitmap function.

For now, include the .c file in your sketch and try that way.

TTU.ABD

#4
Feb 27, 2013, 12:22 pm Last Edit: Feb 27, 2013, 12:23 pm by TTU.ABD Reason: 1
you started your talk (if you wish...), so can I  put the data of array (all hexadecimals of pixels) on the same arduino program and without using SD Card ?

pYro_65

Yes, it is the far easier option, to use the SD card would be far more complex. What ever library you are using most probably has a tutorial/example of bit map use.

Go Up