Problem 2.2" TFT SPI LCD Library adafruit

Hi,

I have the adafruit_GFX.h and adafruit_ILI9340.h libraries in my arduino/library directory so i can print it out onto my 2.2" TFT SPI LCD 240 x 320 Display, but on the compiler it says "error compiling" and has weird errors about a robot.

This is what it comes up with:


Error compiling


C:\Users\C\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp: In constructor 'RobotControl::RobotControl()':
C:\Users\C\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:8: error: 'LCD_CS' was not declared in this scope
C:\Users\C\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:8: error: 'DC_LCD' was not declared in this scope
C:\Users\C\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:8: error: 'RST_LCD' was not declared in this scope
C:\Users\C\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp: In member function 'void RobotControl::begin()':
C:\Users\C\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:18: error: 'MUXA' was not declared in this scope
C:\Users\C\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:18: error: 'MUXB' was not declared in this scope
C:\Users\C\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:18: error: 'MUXC' was not declared in this scope
C:\Users\C\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:18: error: 'MUXD' was not declared in this scope
C:\Users\C\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:19: error: 'MUX_IN' was not declared in this scope
C:\Users\C\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:22: error: 'BUZZ' was not declared in this scope
C:\Users\C\Desktop\arduino-1.0.5-r2\libraries\Robot_Control\ArduinoRobot.cpp:25: error: 'Serial1' was not declared in this scope


I can't figure it out..... Help!!!

Please post your sketch between code /code tags using the "#" button on the posting toolbar.

1.- Please: Kick your ancient arduino-1.0.5-r2 IDE

2.- Download arduino 1.5.7-Beta IDE

3.- Follow this post: ILI9341(new)SPI library for Due supporting DMA transfer(Uno, Mega,.. compatible) - Displays - Arduino Forum

New SPI-library

4.- Enjoy your 2.2" TFT!!!

TFTLCDCyg:
1.- Please: Kick your ancient arduino-1.0.5-r2 IDE

2.- Download arduino 1.5.7-Beta IDE

3.- Follow this post: ILI9341(new)SPI library for Due supporting DMA transfer(Uno, Mega,.. compatible) - Displays - Arduino Forum

New SPI-library

4.- Enjoy your 2.2" TFT!!!

The 1.0.5r2 is still the recommended version.

I have at least 3 posts on my blog using ILI9340/1...
http://www.hackster.io/rayburne

Electroman:
Put libraries in .../Arduino/Libraries like you are suppose to do. Delete libraries in your sketch folder. If you like, download one of my sketches that rely upon Adafruit's libs.

Ray

TFTLCDCyg:
1.- Please: Kick your ancient arduino-1.0.5-r2 IDE
2.- Download arduino 1.5.7-Beta IDE

Right, whats wrong with 1.0.5? To the OP -> Are you using the correct board on the tools -> Board menu?

TFTLCDCyg:
3.- Follow this post: ILI9341(new)SPI library for Due supporting DMA transfer(Uno, Mega,.. compatible) - Displays - Arduino Forum
New SPI-library

Brilliant. Thats a hardware specific library, you know that right!?