ST7735 TFT LCD 1.8 inch with SD

Hello.
I bought ST7735 TFT LED from ebay ( SainSmart 1.8" Serial 128x160 SPI TFT LCD Display SD Socket for Arduino UNO Mega for sale online | eBay )
I Download 2 library

  1. GitHub - adafruit/Adafruit-ST7735-Library: This is a library for the Adafruit 1.8" SPI display http://www.adafruit.com/products/358 and http://www.adafruit.com/products/618
  2. http://www.sainsonic.com/zen/albums/Resource/20/20-011-920/TFT18.rar

but both of them I have compiler error. PLZ Help me, get me working library or tell me how correct this error.
thank you. sorry for my bad english.

I recently also happened to download the Adafruit libraries that are on github a few days ago (it's of course possible that they've since been changed) and I too had multiple and major compile problems. The Adafruit libraries that are included with Arduino 1.05, however, compile and function perfectly, and can be used by themselves without using the Arduino TFT "shell" library. If you have 1.05 look in the libraries folder, and in TFT there's a Utility folder with the Adafruit files. BTW, the Adafruit examples that are on github work nicely with the Adafruit libraries in that Libraries\TFT\utility folder and nicely illustrate direct use of the Adafruit libraries while the TFT examples seem more limited.
Ciao,
Lenny

More information is required.

  • What IDE version are you using?
  • What are the errors you receive?

IDE V 1.0.5

C:\Program Files (x86)\Arduino\libraries\Robot_Control\ArduinoRobot.cpp: In constructor 'RobotControl::RobotControl()':
C:\Program Files (x86)\Arduino\libraries\Robot_Control\ArduinoRobot.cpp:8: error: 'LCD_CS' was not declared in this scope
C:\Program Files (x86)\Arduino\libraries\Robot_Control\ArduinoRobot.cpp:8: error: 'DC_LCD' was not declared in this scope
C:\Program Files (x86)\Arduino\libraries\Robot_Control\ArduinoRobot.cpp:8: error: 'RST_LCD' was not declared in this scope
C:\Program Files (x86)\Arduino\libraries\Robot_Control\ArduinoRobot.cpp: In member function 'void RobotControl::begin()':
C:\Program Files (x86)\Arduino\libraries\Robot_Control\ArduinoRobot.cpp:18: error: 'MUXA' was not declared in this scope
C:\Program Files (x86)\Arduino\libraries\Robot_Control\ArduinoRobot.cpp:18: error: 'MUXB' was not declared in this scope
C:\Program Files (x86)\Arduino\libraries\Robot_Control\ArduinoRobot.cpp:18: error: 'MUXC' was not declared in this scope
C:\Program Files (x86)\Arduino\libraries\Robot_Control\ArduinoRobot.cpp:18: error: 'MUXD' was not declared in this scope
C:\Program Files (x86)\Arduino\libraries\Robot_Control\ArduinoRobot.cpp:19: error: 'MUX_IN' was not declared in this scope
C:\Program Files (x86)\Arduino\libraries\Robot_Control\ArduinoRobot.cpp:22: error: 'BUZZ' was not declared in this scope
C:\Program Files (x86)\Arduino\libraries\Robot_Control\ArduinoRobot.cpp:25: error: 'Serial1' was not declared in this scope
In file included from graphicstest.pde:18:
C:\Users\Pakura\Documents\Arduino\libraries\TFT18/ST7735.h:57: error: expected `)' before 'CS'
C:\Users\Pakura\Documents\Arduino\libraries\TFT18/ST7735.h:59: error: expected `)' before 'CS'
C:\Users\Pakura\Documents\Arduino\libraries\TFT18/ST7735.h:64: error: 'uint16_t' has not been declared
C:\Users\Pakura\Documents\Arduino\libraries\TFT18/ST7735.h:65: error: 'uint8_t' has not been declared
C:\Users\Pakura\Documents\Arduino\libraries\TFT18/ST7735.h:65: error: 'uint8_t' has not been declared
C:\Users\Pakura\Documents\Arduino\libraries\TFT18/ST7735.h:65: error: 'uint16_t' has not been declared
C:\Users\Pakura\Documents\Arduino\libraries\TFT18/ST7735.h:66: error: 'int16_t' has not been declare
graphicstest:136: error: 'class ST7735' has no member named 'width'
graphicstest:137: error: 'class ST7735' has no member named 'height'
graphicstest.pde: In function 'void testdrawrects(uint16_t)':
graphicstest:143: error: 'class ST7735' has no member named 'width'
graphicstest:144: error: 'class ST7735' has no member named 'width'
graphicstest:144: error: 'class ST7735' has no member named 'height'
graphicstest.pde: In function 'void testfillrects(uint16_t, uint16_t)':
graphicstest:150: error: 'class ST7735' has no member named 'width'
graphicstest:151: error: 'class ST7735' has no member named 'width'
graphicstest:151: error: 'class ST7735' has no member named 'height'
graphicstest:152: error: 'class ST7735' has no member named 'width'
graphicstest:152: error: 'class ST7735' has no member named 'height'
graphicstest.pde: In function 'void testfillcircles(uint8_t, uint16_t)':
graphicstest:157: error: 'class ST7735' has no member named 'width'
graphicstest:158: error: 'class ST7735' has no member named 'height'
graphicstest.pde: In function 'void testdrawcircles(uint8_t, uint16_t)':
graphicstest:165: error: 'class ST7735' has no member named 'width'
graphicstest:166: error: 'class ST7735' has no member named 'height'

and so on

I think that if you replace the Adafruit libraries that you downloaded form the github repository with the ones in the TFT\Utility folder in Arduino 1.0.5 that your problems will go away. Ciao, Lenny