Go Down

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


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 ) ?


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.


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?


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.


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 ?


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

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131