🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Tough Touch Help!

    Cores
    2
    4
    658
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • cryptospokC
      cryptospok
      last edited by cryptospok

      I'm trying to read touches on the Tough screen, but when I start the code, it already comes with values ​​of X (52) and Y (154) as if there was a touch.
      By chance, it's exactly in the area where I expect it to be touched...
      When I read the data in:

      uiflow2_block_1731087302359.png

      I get the following response: (52.0, 0.0, 154.0, 0.0)

      I'm trying to read the touch like this:

      uiflow2_block_1731087721755.png

      Thank You!

      cryptospokC 1 Reply Last reply Reply Quote 0
      • cryptospokC
        cryptospok @cryptospok
        last edited by

        I noticed that if I turn Tough off and on again, the initial coordinates are -1 and 1, but if I just load a new version of the code, the last coordinates remain...
        How could I clear the coordinates at the beginning of the code?

        I also couldn't use the following block:

        uiflow2_block_1731091448273.png

        Thanks for any help!

        felmueF 1 Reply Last reply Reply Quote 0
        • felmueF
          felmue @cryptospok
          last edited by

          Hello @cryptospok

          please find an example in the UIFlow2 Project Zone: M5ToughTouchTest_UIFlow2.1.7 showing how to get rid of old / duplicate touch events.

          Thanks
          Felix

          GPIO translation table M5Stack / M5Core2
          Information about various M5Stack products.
          Code examples

          cryptospokC 1 Reply Last reply Reply Quote 1
          • cryptospokC
            cryptospok @felmue
            last edited by

            @felmue

            Thanks again, you're the M5man!

            1 Reply Last reply Reply Quote 0
            • First post
              Last post