From b893090d521af1134e05b3bf487acbf854b4a1e8 Mon Sep 17 00:00:00 2001 From: andrethomas Date: Sat, 7 Jul 2018 00:50:07 +0200 Subject: [PATCH] Updated MCP23008 MCP23017 (markdown) --- MCP23008-MCP23017.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MCP23008-MCP23017.md b/MCP23008-MCP23017.md index 6ec3fb02..592395c2 100644 --- a/MCP23008-MCP23017.md +++ b/MCP23008-MCP23017.md @@ -12,6 +12,10 @@ The chip, can however, be wired up quite easily especially if you can source the ![https://github.com/andrethomas/images/raw/master/mcp230xx/Basic_Circuit1.PNG](https://github.com/andrethomas/images/raw/master/mcp230xx/Basic_Circuit1.PNG) +You will need to pick an I2C address in either of the above scenario's but the driver will detect the address automatically. Address mapping according to pin A0,A1 and A2 as from the datasheet is as follows: + +![https://github.com/andrethomas/images/raw/master/mcp230xx/I2C_Address.png](https://github.com/andrethomas/images/raw/master/mcp230xx/I2C_Address.png) + Although the MCP230xx chips allow for both INPUT and OUTPUT, only INPUT is supported by the driver as the main intention is not to extend output but to provide additional inputs, more specifically - inputs which are 5V tolerant. The driver is disabled by default in the Tasmota firmware but can be enabled by uncommenting the #define USE_MCP230xx line in the user_config.h file, or added to the user_config_override.h file if you are using that option.