Git Product home page Git Product logo

Comments (6)

lovyan03 avatar lovyan03 commented on September 28, 2024 1

@BlynkGO
If it is working correctly with LolinD32Pro, it is unlikely to be a hardware failure or a library failure.
As far as the symptoms are concerned, it is always misidentified as being touched.
Perhaps it is not receiving data from XPT2046.

First, check the wiring.

touch.spi_cs = 27;
static constexpr int spi_miso = 19;

I can't verify that this matches the actual connection.
You may want to try using a different GPIO just to be sure.

from lovyangfx.

tobozo avatar tobozo commented on September 28, 2024 1

pinout numbering differs between ESP32-Wrover and ESP32-Wroom, it's very likely the Touch config needs to be changed

from lovyangfx.

lovyan03 avatar lovyan03 commented on September 28, 2024 1

@BlynkGO
Hmmm, there is no cause I can think of right now.
The superficial appearance of the phenomenon means that it is always misinterpreted as being touched, but we need more in-depth information.
If you have an oscilloscope, observing the waveform might tell you something.

I can't reproduce the phenomenon with what I have, so I'm relying on your debugging.

from lovyangfx.

BlynkGO avatar BlynkGO commented on September 28, 2024

@lovyan03 @tobozo
Thanks for the reply and guidance.

When I tested hareware DOIT Devkit + TFT 3.5 by TFT_eSPI library
that configed the same pins (18,19,23,27) as the code tested by LovyanGFX library, it is working correctly.

[Touch is fine on TFT_eSPI]
https://streamable.com/hpmzue

For me , LovyanGFX is better than TFT_eSPI,
I would like to use LovyanGFX .

The issue about lovyangfx's touch interface for DOIT Devkit maybe occurs from GPIO19 signal in library?

from lovyangfx.

BlynkGO avatar BlynkGO commented on September 28, 2024

Thank you very much.
I have tried to understand the LovyanGFX's touch in library code,
but I don't know how to fix.

At this point I backward to another method that
send spi_t _spi_handle[spi_host] to outside
from LovyanGFX' spi system
and create another touch library.
Now it can work.

However I feel satisfied to use the original of LovyanGFX' touch
more than this way.

If the issue can know cause and is resolved,
please update for this issue.

Arigato gozaimasu.

from lovyangfx.

tobozo avatar tobozo commented on September 28, 2024

closing this issue as solved, feel free to reopen if needed

from lovyangfx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.