In our online shop, there are two kinds of TFT modules: One is with shield while the other is not. Some customers bought the TFT modules home, assembled them with main boards, and uploaded demo to the main boards, but nothing showed on the TFT modules. In fact, some TFT modules need to be used with a particular shield that is to be plugged into the main boards, and each TFT module should work with its own compatible main board.
As the ITDB02 Series of LCD modules work in 3.3V, they're not compatible with Arduino MEGA pins. Thus users will need a shield for Arduino MEGA. The ITDB02 LCD modules can be plugged directly in the shield and stand on the Arduino MEGA board. ITDB02 Arduino MEGA shield supports mainboards of both 3.3V and 5V. Thus it not only can be used with Arduino MEGA but also can work with other Arduino MEGA compatible mainboards.
ITEAD 3.2 TFT LCD Touch shield + Arduino MEGA
ITDB02-2.8 + ITDB02 Arduino MEGA shield + Arduino MEGA
For the starters, users need to download UTFT demos from the following link, then extract them to the directory libraries, which is under the directory arduino IDE that users have installed.
Then, open a demo via Arduino, and pay attention to the resolution of the TFT module when you open the demo. Let's take ITEAD 3.2 TFT LCD Touch shield for an example, as its resolution is 320×240, users should open the demo UTFTDemo320×240.
The next step is to revise the demo's model parameter.
The table 1 below is a brief list of existing products in our website, which can help users to choose the compatible main board and suitable model parameter for UTFT demos.
The table 2 below is the pins information of shields and Gboard/Iboard Pro, which users should pay attention to when revising demos.
According to table 1 & 2, users should revise the model parameter by doing as per the following instruction.
Note1: using these codes
UTFT myGLCD(<model>,19,18,17,16);
model
Model parameter needs to be modified to suit user's display module according to table2. For example, the codes of ITDB02 2.8 TFT LCD Touch shield should be
UTFT myGLCD(ITDB28,19,18,17,16);
Note2&3: using these codes
UTFT myGLCD(<model>,38,39,40,41);
model
Model parameter needs to be modified to suit user's display module according to table2.For example, the codes of ITDB02-2.8 should be
UTFT myGLCD(ITDB28,38,39,40,41);
As to ITDB02-1.8SP, users should use these codes
UTFT myGLCD(ITDB18SP,11,10,9,12,8);
After revising model for UTFT() and uploading demo to the main board, users can see the animation showed on the TFT module.
Realizing UTouch Function
Attention: As the version of UTouch demos have been updated, ITEAD 2.4 TFT LCD Touch shield and ITEAD 2.8 TFT LCD Touch shield are not supported at present. TFT modules with ITDB02 Arduino Shield assembled are not supported as well. We will try our best to solve this problem in the near future.
If users want to realize the touch function in their TFT module, the foremost step is to download UTouch.rar from this link and extract it into the directory Libraries.
Then, perform a touch calibration for TFT module. First, open UTouch_Calibration in your Arduino, find the content in the picture below, and change the model name.
Two issues should be paid attention to when you are doing calibration.
First, change your model. This step is the same as the step of changing UTFT model for UTouch(). Then make sure the parameter coming after is in accord with your Arduino main board.
UTFT myGLCD(ITDB32S,38,39,40,41);
Second, make sure that the parameters of UTouch corresponds with those of your Arduino main board.
According to Table 2, users should revise UTouch parameter by doing following instruction.
Note 2: using these codes for TFT modules with ITDB02 Arduino MEGA Shield
and Arduino mega/due main board assembled.
UTouch myTouch( 6, 5, 4, 3, 2);
Note 3: using thses codes for TFT modules with Gboard/Iboard Pro assembled.
UTouch myTouch( 6, 5, 48, 3, 2);
Next, upload it to the main board. When an icon is showed on the screen, click it with a stylus. Please do not use any finger to touch the icon, as that will bring you a rough result. At last, three results will be shown on screen, and users can test them on this website.
P.S.: If users have tried several times and the test results are unsatisfying, they can get the reference data.
Finally, copy the test data or reference data and paste it into file UtouchCD.h , and then save the file.
After calibration is done, users are free to operate other UTouch demos or their own demos on TFT.