Go Down

Topic: TCA9548A I2C Multiplexer "utility/twi.h" error (Read 668 times) previous topic - next topic

ccomparey

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?

pert

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.

ballscrewbob

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.
It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google (who would have thunk it ! ) or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

Go Up