From 2f5131ec81a3cf8cd7c8e9c994c64a030572cc65 Mon Sep 17 00:00:00 2001 From: Michael Ingraham <34340210+meingraham@users.noreply.github.com> Date: Wed, 2 Oct 2019 11:46:10 -0400 Subject: [PATCH] pinmode 6 --- MCP23008-MCP23017.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MCP23008-MCP23017.md b/MCP23008-MCP23017.md index 397c058a..e8c8abf5 100644 --- a/MCP23008-MCP23017.md +++ b/MCP23008-MCP23017.md @@ -72,7 +72,7 @@ The behavior of all pins on the MCP23008/MCP23017 can be reset to a specific set Command|Parameters -|- -Sensor29|MCP23008 / MCP23017 I2C GPIO Expander configuration
`Reset` = reset all pins
x = `1..5`
`1` = INPUT mode, no reporting, no pull-up
`2` = INPUT mode, report on CHANGE, pull-up enabled
`3` = INPUT mode, report on LOW, pull-up enabled
`4` = INPUT mode, report on HIGH, pull-up enabled
`5` = OUTPUT mode (if enabled by #define USE_MCP230xx_OUTPUT)

`pin,pinmode{,intpullup\|outstate{,repmode}}``pin` = the I/O pin on the MCP230xx chip`pinmode` = operational mode of the pin (`?, 0..5`)`intpullup` *(pinmode `1..4`)*. Pull-up resistors are disabled by default for pin mode `1` whilst enabled by default for pin modes `2..4` (because they are interrupt enabled pins and we do not want signal bounce). The internal pull-up on these pins may be disabled if necessary if you are biasing them externally.`outstate` *(pinmode `5..6`)* = set the default state of an OUTPUT pin on reset/power-up. If your device is configured to save state (`SetOption0 = 1`), the `outstate` setting will be ignored and the last known state of the pin will be applied during power-up/reset.`repmode` = reporting mode (optional). Interrupt mode is disabled for pinmode `1` and for output pinmodes (`5..6`) +Sensor29|MCP23008 / MCP23017 I2C GPIO Expander configuration
`Reset` = reset all pins
x = `1..6`
`1` = INPUT mode, no reporting, no pull-up
`2` = INPUT mode, report on CHANGE, pull-up enabled
`3` = INPUT mode, report on LOW, pull-up enabled
`4` = INPUT mode, report on HIGH, pull-up enabled
`5` = OUTPUT mode (if enabled by `#define USE_MCP230xx_OUTPUT`)
`6` = inverted OUTPUT mode (if enabled by `#define USE_MCP230xx_OUTPUT`)

`pin,pinmode{,intpullup\|outstate{,repmode}}``pin` = the I/O pin on the MCP230xx chip`pinmode` = operational mode of the pin (`?, 0..5`)`intpullup` *(pinmode `1..4`)*. Pull-up resistors are disabled by default for pin mode `1` whilst enabled by default for pin modes `2..4` (because they are interrupt enabled pins and we do not want signal bounce). The internal pull-up on these pins may be disabled if necessary if you are biasing them externally.`outstate` *(pinmode `5..6`)* = set the default state of an OUTPUT pin on reset/power-up. If your device is configured to save state (`SetOption0 = 1`), the `outstate` setting will be ignored and the last known state of the pin will be applied during power-up/reset.`repmode` = reporting mode (optional). Applicable only for pinmode `2..4`. Reporting mode is disabled for pinmode `1` and for output pinmodes (`5..6`) Examples: `Sensor29 Reset1`