Skip to content

Commit 705e0a0

Browse files
authored
[mcp23016] Add interrupt_pin documentation (#6432)
1 parent cd7f66b commit 705e0a0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/content/docs/components/mcp230xx.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ has 16 GPIOs and can be configured the same way than the other variants.
9191
mcp23016:
9292
- id: 'mcp23016_hub'
9393
address: 0x20
94+
interrupt_pin: GPIOXX
9495
9596
# Individual outputs
9697
switch:
@@ -122,6 +123,11 @@ binary_sensor:
122123
- **id** (**Required**, [ID](/guides/configuration-types#id)): The id to use for this MCP23016 component.
123124
- **address** (*Optional*, int): The I²C address of the driver.
124125
Defaults to `0x20`.
126+
- **interrupt_pin** (*Optional*, [Pin Schema](/guides/configuration-types#pin-schema)): The pin connected to the
127+
INT output of the MCP23016. When configured, the component becomes interrupt-driven instead of
128+
polling — it only reads the chip when a pin actually changes state, significantly reducing I²C bus traffic
129+
and CPU usage. The INT pin is active-low and open-drain, so an external or internal pull-up resistor is
130+
required. Must be an internal GPIO pin (not another expander pin).
125131

126132
### Pin configuration variables
127133

0 commit comments

Comments
 (0)