Write an application that reads BMP images from an SD card and displays them on the 7735
screen. Note that BMP images are usually stored from bottom to top so you will need to appropriately set the direction when using the 7735 interface.
To help you get started, a simple Linux program that parses BMP files is illustrated in Listings 12.3 and 12.4. You can manipulate images in various formats (e.g. resize, rotate) with the Linux program convert. Your program should probably check the size of BMP images it attempts to display and reject those which are not 128x160 and 24bit color. You program will have to convert from 24 bit color to 16-bit color. The conversion is relatively easy for each RGB byte, select the lower 5 or 6 bits (RGB = 565) and pack into a single 16-bit color byte. Finally, your program should cycle through the set of BMP files in the root directory of an SD card. Note – remember that FAT16 file systems use 8.3 naming – that is 8 characters followed by a 3 character
previx