Dear all. I am slowly getting my LCD/TFT up and running with my project of creating a beerbrewing controller that keeps track of the temperature and time for both mashing and boiling.
So, I have managed to start off with a menusystem on the screen, but I just noticed that it seems the touchscreen is a couple of pixels off compared to where the touchscreen-button is placed.
It seems it is maybe half the button off to the right, like the picture shows... the blue is the button while the red indicates the touchscreen area that makes the stuff happen when the button is touched...
.
Any ideas?
Arduino: Arduino UNO R3(genuine)
IDE: 1.8.5
OS: Windows 10 Pro (Version 10.0.16299)
LCD/TFT: MCUFriend 2.4" TFT LCD Shield (LCD driver chip: 7783).
The libraries I am using are the following:
Adafruit_GFX
SWTFT
Touchscreen
luddiluddludde:
Dear all. I am slowly getting my LCD/TFT up and running with my project of creating a beerbrewing controller that keeps track of the temperature and time for both mashing and boiling.
So, I have managed to start off with a menusystem on the screen, but I just noticed that it seems the touchscreen is a couple of pixels off compared to where the touchscreen-button is placed.
It seems it is maybe half the button off to the right, like the picture shows... the blue is the button while the red indicates the touchscreen area that makes the stuff happen when the button is touched...
.
Any ideas?
Did you read the post on How to use this forum?
you have failed to provide:
Which Arduino board you are using
Which LCD/TFT touch screen you are using
Which version of the Arduino IDE you are using
Which Operating System you are using, Linux, MacOSX, Microsoft Windows or other
It is impossible to provide any help based on what you have posted.
So sorry, got so caught up in the moment. I am using the following:
Arduino: Arduino UNO R3(genuine)
IDE: 1.8.5
OS: Windows 10 Pro (Version 10.0.16299)
LCD/TFT: MCUFriend 2.4" TFT LCD Shield (LCD driver chip: 7783).
The libraries I am using are the following:
Adafruit_GFX
SWTFT
Touchscreen
If you have chosen to use the SWTFT library, you should ask that library author for help.
A TouchScreen is physically glued to a TFT screen. It will always return values according to the physical position of the stylus/finger.
You should calibrate it to determine accurate values for LEFT, RIGHT, TOP, BOT.
Write these values on a piece of card at the appropriate edges.
If you have calibrated in PORTRAIT but are using LANDSCAPE, rotate your card and see where the LEFT, RT, TOP, BOT values correspond to your logical directions.
Look at my examples to see how to convert to pixel X,Y values.
David.
Thanks, really appreciate the help even if I am doing it wrong.