Instantiating a SMBus() object and then calling read_i2c_block_data with len as a keyword argument fails:
> bus.read_i2c_block_data(address, data, len=8)
E TypeError: validator() got an unexpected keyword argument 'len'
Python 3.4.2 (default, Oct 19 2014, 13:31:11)
[GCC 4.9.1] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from smbus import SMBus
>>> bus = SMBus(3)
>>> bus.read_i2c_block_data(0x20, 0x0, len=8)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: validator() got an unexpected keyword argument 'len'
>>>
Instantiating a
SMBus()
object and then callingread_i2c_block_data
withlen
as a keyword argument fails: