 #include <Wire.h>
+
 
 #define PCA9548ADDR 0x70
 

  Wire.write(0x01);
  Wire.write(0x00);
  Wire.endTransmission();
//  Wire.beginTransmission(0x20);
//  //Write '1' to GPB0-GPB3
//  Wire.write(0x13);
//  Wire.write(0x0f);
//  Wire.endTransmission();

  //select SDA0 / SCL0
  selectI2cChannels(I2C_CHANNEL_SDSC0);

  Wire.write(0x01);
  Wire.write(0xFE);
  Wire.endTransmission();
}

void loop() {
  // put your main code here, to run repeatedly:
  led1.Update();
  led2.Update();
  led3.Update();
  led4.Update();

  selectI2cChannels(I2C_CHANNEL_SDSC0);
  Wire.beginTransmission(0x20);
  Wire.write(0x13);
  Wire.endTransmission();
  Wire.requestFrom(0x20, 1);
  result = (Wire.read() & 0x02);
  if (result && !oldbutton) {
    if (state == 0) {
      state = 1;
    } else {
      state = 0;
    }
    oldbutton = 1;
    Wire.beginTransmission(0x20);
    Wire.write(0x13);
    Wire.write(state);
    Wire.endTransmission();
  } else if (!result && oldbutton) {
    oldbutton = 0;
  }
}

void selectI2cChannels(int channels) 
