I've successfully run both the "Demo Portrait" demo program (UTFT_tinyFAT library) and the "SdRaw_800x480" demo program (UTFT_SdRaw Library) using my Arduino Mega and ITDB50 TFT with ITDB02 Mega Shield. All sample images show up perfectly.
However, problems arise when I swap out the filepath for other .RAW images I have put on the SD card (2GB SD). All images I have tried were saved to BMP or Jpeg using Photoshop CC and then converted to RAW format using the Henning Karlsen's ImageConverter565 v2.1 (tried both the GUI and the console version) as well as his online version. All images are sized upon saving in Photoshop to 800px x 480px, and I have tried resizing to that size using the converters as well. I have also tried using the following methods in photoshop:
- RGB and grayscale modes
- 4, 8, 16, 24, and 32 bit depth (options when saving to bitmap)
Regardless of the parameters I use to save the image, an irregular color pattern is displayed on the LCD when running the "SdRaw_800x480" demo. Also, when running the "Demo Portrait" program with the UTFT_tinyFAT library, I get a "File not found error"
The only lines I have adjusted in the sample program are (changes shown in bold italics):
- line 32: UTFT myGLCD(ITDB50, 38, 39, 40, 41);
- line 89: myFiles.load(0, 0, 800, 480, "Phases_Timelapse_800_480_16bitRGB.RAW", 1 , 1);
Any suggestions?