Commits

Ben Bass committed 537eb8b

update the default USB PIDs to look for

Comments (0)

Files changed (4)

 pylibftdi changes
 =================
 
+0.13pre
+~~~~~~~
+
+* 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
+
 0.12
-~~~~~~~
+~~~~
 * Optimisation on accessing port property when direction is set to ALL_OUTPUTS
   - don't bother reading the pins first. Makes ``port`` identical to ``latch``
   in this case.
 # built documents.
 #
 # The short X.Y version.
-version = '0.12'
+version = '0.13pre'
 # The full version, including alpha/beta/rc tags.
-release = '0.12'
+release = '0.13pre'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.

pylibftdi/driver.py

 BITMODE_RESET = 0x00
 BITMODE_BITBANG = 0x01
 
-# Default USB IDs
-USB_VID = 0x0403
-USB_PID = 0x6001
-# 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.
+FTDI_VENDOR_ID = 0x0403
+USB_VID_LIST = [FTDI_VENDOR_ID]
+USB_PID_LIST = [0x6001, 0x6010, 0x6011, 0x6014]
 
 
 class Driver(object):
         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
         itself is returned:
         >>> with Device(mode='t') as dev:
-        >>>     dev.write('Hello World!')
-        >>>
+        ...     dev.write('Hello World!')
+        ...
         """
         self.open()
         return self
 
 setup(
     name="pylibftdi",
-    version="0.12",
+    version="0.13pre",
     description="Pythonic interface to FTDI devices using libftdi",
     long_description=open('README.rst').read(),
     author="Ben Bass",
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.