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

    Blocky does not seem to differentiate between button a pressed and button a long press

    Scheduled Pinned Locked Moved UIFlow
    3 Posts 3 Posters 5.7k 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.
    • D Offline
      Delchi
      last edited by

      Core2Duo
      Firmware : UiFlow 1.7.4.1-Core2
      IDE : UiFlow 1.7.4

      In this blockly code, it does not appear to knwo the difference between a button a press and a button a long press.

      When button A is pressed, it does the steps in Button A pressed , then the steps in button A long press. Nothing I have tried makes it do only the long press block.

      0_1618262762555_Capture2.JPG

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

        Hello @Delchi

        have you tried to use wasReleased and longPress instead?

        Thanks
        Felix

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

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          mchott @felmue
          last edited by

          @felmue this worked in my case .. longPress and wasReleased

          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