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

    Interrupts?

    UIFlow
    3
    4
    8.1k
    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.
    • L
      LastCaress
      last edited by

      So is there any way to use external interrupts in flow.m5stack.com ? (using the micropython code)? I tried using the methods for micropython but irq is not an attribute for pin objects.
      Thanks!

      L 1 Reply Last reply Reply Quote 0
      • L
        LastCaress @LastCaress
        last edited by

        @lastcaress I used the code for the button pressed, but don't know if this is accurate?

        1 Reply Last reply Reply Quote 0
        • ajb2k3A
          ajb2k3
          last edited by

          I don't understand interrupts myself but I believe that if you use the button loop instead of the system loop that that is an interrupt.
          Please bare with me as I'm still documenting and exploring UIFlow.

          UIFlow, so easy an adult can learn it!
          If I don't know it, be patient!
          I've ether not learned it or am too drunk to remember it!
          Author of the WIP UIFlow Handbook!
          M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

          1 Reply Last reply Reply Quote 0
          • H
            heybin
            last edited by

            flow.m5stack.com, buttonA, B, C has been implemented using interrupts, or try:

            from m5stack import m5button
            button = m5button.register(_BUTTON_PIN)
            

            0_1553909250953_074bc216-f4e2-4c8a-a9c3-b66a9e4d9064-image.png

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