bitbank2 / BitBang_I2C

A software I2C implementation to run on any GPIO pins on any system
GNU General Public License v3.0
235 stars 31 forks source link

Read & Write Examples #28

Closed Jim-bee closed 2 years ago

Jim-bee commented 2 years ago

Hi can you please add in read and write example code for your library.

Thanks.

bitbank2 commented 2 years ago

I agree it can use some examples. A good way to see how to use the API is to look at the discover devices code in the library itself. It uses both read and write functions:

https://github.com/bitbank2/BitBang_I2C/blob/3a4429da46c53b5e1144529f942ea61e21b56777/src/BitBang_I2C.cpp#L806