SparkFun I2C Mux Arduino Library

Device Control

Library to control I2C multiplexers including the TCA9548/PCA9548.
I2C multiplexers are useful for connecting multiple I2C devices that have only one address. This library makes it easy to work with the 8-channel TCA9548/PCA9548 I2C multiplexer but also works with smaller 4 and 2 bit multiplexers. This library support daisychaining multiple muxes so that you can get up to 64 devices on one I2C bus! It also supports generic Wire ports (Wire1, myWire, etc). Checkout the Qwiic Mux for more information.

Author: SparkFun Electronics

Maintainer: SparkFun Electronics

Read the documentation


This library is compatible with all architectures so you should be able to use it on all the Arduino boards.


To use this library, open the Library Manager in the Arduino IDE and install it from there.