Updated MCP23008 MCP23017 (markdown)

andrethomas 2018-07-07 00:50:07 +02:00
parent 69be56557a
commit b893090d52
1 changed files with 4 additions and 0 deletions

@ -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) ![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. 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. 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.