void setup() {
Serial.begin(115200);
delay(10);
Wire.begin(0,2);
Serial.println();
Serial.println("System Initiating...");
// REST OF CODE
}
and then in the loop:
Wire.requestFrom(2, 2);
Serial.print( Wire.read());
Have also tried the following in loop:
Wire.requestFrom(2, 2);
while(Wire.available()){
int c = Wire.read();
Serial.print(c);
}
Any suggestions please.