mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-01-11 20:02:12 +01:00
Updated MCP23017 Component To Cover 8 & 16 Port Chips (#277)
* Updated MCP23017 Component To Cover 8 & 16 Port Chips * Made requested changes, adding short paragraph at top of MCP230xx.rst explaining the page is for MCP23008 and MCP23017, also deleted now obsolete MCP23017.rst * Added separate sections for MCP23017, MCP23008 * Remove MCP23017 page (merged with new one) Co-authored-by: Otto Winter <otto@otto-winter.com>
This commit is contained in:
parent
9ff3e95aab
commit
efec2a7fbf
@ -1,9 +1,16 @@
|
||||
MCP23017 I/O Expander
|
||||
MCP230xx I/O Expander
|
||||
=====================
|
||||
|
||||
.. seo::
|
||||
:description: Instructions for setting up MCP23017 digital port expanders in ESPHome.
|
||||
:image: mcp23017.png
|
||||
:description: Instructions for setting up MCP23017 or MCP23008 digital port expanders in ESPHome.
|
||||
:image: mcp230xx.png
|
||||
|
||||
The Microchip MCP230xx series of general purpose, parallel I/O expansion for I²C
|
||||
bus applications come in two different variants: the 8-bit MCP23008 and the 16-bit
|
||||
MCP23017, which provide 8 and 16 additional GPIO pins, respectively.
|
||||
|
||||
MCP23017
|
||||
--------
|
||||
|
||||
The MCP23017 component allows you to use MCP23017 I/O expanders
|
||||
(`datasheet <http://ww1.microchip.com/downloads/en/devicedoc/20001952c.pdf>`__,
|
||||
@ -41,6 +48,43 @@ Configuration variables:
|
||||
- **address** (*Optional*, int): The I²C address of the driver.
|
||||
Defaults to ``0x21``.
|
||||
|
||||
|
||||
|
||||
MCP23008
|
||||
--------
|
||||
|
||||
The configuration is essentially the same with the MCP23008 component
|
||||
(`datasheet <http://ww1.microchip.com/downloads/en/devicedoc/21919e.pdf>`__,
|
||||
`Adafruit <https://www.adafruit.com/product/593>`__):
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
# Example configuration entry
|
||||
mcp23008:
|
||||
- id: 'mcp23008_hub'
|
||||
address: 0x20
|
||||
|
||||
# Individual outputs
|
||||
switch:
|
||||
- platform: gpio
|
||||
name: "MCP23008 Pin #0"
|
||||
pin:
|
||||
mcp23008: mcp23008_hub
|
||||
# Use pin number 0
|
||||
number: 0
|
||||
# One of INPUT, INPUT_PULLUP or OUTPUT
|
||||
mode: INPUT_PULLUP
|
||||
inverted: False
|
||||
|
||||
|
||||
Configuration variables:
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
- **id** (**Required**, :ref:`config-id`): The id to use for this MCP23008 component.
|
||||
- **address** (*Optional*, int): The I²C address of the driver.
|
||||
Defaults to ``0x21``.
|
||||
|
||||
|
||||
See Also
|
||||
--------
|
||||
|
||||
@ -49,3 +93,4 @@ See Also
|
||||
- :doc:`binary_sensor/gpio`
|
||||
- :apiref:`mcp23017/mcp23017.h`
|
||||
- :ghedit:`Edit`
|
||||
|
67
images/mcp230xx.svg
Normal file
67
images/mcp230xx.svg
Normal file
@ -0,0 +1,67 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="301px" height="61px" viewBox="0 0 301 61" enable-background="new 0 0 301 61" xml:space="preserve"> <image id="image0" width="301" height="61" x="0" y="0"
|
||||
xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAS0AAAA9CAQAAABSS/dKAAAABGdBTUEAALGPC/xhBQAAACBjSFJN
|
||||
AAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAHdElN
|
||||
RQfjBhMWMDqQCf7eAAAM80lEQVR42u1daXRV1RX+XiYSkjAEUBeCAUEIiiHoqrKYloWKWmNwKaIC
|
||||
tVpFGQpdyzI4IKJCLaEOgBE6LLussVIKioBWZHKgLHEqAgKa4AAWq4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zwP8D3/NESz/d
|
||||
XVUEsAk/djkfbVK0Qh76ICd04ORRlGOvxTb8/x10Rx5y0A5tQdSgAl+4PiizFS7GheiATFShAjvx
|
||||
6Zl94OTmAGbhsea2wkcLxENJ4htPHz4SxUb/3HgfTYPWSahFSXNb4aPFoQS1/v/o8dEUyMX+ZADH
|
||||
kRHKrPXhwwvMx0r//yH68B6h/4cYdKg6YXuxDx/xIS94OE+4ryo7bRtqfLRsXBL898DGTJee2OP/
|
||||
Y3MfCaAefSJpyIYZVjnaWG6q8eHDCsVoE3Us826nemzAc0jDZc1tpY8zDCUYhZXGl57yoSnpKMBw
|
||||
DEM+2ltutfPx/4wGHMUObMJGbBdO1cR/AbmyVrLSS/BOAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE5
|
||||
LTA2LTE5VDIzOjEyOjEzKzAxOjAwzzIJeQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxOS0wNi0xOVQy
|
||||
MzowODozNCswMTowMO9Bxz8AAAAASUVORK5CYII=" />
|
||||
</svg>
|
After Width: | Height: | Size: 5.2 KiB |
@ -302,7 +302,7 @@ Misc Components
|
||||
Servo, components/servo, servo.svg
|
||||
|
||||
PCF8574 I/O Expander, components/pcf8574, pcf8574.jpg
|
||||
MCP23017 I/O Expander, components/mcp23017, mcp23017.svg
|
||||
MCP230XX I/O Expander, components/mcp230xx, mcp230xx.svg
|
||||
SIM800L, components/sim800l, sim800l.jpg
|
||||
|
||||
Captive Portal, components/captive_portal, wifi-strength-alert-outline.svg
|
||||
|
BIN
svg2png/mcp230xx.png
Normal file
BIN
svg2png/mcp230xx.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.2 KiB |
Loading…
Reference in New Issue
Block a user