amaork / libi2c

Linux i2c library, support C/C++/Python
MIT License
174 stars 63 forks source link

make reads non blocking and set device address once #12

Open bguta opened 2 years ago

bguta commented 2 years ago

Slight modification of the library to make read operations non blocking when there is no data on the bus. Also move the i2c_select into init so that it is only called once for read/write operations. Feel free to modify!