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

    Interrupt Problem

    Scheduled Pinned Locked Moved WiPy 2&3
    3 Posts 2 Posters 1.1k Views 2 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.
    • H Offline
      HellDesk
      last edited by

      I'm relatively new to this, so give me a break. That said:

      I'm trying to get an LED to respond to a button press. From what I can tell, this should happen with callbacks/Interrupts. As I've not seen any callbacks implemented for this board (I do see it for the pyboard however). So I guess I'll have to make my own interrupt.

      I'm trying to use the expansion board button to just change the value of the LED. I've looked up the PIN that the documentation says this button is tied to and tried to implement this. I'm either getting an error that what I'm trying to do isn't allowed (I'm trying to work in the REPL because the Pycom IDE won't connect to my WiPy 2.0 at all - completely different story that I've given up on as I can connect via FTP as well as Serial - but the IDE just won't. NVM).

      Are there any examples someone has that shows this specific board implementing an interrupt properly? Or even just explaining a little better might help. The documentation is probably clear to someone else, but it isn't clicking for me. All of the examples utilize either the pyb.Timer (which isn't available to me on this board) or a Pin.callback() function which again isn't available.

      Thank you very much.

      1 Reply Last reply Reply Quote 0
      • L Offline
        livius
        last edited by

        look here
        https://forum.pycom.io/topic/148/simple-interrupt-problem

        think about people first, then computers

        1 Reply Last reply Reply Quote 0
        • H Offline
          HellDesk
          last edited by

          Yeah @livius I actually already posted there - thanks. If anyone else is looking, that is where you can find the solution to this issue. @KMcLoud very kindly posted his solution and I'm digging deeper now that this is resolved. Much appreciated.

          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