#include void setup() { Wire.begin(); // join i2c bus (address optional for master) Serial.begin(9600); // start serial for output } void loop() { Serial.println("requesting 6 bytes"); Wire.requestFrom(8, 6); // request 6 bytes from peripheral device #8 while (Wire.available()) { // peripheral may send less than requested char c = Wire.read(); // receive a byte as character Serial.print(c); // print the character } Serial.println(""); Serial.println("end of transmission"); delay(2000); }