Module ioLabs :: Class Serial
[frames] | no frames]

Class Serial

source code

object --+
         |
        Serial

serial port on the USBBox

Instance Methods
 
__init__(self, commands)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
write(self, bytes)
write bytes to the serial port
source code
 
read(self)
wait for input on the serial port.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties

Inherited from object: __class__

Method Details

__init__(self, commands)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

read(self)

source code 
wait for input on the serial port. blocks for a while, but times out if nothing received and returns an empty string