Hi guys!
I have problem with eBay SSD1289 TFT module and Arduino Due with UTFT library. I wired up the TFT with arduino (I don't have TFT shield) and Bitmap demo is running well, but when I change the fillscr(255,255,255) to another value (other than 255) the display is doing what is on the video. Another examples are not working, there are stripes on display as on the video. I checked the wiring and everything is good. It's doing with USB power and also with 12V power supply. Is it possible that wires are too long or similiar?
Link to video: Arduino and SSD1289 problem UTFT - YouTube
// UTFT_Bitmap (C)2014 Henning Karlsen
// web: http://www.henningkarlsen.com/electronics
//
// This program is a demo of the drawBitmap()-function.
//
// This demo was made to work on the 320x240 modules.
// Any other size displays may cause strange behaviour.
//
// This program requires the UTFT library.
//
#include <UTFT.h>
// Declare which fonts we will be using
extern uint8_t SmallFont[];
// Set the pins to the correct ones for your development shield
// ------------------------------------------------------------
// Standard Arduino Mega/Due shield : <display model>,38,39,40,41
// CTE TFT LCD/SD Shield for Arduino Due : <display model>,25,26,27,28
// Teensy 3.x TFT Test Board : <display model>,23,22, 3, 4
// ElecHouse TFT LCD/SD Shield for Arduino Due : <display model>,22,23,31,33
//
// Remember to change the model parameter to suit your display module!
UTFT myGLCD(SSD1289,2,9,12,11);
extern unsigned short seatlogo[0x8967];
void setup()
{
digitalWrite(8,HIGH);
myGLCD.InitLCD();
myGLCD.setFont(SmallFont);
myGLCD.clrScr();
}
void loop()
{
myGLCD.clrScr();
delay(1);
myGLCD.fillScr(255, 255, 255);
delay(1);
myGLCD.setColor(255, 255, 255);
delay(1);
myGLCD.setFont(SmallFont);
myGLCD.print(" !\"#$%&'()*+,-./01", CENTER, 100);
myGLCD.print("@ABCDEFGHIJKLMNO", CENTER, 120);
myGLCD.print("`abcdefghijklmno", CENTER, 144);
delay(1);
myGLCD.drawBitmap(0,0,201,175,seatlogo);
delay(5000);
}