class I2C – a two-wire serial protocol¶
I2C is a two-wire protocol for communicating between devices. At the physical level it consists of 2 wires: SCL and SDA, the clock and data lines respectively.
I2C objects are created attached to a specific bus. They can be initialised when created, or initialised later on.
Printing the i2c object gives you information about its configuration.
Turn off the I2C bus.
Scan all I2C addresses from 0x01 to 0x7f and return a list of those that respond. Only valid when in master mode.