Beispiel #1
0
 def __init__(self, filename, mmapSize):
     Stream.__init__(self, filename)
     self.endofmap = False
     self.mmapSize = mmapSize
     self.mapLength = self.mmapSize #size of the current map
     self.count = 0
     self.tempLine = ""
Beispiel #2
0
    def __init__(self, **kw):
        """ Default constructor
        Creates and opens a serial port

        **kw - keyword arguments to pass into a pySerial serial port
        """
        Stream.__init__(self)
        self.port = serial.Serial(**kw)
Beispiel #3
0
    def __init__(self, **kw):
        """ Default constructor
        Creates and opens a serial port

        **kw - keyword arguments to pass into a pySerial serial port
        """
        Stream.__init__(self)
        self.port = serial.Serial(**kw)
Beispiel #4
0
 def __init__(self, filename):
     Stream.__init__(self, filename)