Skip to content
Discussion options

You must be logged in to vote

Normal Python code can be interrupted with ctrl-c. Exceptions are code that issues machine.deesleep() and code that runs loops in C or inline assembler - if these run for too long they can disrupt the USB interface. I'd investigate with a simple Python loop:

import time
while True:
   print("Hello")
   time.sleep(1)

If this can't be interrupted your IDE is swallowing the ctrl-c characters (as suggested above).

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@robert-hh
Comment options

Comment options

You must be logged in to vote
2 replies
@scruss
Comment options

@kjm1102
Comment options

Answer selected by kjm1102
Comment options

You must be logged in to vote
1 reply
@gitcnd
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
7 participants