Python Language Check what serial ports are available on your machine


Example

To get a list of available serial ports use

python -m serial.tools.list_ports

at a command prompt or

from serial.tools import list_ports
list_ports.comports()  # Outputs list of available serial ports

from the Python shell.