Arduino Due and SSD1289 problem with UTFT library

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);
}

Hi i just registered on this forum because of this post.. :art:

I was looking for what to order, and might try the same since i found a good deal on both at http://samenkopen.net : Arduino Due + SSD1289 (3.2 Inch TFT LCD 240*320)

I figured that the Due has the pins, and it being 3.3v instead of 5v being a non-issue as i believe the display driver also prefers 3.3v. I wouldn't even need the schield with level shifters / buffers, as you likely also decided as you mentioned you are not using it.

Not able to investigate further because i dont have the hardware at hand, but wonder what the current status is?

As the original poster failed to post a connection diagram, it is impossible to help since the problem was no doubt a wiring problem - since UTFT supports both the Due and the LCD so the only reason it wouldn't work is mistake in connection from the Due to the LCD.

The UTFT code assumes the data bits to the LCD are fixed and defined by the shield. Fortunately, the shields use the same port pin assignments and if the OP did not use that exact connection scheme, something isn't going to work correctly. With UTFT, only the four or five LCD control signals can be assigned to any available pin. All others are fixed and cannot be changed without digging deeply into hardware specific code.

Your reference link did not work for me so I'm not sure what you consider a good deal. If you're okay with a Due clone, you can get the pair (Due + 3.2" SSD1289 LCD) for just a bit less than $30 US at banggood.com with free shipping.

Ok thanks. Do you believe these two aught to work together?

I figured they are compatible .. the pinout is the same, 3.3v so i can leave out the 5v conversion, UTFT supports the SSD1289, and it runs on the Arduino Due.

Any evidence that these two play along is much appreciated.. i didn't found much on this. I might post some myself when i receive my order though.

PS. since you asked, this is where i buy these:

HOLY SHIT! :stuck_out_tongue_closed_eyes:

Never mind.. i just found your conversation with casemod in this thread and MAN that performance boost is terrific! clicks buy

Its perfect! Thanks!