TCA9548A I2C Multiplexer "utility/twi.h" error

Hello,

I am trying to connect 3 I2C sensors (BNO055) with the same address, to do this I am using the TCA9548A multiplexer breakout board from Adafruit. Following the Adafruit tutorial I am trying to run the first code which tells you which ports of the multiplexer the I2C sensors are on. But when I run the compiler I get an error saying no "utility/twi.h" available in directory. I have seen some other threads which have similar problems but no real solution. Is this a problem with the MKR wire library, am I calling the wrong library? Has anyone successfully used a I2C multiplexer with the MKR1010?

The utility/twi.h file is specific to the Arduino AVR Boards Wire library. The Arduino SAMD Boards library doesn't have that file. I don't know whether there is any equivalent to the AVR library's twi_writeTo(). The files in the untility folder are not meant to be part of the public interface but it seems there are some useful things in there.

This looked quite useful in regards to I2C.
Maybe not your answer but good reading all the same.

Yes its for the MKR1000 but thats the same SAMD mcu.