Skip to content

Commit

Permalink
Merge pull request #1149 from flash62au/sphinx
Browse files Browse the repository at this point in the history
Update i2c-multiplexers.rst
  • Loading branch information
flash62au authored Feb 6, 2025
2 parents 2068b9a + 4beaa68 commit 9eb9b5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/about/about.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Developers

EX-IOExpander
==============

Developers

* Peter Cole - Brisbane, QLD, Australia (peteGSX)
Expand Down
6 changes: 3 additions & 3 deletions docs/reference/hardware/i2c-multiplexers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ To configure the PWM and GPIO modules hanging off the mulitplexor on the other s
// Number of VPINs
// I2C address of module
HAL(PCA9685, 100, 16, {I2CMux_0, SubBus_01, 0x40)
HAL(PCA9685, 116, 16, {I2CMux_0, SubBus_01, 0x41)
HAL(PCA9685, 100, 16, {I2CMux_0, SubBus_01}, 0x40)
HAL(PCA9685, 116, 16, {I2CMux_0, SubBus_01}, 0x41)
//==============================================================================
// The following directive defines an MCP23017 16-port I2C GPIO Extender module.
Expand All @@ -139,7 +139,7 @@ To configure the PWM and GPIO modules hanging off the mulitplexor on the other s
// I2C address of module
// Vpin for interrupt (optional)
HAL(MCP23017, 196, 16, {I2CMux_0, SubBus_03, 0x20)
HAL(MCP23017, 196, 16, {I2CMux_0, SubBus_03}, 0x20)
.. note::
Note that any currently supported |I2C| device can be connected to any port of any multiplexer, provided they are declared in "myAutomation.h" with the HAL() macro, with the correct addressing for multiplexer and sub-bus. It is probably easiest to connect all the |I2C| devices to your multiplexers and let |EX-CS| probe for the them and any devices off each sub-bus, so you can use the console output to guide you in creating the HAL() macro declarations for "myAutomation.h".
Expand Down

0 comments on commit 9eb9b5e

Please sign in to comment.