Forum Software Ferduino code Example of the buttons the touch screen does not work

Example of the buttons the touch screen does not work  [SOLVED]


Post Number:#1 Post Fri May 25, 2018 3:32 pm
Posts: 22
Topics: 9
Images: 2
Solve rating: 0
Joined: Wed Aug 16, 2017 12:35 pm
Topics: 9
Age: 47
Gender: None specified
National Flag:
Brazil
Dear Fernando, I set up Ferduino using all the components according to the original material list (Arduino MEGA 2560, TFT 400x240 Emartee, TFT Shield ITDB02, Shield Arduino Mega), and I made all the connections as shown in the circuit and followed the tutorial for Touch calibration , the calibration of the touch was able to do :) , I copied the codes and put them in the file URTouchCD.h, but when I run the test example of the buttons the touch screen does not work, the buttons appear on the screen but do not work. :-s :-s
I used Arduino pins 6,5,4,3 and 2 to connect to the TFT and check the codes and are calling those same pins.
I've already tried to update the touch library but I could not identify which files I have to download and how to upgrade.
What is going on? Would you help me? ~x( ~x(

Rômulo Queiroz

Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

Welcome Rômulo!

You should test your coordinates here first: http://www.rinkydinkelectronics.com/t_cal_verify.php

If you are getting wrong values reset the board and try again.

Also you can try this values:

#define CAL_X 0x004F0ED2UL
#define CAL_Y 0x0037CEBAUL
#define CAL_S 0x000EF18FUL


The result of the verification should be like this: http://www.rinkydinkelectronics.com/t_c ... s=000EF18F

You can try this too: https://ferduino.com/forum/viewtopic.php?p=3253#p3253

Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#3 Post Sat May 26, 2018 11:06 am
Posts: 22
Topics: 9
Images: 2
Solve rating: 0
Joined: Wed Aug 16, 2017 12:35 pm
Topics: 9
Age: 47
Gender: None specified
National Flag:
Brazil
Thank you Fernando for quick repost!

I don't use your code, but change that code for example: Urtouch Calibration e Urtouch button test, in line:

#Define Touch orientation Landscape


In both codes from Portrait for Landscape.

Finally allright!! :ympeace: :ympeace: :ympeace:

You can close this topic.




Return to Ferduino code





Who is online

Users viewing this topic: No registered users and 1 guest

cron