Skyser:
There is a solution for those who have a problem with inverted touch-screen coordinates. In "tftpaint" sketch it can be easy resolved by changing these 4 strings:
#define YP A1 // must be an analog pin, use "An" notation! #define XM A2 // must be an analog pin, use "An" notation! #define YM 7 // can be a digital pin #define XP 6 // can be a digital pin
to
#define YP A2 #define XM A1 #define YM 6 #define XP 7
it works on MEGA2560 with libraries Adafruit-GFX, SWTFT-Shield and Adafruit Touch-Screen
Hi,i've the same problem.
I have 2.4'' TFT display, MCUFRIEND (it had ILI9341 LCD driver) on Arduino Uno.
I've used this library,beacuse i have problem with the white screen,this: Library and videotutorial
I have tftpaint inverted touch-screen coordinates,but the change had no effect.
Can you help me?
minimanimo:
Hi,i've the same problem.
I have 2.4'' TFT display, MCUFRIEND (it had ILI9341 LCD driver) on Arduino Uno.
I've used this library,beacuse i have problem with the white screen,this: Library and videotutorial
I have tftpaint inverted touch-screen coordinates,but the change had no effect.
Can you help me?
DEAR all ,
I have bought an ARDUINO UNO and a TFT display 2.4" brand mcufriend.
please you can see the photos enclosed .
I have connected it to arduino uno in correct mode but I am not able to get it working.
I have tried a lot of libraries but nothing .
I have tested the arduino uno itself and it works .
when I try to inser a schetch the result is enclosed in the photos ....
here below a part of program
I dont understand why LCD _CD this pin is not present in TFT
thank you very much for all the help to get it working
Ciao
Walterone
( from MILAN )
#define LCD_CS A3 #define LCD_CD A2 #define LCD_WR A1 #define LCD_RD A0
// you can also just connect RESET to the arduino RESET pin #define LCD_RESET A4
//Duemilanove/Diecimila/UNO/etc ('168 and '328 chips) microcontoller:
// Color definitions #define BLACK 0x0000 #define BLUE 0x001F #define RED 0xF800 #define GREEN 0x07E0 #define CYAN 0x07FF #define MAGENTA 0xF81F #define YELLOW 0xFFE0 #define WHITE 0xFFFF
I've bought one of this cheap mcufriend display and I have a problem to drive them.
One of the posted library does work but touch panel seems inverted.
Really i think most people have this problem, but they haven't noticed that all the display function are inverted.
The words are flipped and the color are inverted too. Black is white and white is black! (and all the other color are inverted).
I have bought an ARDUINO UNO 3 and a TFT display 2.4" with Spfd5408 controller with built in video RAM buffer.
1_Tried various programs to test the TFT LCD Display. The only one worked was one [test_LCD_2_4] modified by Andrologiciels, but the colours were all reversed. I, not being a programmer or not knowing anything about C++ had to change the values by trial and error and got it working.
2_Ran the program[TouchPaint_2_4] again the one modified by Andrologiciels, Again found the colours all wrong and the co-ordinates alloff by 90*, directions all hay wire. After hours of trial and error corrections got it working as required.
3_Tried the [Lit_BMP_2_4] but all the bitmap pictures were displayed in negative colour. Tried negating the colours of the bitmaps before loading to the SD card, they were displayed ok.
Since I can't find anything in the program to reverse the colours, please could someone help me to solve this problem.?
I am attaching all the 3 files
hola hace mas o menos un mes que compre una tft 2.4" McuFriend de http://www.mcufriend.com tiene el S6D0154 y he logrado hacer algunas cosas y he pobrado algunas librerias pero quisiera hacer el ejercicio de oscilospio como estas en el siguiente link;Arduino Uno 2.4 TFT LCD (SPFD5408) with modified UTFT - YouTube , no se si hago algo mal pero llevo 2 semanas trabajando en ello y aun no logro nada no se si me puedan ayudar
hello makes it about a month to buy a TFT 2.4 "McuFriend of http://www.mcufriend.com has S6D0154 and I managed to do some things and I pobrado some libraries but would like to exercise oscilospio how are you in the following ? link, https: //www.youtube.com/watch v = Tj31_wOBp7k, not if I do something wrong but I have two weeks working on it and still can not get anything do not know if I can help
Interesting faults your experiencing sudharma but at least your getting some display action.
From what I've been reading there may even be some compatibility problems between later versions of the Arduino IDE and older libraries.
What I'm suggesting is a list of ebay sources of successful TFT and the library used & code examples.There are some out there I'm sure.
In desperation I've just ordered some 1.8 inch SPI THT LCDs which have been around a bit longer and appear to have better support with examples/tutorials on adafruit & youtube.
hello, I have TFT 2.4 "mcufriend with S6D0154 controlled and tried some programs but some exercises that libraries utft Investigate and wanted to know if anyone has funionado him or has made such exercises. and if I can give any advice .
I also have TFT from banggood , but my with controller 0154. After searching around, I get Adafruit's library, IMHO, their support of different kind controllers ( you never know what you get in a shipment) is the best, and plus touch screen add-on functionality included.
You may see working TFT (and link to download a code) from this link.
Hi, I am able to display something with 0x9341 but the pictures were not continuous as shown. Can anyone help me? I tried different libraries but the results were the same. Thanks!
Thanks for your reply. This is my first time using the forum and didn't know you actually have replied.
It came with a shield. The back of the shield says mcufriend.com, 2.4" TFT LCD shield. I just plugged into a uno, uploaded the example and changed the chip to 0x9341. I also tried another uno but with the same display. I checked the pins. It matched the description in the program.
Yes, I tried Adafruit, also all possible suggestions I can find in the web. I also tried a chip identifying code. It return 0x0000. Anyway, I hardcoded all numbers suggested in the examples and web. The others only give a white screen. 9341 is the only one gives something.
rbright:
Many People including myself are wasting too much time & effort getting TFTs to work.
Could I request on behalf of all forum members that if anyone who has been successful to:
identify the particular TFT they have purchased off ebay and link to seller
Link to manufacturers support page if in say english
Link to library used
Perhaps a copy of the successful sketch
What type of Arduino has been successful e.g. UNO / MEGA.
Yer I know we could all run off to places like AdaFruit but we are all addicted to ebay prices.
Life is not meant to be this difficult >:( >:( >:(
I have been in the same boat with displays, I just purchased 2 from the company below. They supplied working library's and several examples that all worked with no problems. They also promptly answered a technical question. They seem like a good company to buy from.
minimanimo:
Hi,i've the same problem.
I have 2.4'' TFT display, MCUFRIEND (it had ILI9341 LCD driver) on Arduino Uno.
I've used this library,beacuse i have problem with the white screen,this: Library and videotutorial
I have tftpaint inverted touch-screen coordinates,but the change had no effect.
Can you help me?
I solved my problem and i share the solution.
Original part of code:
X = map(p.x, TS_MINX, TS_MAXX, tft.width(),0);
Y = map(p.y, TS_MINY, TS_MAXY, tft.height(), 0);
New Code:
X = map(p.x, TS_MINX, TS_MAXX, 0, tft.width());
Y = map(p.y, TS_MINY, TS_MAXY, 0, tft.height());