Qwiic MUX Hookup Guide
Contributors:
santaimpersonator, Englandsaurus
Arduino Library
We have also written a dedicated Arduino Library for the Qwiic Mux. It includes extra functions which you can use to (e.g.) enable or disable multiple ports in one call.
You can install the library via the Arduino Library Manager:
language:c
#include <SparkFun_I2C_Mux_Arduino_Library.h> //Click here to get the library: http://librarymanager/All#SparkFun_I2C_Mux
Or, if you want to, you can download and install it manually:
Please see Example2 for a fancier way of creating your array of sensors, using a pointer to an array of pointers!