Sketch code

/*************************************************** This is our GFX example for the Adafruit ILI9341 Breakout and Shield ----> http://www.progdron.com

Check out the links above for our tutorials and wiring diagrams These displays use SPI to communicate, 4 or 5 pins are required to interface (RST is optional) Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!

Written by Limor Fried/Ladyada for Adafruit Industries. MIT license, all text above must be included in any redistribution ****************************************************/

Sketch code

/*************************************************** This is our GFX example for the Adafruit ILI9341 Breakout and Shield ----> http://www.progdron.com

Check out the links above for our tutorials and wiring diagrams These displays use SPI to communicate, 4 or 5 pins are required to interface (RST is optional) Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!

Written by Limor Fried/Ladyada for Adafruit Industries. MIT license, all text above must be included in any redistribution ****************************************************/

// This function opens a Windows Bitmap (BMP) file and// displays it at the given coordinates. It's sped up// by reading many pixels worth of data at a time// (rather than pixel by pixel). Increasing the buffer// size takes more of the Arduino's precious RAM but// makes loading a little faster. 20 pixels seems a// good balance.