mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 01:24:17 +00:00
usys: Add examples.
This commit is contained in:
@@ -11,14 +11,12 @@ This module provides a subset of the standard Python ``sys`` module.
|
||||
|
||||
from uio import FileIO as _FileIO
|
||||
|
||||
# REVISIT: most functions are excluded since they aren't useful for Pybricks
|
||||
|
||||
stdin: _FileIO = _FileIO()
|
||||
"""
|
||||
Stream object (:class:`uio.FileIO`) that receives input from a connected
|
||||
This is a stream object (:class:`uio.FileIO`) that receives input from a connected
|
||||
terminal, if any.
|
||||
|
||||
Writing may modify newline characters. Use ``usys.stdin.buffer`` instead if
|
||||
Writing may modify newline characters. Use ``stdin.buffer`` instead if
|
||||
this is undesirable.
|
||||
|
||||
Also see :func:`micropython.kbd_intr` to disable ``KeyboardInterrupt`` if you
|
||||
@@ -27,10 +25,10 @@ are passing binary data via ``stdin``.
|
||||
|
||||
stdout: _FileIO = _FileIO()
|
||||
"""
|
||||
Stream object (:class:`uio.FileIO`) that sends output to a connected terminal,
|
||||
This is a stream object (:class:`uio.FileIO`) that sends output to a connected terminal,
|
||||
if any.
|
||||
|
||||
Reading may modify newline characters. Use ``usys.stdout.buffer`` instead if
|
||||
Reading may modify newline characters. Use ``stdout.buffer`` instead if
|
||||
this is undesirable.
|
||||
"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user