๐Ÿค–Have you ever tried Chat.M5Stack.com before asking??๐Ÿ˜Ž
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Tough Touch Help!

    Scheduled Pinned Locked Moved Cores
    4 Posts 2 Posters 2.9k Views 1 Watching
    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 Offline
      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 Offline
        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 Offline
          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 Offline
            cryptospok @felmue
            last edited by

            @felmue

            Thanks again, you're the M5man!

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better ๐Ÿ’—

            Register Login
            • First post
              Last post