usys – System specific functions

This MicroPython module is a subset of the sys module in Python.

stdin

Stream object (uio.FileIO) that receives input from a connected terminal, if any.

Writing may modify newline characters. Use usys.stdin.buffer instead if this is undesirable.

Also see micropython.kbd_intr() to disable KeyboardInterrupt if you are passing binary data via stdin.

stdout

Stream object (uio.FileIO) that sends output to a connected terminal, if any.

Reading may modify newline characters. Use usys.stdout.buffer instead if this is undesirable.

stderr

Alias for stdout.