//ATtiny1614 bridge I2C #include int i = 0; int j = 0; int led = 1; void setup() { Serial.begin(9600); Wire.begin(); pinMode(led, OUTPUT); // led } void loop() { for (i = 0; i <= 3; i++) { // 0,1,2,3 Wire.beginTransmission(8); //slave number 8 if ( i == 1) { Wire.write(1); Serial.println("1"); } else { Wire.write(0); Serial.println("0"); } Wire.endTransmission(); Wire.beginTransmission(9); //slave number 8 if ( i == 2) { Wire.write(1); Serial.println("1"); } else { Wire.write(0); Serial.println("0"); } Wire.endTransmission(); for (j = 0; j <= i; j++) { // blink i times digitalWrite(led, HIGH); delay(200); digitalWrite(led, LOW); delay(200); } delay(1000); } }