[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Mon Mar 11, 2024 10:02 pm
I flashed version 1.52.3 onto an ESP32-3248S035C and configured board type, the TFT type, landscape, and SD card on.
The TFT, SD card, and the touch screen work!
It works without the touch.init and without the I2C.setup and with the touch.read commands.
In landscape mode, the printing and the colors on the TFT match those of the resistive screen.
The x=0 and y=0 are in the lower left corner, not the upper left like the resistive.
Also the x dimension represents distance upward from the bottom of the screen,
and the y dimension represent distance rightward from the left edge.
The resistive had the x dimension represent rightward from the left edge of the screen.
and the y dimension represent downward from the top of the screen.
I didn't flash 1.52.3 on the ESP32-3248S035R. I'll do that next.
Just to clarify :
What is the orientation of the TFT that you selected ?
If you select landscape, does the X and Y are reversed?
If you select landscape reversed, the X and Y are still reversed ?
The capacitive touch performance that I described is with LANDSCAPE selected, not LANDSCAPE REVERSED.
With that selection, your initial logo (with the bee) displays correctly in the upper left corner of the display
with the board oriented with the tricolor LED in the lower left corner and the USB cable connector on the right side.
If I leave the board with the LED at the lower left and the USB at the right, and if I change to LANDSCAPE REVERSED,
your initial logo is upside down in the lower right corner and the touch operates the same as previously described.
I flashed your latest 1.52.3 to my ESP32-3248S035C module.
In LANDSCAPE mode, the touch axes and coordinates now work the same as the resistive module (with touch calibrated).
I observed that the GUI buttons do not seem to work on the capacitive module.
Both the resistive (with touch not recalibrated) and the capacitive modules act the same for touch in LANDSCAPE REVERSED mode.
The touch axes and coordinates stay the same relative to the board even though the display is rotated 180 degrees.
The GUI buttons work properly on the resistive module in LANDSCAPE mode.
Last edited by botman on Thu Mar 14, 2024 10:37 pm, edited 2 times in total.
That observation about the touch coordinates staying the same relative to the circuit board and not the screen
on the resistive touch module when switching from LANDSCAPE to LANDSCAPE REVERSE is true without recalibrating the touch screen.
[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Thu Mar 14, 2024 10:29 pm
That observation about the touch coordinates staying the same relative to the circuit board and not the screen
on the resistive touch module when switching from LANDSCAPE to LANDSCAPE REVERSE is true without recalibrating the touch screen.
I think that the goal is to make the touch position coordinates match the coordinates for printing or plotting to the TFT screen,
and to do that for all of the TFT mode selections. Right now version 1.52.3 does that on the ESP32-3248S035C in LANDSCAPE mode.
In LANDSCAPE REVERSED mode, both the capacitive and the resistive (unrecalibrated) act the same because they keep the touch
coordinates the same relative to the board orientation even though the TFT orientation has changed. However, if I calibrate the touch
on the resistive module, the touch and the screen becomes matched in LANDSCAPE REVERSED mode.
Since there is no calibration for the capacitive module, I propose that the code reading the touch may need to modify the touch coordinates that it reports based upon the screen orientation so that the screen and the touch have the same X and Y values for given location.
This is quite obvious, I was just trying to understand the default orientation.
Next step is to include the support of the capacitive touch in the GUI and set the orientation in accordance with the TFT orientation.
Try again to download the version 1.52.3, I updated again.
As before, option,touch 1 select the capacitive touch (but is not required if the ESP32-3248S035C is selected in the config)
The GUI should work too.
There is now a new function
touch.init rotation where rotation can be from 0 to 3