1.8" TFT connect to Arduino due

Hello.

I have a project on Arduino UNO but now i purchased a Arduino DUE and i made the connections to the new board and doesn't work. I saw some topics but everybody talk about he screens with 2.8" and higher... Some one could help me in this problem.

Thanks

Without knowing more about your display and
method of connection (shield, wires, etc.),
it Is difficult to help.

Does the UTFT library support it?

What resolution, and what display controller chip?

Cheers, Gary

I have this screen http://forum.arduino.cc/index.php?topic=125034.0 and i don't now if the UTFT library spport him. The resolution of the screen is 128x160.

Hello!

The ebay link to the display does not work. In the UTFT library you can find a pdf describing which TFTs are supported.

How did you wire up the board?

Best regards, Cluoiset

My screen it’s like this http://www.aliexpress.com/item/Freeshipping-1-8-Serial-SPI-TFT-Color-LCD-module-Display-touch-screen-128x160-with-SD-Card/566089629.html. I made this code and in the UNO board work

#include <SPI.h>
#include <SD.h>
#include <TFT.h>
#define sd_cs 4
#define lcd_cs 10
#define dc 9
#define rst 8

int button_B = A0, button_S = A1, button_OK = A2;
int state_B = 0, state_S = 0, state_OK = 0;
int ultimoestado=0, contador=1;
int var = 0, var1 = 0, var2 = 0, x= 0, y=0, z=1, u=0, led=53;

PImage menu1, critico;
TFT TFTscreen = TFT(lcd_cs, dc,rst);




void setup(){
  pinMode(led,OUTPUT);
  Serial.begin(9600);
  pinMode(button_B, INPUT);
  pinMode(button_S, INPUT);
  pinMode(button_OK, INPUT);
  
  TFTscreen.begin();
  TFTscreen.background(255,255,255);
  
  if(!SD.begin(sd_cs))
    return;

  critico = TFTscreen.loadImage("1N.bmp");
  Menu1();
  x=1;
}




void loop(){
  
  ler_switch();
}



void ler_switch(){
 
  state_OK = digitalRead(button_OK);
  state_B = digitalRead(button_B);
  state_S = digitalRead(button_S);
  
  Serial.print(u);
  Serial.print(state_OK);
  if(state_OK==1 && x==1){
    Nivel();
  }
  if(state_OK==1 && x==2){
    RM();
  }
  if(state_OK==1 && x==3){
    RA();
  }
  if(state_OK==1 && u==1){
    RC();
  }
  
  
  if(state_B==1 && y==1){
    Menu1();
  }
  if(state_B==1 && y==2){
    Menu2();
  }
  if(state_B==1 && y==3){
    Menu3();
  }
  
  
  if(state_S==1 && z==0){
    Menu1();
  }
  if(state_S==1 && z==1){
    Menu2();
  }
  if(state_S==1 && z==2){
    Menu3();
  }
}


void Menu1(){
   
  TFTscreen.background(255,255,255);
  TFTscreen.stroke(255,0,0);
  TFTscreen.setTextSize(1);
  TFTscreen.text("Nivel de agua\n",10,20);
  TFTscreen.stroke(0,0,0);
  TFTscreen.text("Rega manual\n",10,40);
  TFTscreen.text("Rega automatica\n",10,60);
  digitalWrite(led,HIGH);
  x=1;
  y=1;
  z=1;
}



void Menu2(){
   
  TFTscreen.background(255,255,255);
  TFTscreen.stroke(0,0,0);
  TFTscreen.setTextSize(1);
  TFTscreen.text("Nivel de agua\n",10,20);
  TFTscreen.stroke(255,0,0);
  TFTscreen.text("Rega manual\n",10,40);
  TFTscreen.stroke(0,0,0);
  TFTscreen.text("Rega automatica\n",10,60);
  digitalWrite(led,LOW);
  ler_switch();
  x=2;
  y=2;
  z=2;
}


void Menu3(){
   
  TFTscreen.background(255,255,255);
  TFTscreen.stroke(0,0,0);
  TFTscreen.setTextSize(1);
  TFTscreen.text("Nivel de agua\n",10,20);
  TFTscreen.text("Rega manual\n",10,40);
  TFTscreen.stroke(255,0,0);
  TFTscreen.text("Rega automatica\n",10,60);
  ler_switch();
  x=3;
  y=3;
  z=0;
}

void RM(){
  
  TFTscreen.background(255,255,255);
  TFTscreen.stroke(0,0,0);
  TFTscreen.setTextSize(1);
  TFTscreen.text("Rega manual\n",10,20);
  TFTscreen.text("Precione OK\n",10,40);
  TFTscreen.text("para continuar\n",10,50);
  y=2;
  u=1;
  ler_switch();
}

void RC(){
  TFTscreen.background(255,255,255);
  TFTscreen.stroke(0,0,0);
  TFTscreen.setTextSize(1);
  TFTscreen.text("Rega manual activada\n",10,20);
  ler_switch();
  u=0;
}

void RA(){
  TFTscreen.background(255,255,255);
  TFTscreen.stroke(0,0,0);
  TFTscreen.setTextSize(1);
  TFTscreen.text("Rega automatica\n",10,20);
  TFTscreen.text("Precione OK\n",10,40);
  TFTscreen.text("para continuar\n",10,50);
  ler_switch();
  y=3;
}


void Nivel(){
  TFTscreen.image(critico, 0, 0);
  y=1;
}

Now i can’t put this work on the DUE board.

SPI pinouts will differ (in particular the Due requires one of three possible pins for chip select, and the other SPI pins are on the SPI header only I think).

So how have you wired it up? Is the display 3.3V (vitally important you don't connect 5V to a Due pin, fizzle pop, broken chip if you do).