A basic example of displaying images using an Arduino and a TFT touchscreen.
- Format an SD card using MS-Fat.
- Place a series of images in BMP format in the root of your SD card.
- Place the SD card in the back of the TFT scrrn and unstall the screen touchscreen on the Arduino.
- Open the Arduino IDE and open tft-images.ino.
- Change the dimensions in the code to match your screen. Change the list of your image filenames.
- Upload and run the code.
Note
I'm using this TFT Touchscreen.
The images on the SD card need to be BMP format. To get the images to work I had to open them in Photoshop, click Save as..., select BMP as the Format, click Advancd Mode on the BMP Options window, and then choose the first option (16 Bit X1 R5 G5 B5).
I usually use the online Arduino Web Editor; however, in this case I had to make a change to one of the libraries, and this is only possible when using the download verion of the Arduino IDE. I had to adjust the Mcufriend_kbv Arduino library to work with my component. I had some help from a fellow Arduino programmer on how to do this.
Full tutorial URL:
https://codeadam.ca/learning/arduino-tft-touchscreen.html