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?
-
@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. .
-
@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.