Alternate to input
and usys.stdin
on Move hub
#1102
Labels
enhancement
New feature or request
hub: movehub
Issues related to the LEGO BOOST Move hub
software: pybricks-micropython
Issues with Pybricks MicroPython firmware (or EV3 runtime)
topic: multitasking
Issues releated to parallel threads, tasks, coroutines, etc.
Is your feature request related to a problem? Please describe.
This has come up several times recently (#1099, #1085, #529). There is no easy way to get input from a computer to a BOOST Move hub.
Describe the solution you'd like
A function similar to
usys.stdin.read()
that plays nice with the new async run loop with minimal implementation size.Describe alternatives you've considered
mp_hal_readline()
(e.g. backspace wouldn't work) and use the existing builtininput()
function. However, since this prints in addition to getting input, it would not be ideal for use in a program with an async run loop where we need it to be awaitable rather than blocking.The text was updated successfully, but these errors were encountered: