예제 #1
0
 def __init__(self, device_index=0):
     """Initialise the driver."""
     try:
         Device.__init__(self, mode="b", device_index=device_index)
     except LibraryMissingError:
         raise Exception(
             "Dependency libftdi not found. Check the README for driver dependencies."
         )
     self.baudrate = 250000
     self.ftdi_fn.ftdi_set_line_property(FT232R._BITS_8,
                                         FT232R._STOP_BITS_2,
                                         FT232R._PARITY_NONE)
예제 #2
0
 def __init__(self, *o, **k):
     Device.__init__(self, *o, **k)
     self.baudrate = 31250