+* USB_PID_LIST now defaults to 0x6001, 0x6010, 0x6011, 0x6014. The new
+ entries are 0x6010 and 0x6011. Note that USB_PID has been removed, and
+ USB_VID has been replaced with FTDI_VENDOR_ID
* Optimisation on accessing port property when direction is set to ALL_OUTPUTS
- don't bother reading the pins first. Makes ``port`` identical to ``latch``
# The full version, including alpha/beta/rc tags.
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
-# However, a list of IDs is actually matched against.
-USB_VID_LIST = [USB_VID]
-USB_PID_LIST = [USB_PID, 0x6014]
+# Opening / searching for a device uses this list of IDs to search
+# by default. These can be extended directly after import if required.
+USB_VID_LIST = [FTDI_VENDOR_ID]
+USB_PID_LIST = [0x6001, 0x6010, 0x6011, 0x6014]
code (and import byref from ctypes):
>>> with Device() as dev:
- >>> # set 8 bit data, 2 stop bits, no parity
- >>> dev.ftdi_fn.ftdi_set_line_property(8, 2, 0)
+ ... # set 8 bit data, 2 stop bits, no parity
+ ... dev.ftdi_fn.ftdi_set_line_property(8, 2, 0)
# note this class is constructed on each call, so this
# won't be particularly quick. It does ensure that the
when used in a with statement, and the device object
>>> with Device(mode='t') as dev:
- >>> dev.write('Hello World!')
+ ... dev.write('Hello World!')
description="Pythonic interface to FTDI devices using libftdi",