pub fn detect(runtime: Runtime, hint: &str) -> PythonRuntimeExpand description
Which interpreter a board’s console speaks, from the configured runtime and a firmware hint: its file name or a captured banner.
An explicit runtime = "circuitpython" wins. Otherwise a hint that names
CircuitPython wins over the MicroPython default, because the image is what
will actually boot; a MicroPython build or an image that says nothing about
CircuitPython stays MicroPython.