Displaying Bitmap on 1.8" TFT Display

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
ardutoni
 
Posts: 9
Joined: Sat Dec 13, 2014 7:38 am

Displaying Bitmap on 1.8" TFT Display

Post by ardutoni »

Using the spitftbitmap example the bmp is not recognized as valid. I was saving with Photoshop in 16, 24 and 32 bit, for 16 bit i'm getting following error message

Loading image 'parrot.bmp'
File size: 41016
Image Offset: 54
Header size: 40
Bit Depth: 16
BMP format not recognized.
Initializing SD card...OK!

Loading image 'parrot.bmp'
File size: 41016
Image Offset: 54
Header size: 40
Bit Depth: 16
BMP format not recognized.

User avatar
ardutoni
 
Posts: 9
Joined: Sat Dec 13, 2014 7:38 am

Re: Displaying Bitmap on 1.8" TFT Display

Post by ardutoni »

now, using the parrot.bmp from the tutorial was successful

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: Displaying Bitmap on 1.8" TFT Display

Post by adafruit_support_mike »

The images that didn't work are 16-bit BMP files.

The code for the TFT only knows how to read 24-bit BMP files.

User avatar
killercatfish
 
Posts: 20
Joined: Sun Feb 22, 2015 9:04 am

Re: Displaying Bitmap on 1.8" TFT Display

Post by killercatfish »

Any suggestions for converting to 24-bit BMP? I have cropped to 128x168 and saved as a BMP in mac preview. But I dont think this is 24-bit since its not displaying on the screen.

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: Displaying Bitmap on 1.8" TFT Display

Post by adafruit_support_mike »

That depends on the program you use to create the image. Most programs should have a list of options for saving files.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”