kplindegaard / smbus2

A drop-in replacement for smbus-cffi/smbus-python in pure Python
MIT License
243 stars 68 forks source link

Read smbus 32 byte Block data #48

Closed scottscott70 closed 4 years ago

scottscott70 commented 4 years ago

I use read_i2c_block_data function to read bq40z55 data flash but once block_data have 36 Byte, i2c_block_data function limit to 32 Byte how can I do read all 36 Byte Block data image

kplindegaard commented 4 years ago

Hi @scottscott70 Take a look at Example 5 in the readme.

scottscott70 commented 4 years ago

Thanks for your reply. After the test, the i2c waveform was correct. But how to get data buffer? Now , I get data buffer is nano. This smbus2 module was perfect. Thank You.

image image image

scottscott70 commented 4 years ago

Buy the way, "pip install smbus2" is not working Now.

scottscott70 commented 4 years ago

Sorry, I got data succesfully

image image