Yes. Here's how I read input a character at a time -With that said, isn't the REPL just a virtual com port anyways?
Code:
import micropythonimport selectimport sysmicropython.kbd_intr(-1)while True: while sys.stdin in select.select([sys.stdin], [], [], 0)[0]: ch = sys.stdin.read(1) print("Got 0x{:02X}".format(ord(ch)))Statistics: Posted by hippy — Mon Jun 23, 2025 11:30 am