def create_serial(device=None, baud=None, timeout=None):
        """
        Create a JadeInterface object using the serial interface described.

        Parameters
        ----------
        device : str, optional
            The device identifier for the serial device.
            Underlying implementation will default (to /dev/ttyUSB0)

        baud : int, optional
            The communication baud rate.
            Underlying implementation will default (to 115200)

        timeout : int, optional
            The serial read timeout when awaiting messages.
            Underlying implementation will default (to 120s)

        Returns
        -------
        JadeInterface
            Interface object configured to use given serial parameters.
            NOTE: the instance has not yet tried to contact the hw
            - caller must call 'connect()' before trying to use the Jade.
        """
        if device and JadeTCPImpl.isSupportedDevice(device):
            impl = JadeTCPImpl(device, timeout or DEFAULT_SERIAL_TIMEOUT)
        else:
            impl = JadeSerialImpl(device,
                                  baud or DEFAULT_BAUD_RATE,
                                  timeout or DEFAULT_SERIAL_TIMEOUT)
        return JadeInterface(impl)

        Create a JadeInterface object using the serial interface described.

        Parameters
        ----------
        device : str, optional
            The device identifier for the serial device.
            Underlying implementation will default (to /dev/ttyUSB0)

        baud : int, optional
            The communication baud rate.
            Underlying implementation will default (to 115200)

        timeout : int, optional
            The serial read timeout when awaiting messages.
            Underlying implementation will default (to 120s)

        Returns
        -------
        JadeInterface
            Interface object configured to use given serial parameters.
            NOTE: the instance has not yet tried to contact the hw
            - caller must call 'connect()' before trying to use the Jade.
        
electrum/plugins/jade/jadepy/jade.py