Is it possible to test for data available from the UART?
This commonly implemented with kbhit(), or nonblocking, modes.
I can wait for one character with this:
> key = stdin.buffer.read(1)
This doesn't return until a key received (wait forever)
I would like a way to know if a key is available before reading it.
I see some related documentation for pyserial, but haven't found a way to create a serial object in micropython.