void setup() Wire.begin(); // Initialize the I2C bus
You can modify wire.h to:
Here’s what most tutorials don’t tell you: wire.h download
In this example, we initialize the I2C bus using Wire.begin() and then use Wire.beginTransmission() to start a transmission to an I2C device with the address 0x12 . We then use Wire.write() to send data to the device and finally use Wire.endTransmission() to end the transmission. void setup() Wire