Drawing Bitmaps

There is a built in microSD card slot into the shield, and we can use that to load bitmap images! You will need a microSD card formatted FAT16 or FAT32 (they almost always are by default).

Its really easy to draw bitmaps. Lets start by downloading this image of adabot and friends

Save and rename it to adabot.bmp into the base directory of a microSD card and insert it into the microSD socket in the shield. Now upload the file->examples->Adafruit_HX8357>fulltest_featherwing example to your Feather + Wing. You will see your electronic friends appear!

To make new bitmaps, make sure they are less than  480 by 320 pixels and save them in 24-bit BMP format! They must be in 24-bit format, even if they are not 24-bit color as that is the easiest format for the Arduino. You can rotate images using the setRotation() procedure

You can draw as many images as you want - dont forget the names must be less than 8 characters long. Just copy the BMP drawing routines below loop() and call

bmpDraw(bmpfilename, x, y);

For each bitmap. They can be smaller than 480x240 and placed in any location on the screen.

Last updated on 2017-10-25 at 05.59.20 PM Published on 2017-10-25 at 06.04.21 PM