#include <Wire.h>

#define SLAVE1_ADDR 0x08 
#define SLAVE2_ADDR 0x09 

void setup() {
  pinMode(LED_BUILTIN, OUTPUT);
  Serial.begin(9600); 
  Wire.begin(); 
  Serial.println("Setup completo");
}

void loop() {
  // Parpadea el LED integrado
  digitalWrite(LED_BUILTIN, HIGH);
  delay(500);
  digitalWrite(LED_BUILTIN, LOW);
  delay(500);

  Wire.beginTransmission(SLAVE1_ADDR);
  Wire.write(1); 
  Wire.endTransmission();
  delay(1000); 

  Wire.beginTransmission(SLAVE2_ADDR);
  Wire.write(1); 
  Wire.endTransmission();
  delay(1000); 
}