#include I2C.library int TCA9548A_address = 0b1110100; //this is the 7 bit hardware address of TCA9548A if A0-A2 are GND void_example1{ //Example to enable channel 5 I2C.WriteTransmission(TCA9548A_address); //specifies what slave address to write to I2C.WriteByte(0b00100000); // bit 5 is set to 1 meaning channel 5 is enabled and all others disabled I2C.Send(); //Once code hits this line, the I2C communication is sent //you can now communicate to the slave on channel 5 } void_example2{ //example to read what TCA9548Achannel is enabled I2C.ReadTransmission(TCA9548A_address, 1); //1 is how many bytes we want to read in this case, we only need 1 byte to see what ch is enabled I2C.Send(); //Once code hits this line, the I2C communication is sent //pretend we received data and now want to display to terminal print(I2C.ReadByte()); //prints what was received in the I2C buffer }