File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/content/docs/components Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ has 16 GPIOs and can be configured the same way than the other variants.
9191mcp23016:
9292 - id: 'mcp23016_hub'
9393 address: 0x20
94+ interrupt_pin: GPIOXX
9495
9596# Individual outputs
9697switch:
@@ -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
You can’t perform that action at this time.
0 commit comments