// Wire Master Writer // by Nicholas Zambetti // Demonstrates use of the Wire library // Writes data to an I2C/TWI slave device // Refer to the "Wire Slave Receiver" example for use with this // Created 29 March 2006 // This example code is in the public domain. #include void setup() { Wire.begin(); // join i2c bus (address optional for master) } void loop() { Wire.beginTransmission(8); // transmit to device #8 Wire.write("Hello 8"); // sends five bytes Wire.endTransmission(); // stop transmitting delay(500); }