Convert TFT SD card sketch from ILI9340 TO ILI9341

I have used the attached sketch before to display an image from the sd card to a 2.2" TFT ILI9340 display without any problems. I have some new displays that use the ILI9341 driver.

The ILI9340 sketch does nor run on the ILI9341 display.

I have tried to just replace “ILI9340” with “ILI9341” without success. I get a compiling error.

In function ‘void bmpDraw(char*, uint16_t, uint16_t)’: tiger.ino:166:31: error: ‘class Adafruit_ILI9341’ has no member named ‘Color565’ Error compiling.

Can someone help me to convert the sketch so that it runs with ILI9341 driver?

I have attached the ILI9340 sketch version.


tiger.ino (6.75 KB)