System.IO.Ports.SerialPort.GetPortNames

Here are the examples of the python api System.IO.Ports.SerialPort.GetPortNames taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

Example 1

Project: mavelous Source File: serialcli.py
Function: device
def device(portnum):
    """Turn a port number into a device name"""
    return System.IO.Ports.SerialPort.GetPortNames()[portnum]