diff options
Diffstat (limited to 'pyserial/examples/scan.py')
-rw-r--r-- | pyserial/examples/scan.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pyserial/examples/scan.py b/pyserial/examples/scan.py index 8be17f7..b34aba3 100644 --- a/pyserial/examples/scan.py +++ b/pyserial/examples/scan.py @@ -1,4 +1,12 @@ #!/usr/bin/env python +"""Scan for serial ports +part of pyserial (http://pyserial.sf.net) (C)2002 cliechti@gmx.net + +the scan function of this module tries to open each port number +from 0 to 255 and it builds a list of those ports where this was +successful. +""" + from serial import Serial from serial.serialutil import SerialException @@ -17,4 +25,4 @@ def scan(): if __name__=='__main__': print "Found ports:" for n,s in scan(): - print "(%d) %s" % (n,s)
\ No newline at end of file + print "(%d) %s" % (n,s) |