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

Breakout I2CDiscoverDevice ? #22

Closed tablatronix closed 3 years ago

tablatronix commented 3 years ago

have you considered abstracting I2CDiscoverDevice out to another library ? Just curious if there was something already doing this ID, afaik there is not...

bitbank2 commented 3 years ago

I had originally written this function as a stand-alone Arduino sketch, but it seemed like something useful to include in BitBang_I2C since it doesn't take up that much space. The "friendly name" of each device must be supplied by your own code, but just having the constant IDs seemed like a useful thing to provide everyone. I created an example sketch with the friendly names and that seemed like a good compromise. You're welcome to use the code in another form if you prefer it that way.