🤖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

    UIFlow
    3
    3
    4.6k
    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
      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
        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
          mchott @felmue
          last edited by

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

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