This tutorial will help you get started with the 3.6 inch TFT LCD.
You will need the following:
3.6 inch TFT Touch LCD Module Display Screen for Arduino Mega
Mega R3 (Arduino compatible)
Fit the shield to the MEGA board.
Make sure all pins make proper contact.
May need to bend pins slightly to get them to align properly.
Download the UTFT library here (UTFT)
or vist http://www.rinkydinkelectronics.com/library.php
or here https://github.com/dgolda/UTFT
Extract the file and copy it to your Arduino Libraries directory
ex: C:\Program Files (x86)\Arduino\libraries
Next, open Arduino IDE and go to the following example
Examples - UTFT - Arduino (AVR) - UTFT_Demo_480x320
Now change the following line
and compile and upload.
The demo will start when done uploading;
At first, I thought this LCD had the R61581 controller but that did not work so I just went to the directory where the libraries were stored.
C:\Program Files (x86)\Arduino\libraries\UTFT\tft_drivers
I just went through all the drivers till I found one that works.
If you are getting inverted display try the following:
// Remember to change the model parameter to suit your display module!
and then I had to edit the R61581's initlcd.h file. and change:
Its the hex Ox4A that did the trick!source:https://forum.arduino.cc/index.php?topic=278812.msg2415523#msg2415523Remember to restart your Arduino IDE after you have made changes to the library file
Share this post