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

Add example #26

Closed hydrastarmaster closed 3 years ago

hydrastarmaster commented 3 years ago

A simple example sketch for a read on any sensor (eg. BMP280 temperature) would be appreciated. Thank you.

kaybee335 commented 3 years ago

If you look in the source at the function I2CDiscoverDevice() you will find multiple examples of reads including the BMP280. These are performed as part of the process of identifying the device but the same applies to querying/controlling.

Not exactly simple but should get you going.

Cheers.

hydrastarmaster commented 3 years ago

Thanks, man, I got the basics.