jamesbowman / i2cdriver

I2CDriver open source tools
https://i2cdriver.com/
BSD 3-Clause "New" or "Revised" License
184 stars 57 forks source link

(feature) Added i2c_disconnect to c sdk #66

Closed muman613 closed 3 months ago

muman613 commented 3 months ago

This PR contains a single change. It adds a function i2c_disconnect(I2CDriver *sd) to the C sdk.

This function provides the opposite function of the connect() call. It closes the serial device and resets the connected flag.

jamesbowman commented 3 months ago

Looks good. Thanks for the patch.