+ * added ftdi_fn and set_baudrate functions in Driver class
+ * changed interface in BitBangDriver to direction/port properties
+ rather than overriding the read/write functions, which are therefore
+ still available as in the Driver class.
* first release. Tested with libftdi 0.18 on Mac OS X 10.6 and Linux
- (stock EEEPC 701 Xandros Linux, Ubuntu 10.04)
+ (stock EEEPC 701 Xandros Linux, Ubuntu 10.04)
rather than a problem with the libftdi library.
result = ord(super(BitBangDriver, self).read(1))
# replace the 'output' bits with current value of _latch -
# the last written value. This makes read-modify-write
- # operations (e.g. '
x.port |= 0x10') work as expected
+ # operations (e.g. '.port |= 0x10') work as expected
result = (result & ~self._direction) | (self._latch & self._direction)
description="Pythonic interface to FTDI devices using libftdi",