Skip to content

File I2cMux.h

FileList > Firmware > Libraries > PanelGroup > Helpers > I2cMux > I2cMux.h

Go to the source code of this file

TCA9548A 1-to-8 I2C multiplexer channel selector for OpenSkyhawk .More...

  • #include <Arduino.h>
  • #include <Wire.h>

Namespaces

Type Name
namespace OpenSkyhawk

Classes

Type Name
class I2cMux
Selects one downstream channel of a TCA9548A I2C multiplexer.

Detailed Description

One I2cMux instance == one TCA9548A chip on one I2C bus. A DrumDisplay (or any future muxed I2C output) holds a pointer to an I2cMux plus a channel index and calls select() before every I2C transaction so the right downstream branch is live. The mux is a passive switch — the U8G2 driver still owns the device address; the mux only routes SDA/SCL.

Version:

0.1.0

Copyright:

GPL-2.0-only — see Firmware/LICENSE


The documentation for this class was generated from the following file Firmware/Libraries/PanelGroup/Helpers/I2cMux/I2cMux.h