Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    deactivate specific interrupt

    Scheduled Pinned Locked Moved Discussion
    4 Posts 3 Posters 60 Views 3 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.
    • V Offline
      Valter Roldao
      last edited by

      I have a sensor attached to a pin and every hour I want to allow it to interrupt execution for e.g. 1min so I can read from it. After that I want to cancel / deactivate that interruption.

      Is that possible with Pycom? Anyone suggests an alternative, more efficient, approach?
      Thanks in advance!

      robert-hhR 1 Reply Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh @Valter Roldao
        last edited by

        @Valter-Roldao Look at pin.callback() https://docs.pycom.io/firmwareapi/pycom/machine/pin/
        Using that method you can assign and deassign a callback handler for a pin.

        V 1 Reply Last reply Reply Quote 1
        • V Offline
          Valter Roldao @robert-hh
          last edited by

          @robert-hh Thanks!
          So, that's the routine I'm using already. the question is, can I stop/pause callbacks for one pin, while keeping others active? I did not find how in the documentation (either pycom or micropython's )

          A 1 Reply Last reply Reply Quote 0
          • A Offline
            alex sunny @Valter Roldao
            last edited by

            @Valter-Roldao said in deactivate specific interrupt:

            @robert-hh Thanks!
            So, that's the routine I'm using already. the question is, can I stop/pause callbacks for one pin, while keeping others active? I did not find how in the documentation (either pycom or micropython's )

            thanks my issue has been fixed.

            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
            • 1 / 1
            • First post
              Last post

            Pycom on Twitter

            Pycom