Such a newb...
-
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?
-
@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. -
@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. .
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