Thu. Jan 8th, 2026
import os
os.uname()
import sys
sys.implementation
help('modules')

Another useful thing. (May be useful to prevent a situation where we can handle control C characters in our own code and get stuck with no way back to REPL. We can still get back to REPL, hopefully, rather than blocked our own read-execute-loop.)

try:
    micropython.kbd_intr(-1)
    # critical work
finally:
    micropython.kbd_intr(3)

By admin

Leave a Reply

Your email address will not be published. Required fields are marked *