Go Down

Topic: Problem with display 2.8' SSD1289 (Read 709 times) previous topic - next topic


Hi, I bought a 2.4" TFT LCD Module Display + Touch Panel Screen + sdcard and i want to use it with arduino 2009.
I used that library http://www.henningkarlsen.com/electronics/library.php?id=51 and this how to http://www.geeetech.com/wiki/index.php/3.2TFT_LCD#Specification: But i have 2 problem.
First sketch is too big for arduino 2009 with atmega328 i solved removing some code on the loop (right now I just need to test), second most important problem is that my the screen remains white and nothing appears. This is my sketch can someone help me please?
Code: [Select]
// UTFT_Demo_320x240 (C)2012 Henning Karlsen
// web: http://www.henningkarlsen.com/electronics
// This program is a demo of how to use most of the functions
// of the library with a supported display modules.
// This demo was made for modules with a screen resolution
// of 320x240 pixels.
// This program requires the UTFT library.

#include <UTFT.h>

// Declare which fonts we will be using
extern uint8_t SmallFont[];

// Uncomment the next line for Arduino 2009/Uno
UTFT myGLCD(SSD1289,A5,A4,A3,A2);   // Remember to change the model parameter to suit your display module!

// Uncomment the next line for Arduino Mega
//UTFT myGLCD(ITDB32S,38,39,40,41);   // Remember to change the model parameter to suit your display module!

void setup()
// Setup the LCD

void loop()
   int buf[318];
  int x, x2;
  int y, y2;
  int r;

// Clear the screen and draw the frame

  myGLCD.setColor(255, 0, 0);
  myGLCD.fillRect(0, 0, 319, 13);
  myGLCD.setColor(64, 64, 64);
  myGLCD.fillRect(0, 226, 319, 239);
  myGLCD.setColor(255, 255, 255);
  myGLCD.setBackColor(255, 0, 0);
// myGLCD.print("* Universal Color TFT Display Library *", CENTER, 1);
  myGLCD.setBackColor(64, 64, 64);
// myGLCD.print("<http://electronics.henningkarlsen.com>", CENTER, 227);

  myGLCD.setColor(0, 0, 255);
  myGLCD.drawRect(0, 14, 319, 225);


Go Up