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

    Such a newb...

    Scheduled Pinned Locked Moved MicroPython
    3 Posts 2 Posters 366 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.
    • K Offline
      Kurt switzer
      last edited by

      I have written some simple code to control a few stepper and DC motors. Suddenly today the proven code stopped working with the Traceback.....KeyboardInterrupt: error. This code ran this morning and won't now. I even took the PICO W off the breadboard and tried to run the day one training code.

      from machine import Pin
      from time import sleep
      myLED=Pin('LED',Pin.OUT)
      
      while True:
          #myLED.value(0)
          #sleep(.1)
          #myLED.value(1)
          #sleep(.1)
          myLED.off()
          sleep(.019)
      

      I'm still getting the unidentified error, and no, I am not pressing CTRL-C.

      Any ideas on what obvious thing I'm doing wrong?

      robert-hhR 1 Reply Last reply Reply Quote -1
      • robert-hhR Offline
        robert-hh @Kurt switzer
        last edited by

        @Kurt-switzer Are you sure that you post in the right forum? This is the Pycom forum. If you have a Pico W, you should go to https://github.com/orgs/micropython/discussions
        Besides that, Keyboard Interrupt is caused by the PC host, sending Ctrl-C. Do you have a Modem Manager running on the PC. At Linux it is enabled by default. So you have to disable it. Other causes may be bad USB cables.

        K 1 Reply Last reply Reply Quote 1
        • K Offline
          Kurt switzer @robert-hh
          last edited by

          @robert-hh maybe wrong forum. I couldn't figure out the Github system and found this forum instead. Thanks for the tip on the USB cable. Hope it's that simple. .

          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