Get current status of runtime objects.
import supervisor if supervisor.runtime.serial_connected: print("Hello World!")
Returns the USB serial communication status (read-only).
SAMD: Will return
Trueif the USB serial connection has been established at any point. Will not reset if USB is disconnected but power remains (e.g. battery connected)
Returns the whether any bytes are available to read on the USB serial input. Allows for polling to see whether to call the built-in input() or wait. (read-only)