这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on May 17, 2021. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bundles/binding/org.openhab.binding.mcp23017/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ Since MCP23017 is digital IO expander on I2C bus, only two types of items are su
Contact Test1 "Test 1" (Tests) { mcp23017="{ address:21, pin:'A0', mode:'DIGITAL_INPUT'}" }
```

configures pin 0 at bank A (GPA0 on datasheet) as input of the IC on address 0x20
configures pin 0 at bank A (GPA0 on datasheet) as input of the IC on address 0x21

```
Switch Test2 "Test 2" (Tests) { mcp23017="{ address:21, pin:'B1', mode:'DIGITAL_OUTPUT', defaultState:'LOW'}" }
```

configures pin 1 at bank B (GPB1 on datasheet) as output of the IC on adress 0x21
configures pin 1 at bank B (GPB1 on datasheet) as output of the IC on adress 0x21