Updated MCP23008 MCP23017 (markdown)

Michael Ingraham 2019-06-14 15:01:53 -04:00
parent 97e4a35104
commit c970a588c4
1 changed files with 4 additions and 4 deletions

@ -18,7 +18,7 @@ You will need to pick an I2C address in either of the above scenario's using the
![MCP23008 / MCP23017 I2C Address Map](https://github.com/andrethomas/images/blob/master/mcp230xx/i2c_address_map.png)
You will need to define the address you are using in the user_config.h or user_config_override.h (if you use that method) for the driver to know which address the MCP23008/MCP23017 is expected to be found.
You will need to define the address you are using in user_config_override.h for the driver to know which address the MCP23008/MCP23017 is expected to be found.
`#define USE_MCP230xx_ADDR 0x20`
@ -28,7 +28,7 @@ OUTPUT functionality is however available as pinmode 5 (Documented later in this
The driver is disabled by default in the Tasmota firmware so the only way to gain its use would be to perform a manual compilation of your own firmware.
There are three different levels in which functionality may be enabled, in the following order, by removing the remove the comment (#) out the relevant lines in the user_config.h file (or added to the user_config_override.h file if you are using that option.)
There are three different levels in which functionality may be enabled, in the following order, by removing the remove the comment (#) out the relevant lines in user_config_override.h.)
```
#define USE_MCP230xx // Enable INPUT mode (pinmode 1 through 4)
#define USE_MCP230xx_OUTPUT // Enable OUTPUT mode (pinmode 5)
@ -63,7 +63,7 @@ If you do not find it, check your wiring and pin configuration.
The configuration of MCP23008/MCP23017 by using sensor29 commands via serial, web console or MQTT messages
In order to use the MCP23008/MCP23017 in your build you need to remove the comment (#) for the following two lines in your user_config.h or user_config_override.h as the MCP chip support is not enabled by default
In order to use the MCP23008/MCP23017 in your build you need to remove the comment (#) for the following two lines in your user_config_override.h as the MCP chip support is not enabled by default
```
#define USE_MCP230xx
@ -353,7 +353,7 @@ sensor29 intretain,pin,x // Enable/Disable interrupt counting for pin (x=0=O
***
### OUTPUT FUNCTIONS (PIN MODES 5 AND 6)
Enable OUTPUT support by removing the comment (#) for the following compiler directive to your user_config.h
Enable OUTPUT support by removing the comment (#) for the following compiler directive to your user_config_override.h
`#define USE_MCP230xx_OUTPUT`