2
// by Nicholas Zambetti <http://www.zambetti.com>
4
// Demonstrates use of the Wire library
5
// Writes data to an I2C/TWI slave device
6
// Refer to the "Wire Slave Receiver" example for use with this
8
// Created 29 March 2006
10
// This example code is in the public domain.
17
Wire.begin(); // join i2c bus (address optional for master)
24
Wire.beginTransmission(4); // transmit to device #4
25
Wire.write("x is "); // sends five bytes
26
Wire.write(x); // sends one byte
27
Wire.endTransmission(); // stop transmitting