kplindegaard / smbus2

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

Exemple i2c_msg.write() for a single byte (list required) #46

Closed wschmied closed 4 years ago

wschmied commented 4 years ago

Exemplified that even a single byte has to be given as a list for i2c_msg.write(). Might be obvious for most, but given that i2c_msg.read() takes a plain value, it's easy to get misled.

kplindegaard commented 4 years ago

Thanks :)