Skip to content

Commit

Permalink
updating_docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jposada202020 committed Feb 6, 2023
1 parent 5ecd32a commit 28dea2c
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 0 deletions.
9 changes: 9 additions & 0 deletions adafruit_mcp230xx/mcp23008.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@
CircuitPython module for the MCP23008 I2C I/O extenders.
* Author(s): Tony DiCola
Implementation Notes
--------------------
**Hardware:**
* `MCP23008 - i2c 8 input/output port expander
<https://www.adafruit.com/product/593>`_
"""

from micropython import const
Expand Down
12 changes: 12 additions & 0 deletions adafruit_mcp230xx/mcp23017.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@
CircuitPython module for the MCP23017 I2C I/O extenders.
* Author(s): Tony DiCola
Implementation Notes
--------------------
**Hardware:**
* `MCP23017 - i2c 16 input/output port expander
<https://www.adafruit.com/product/732>`_
* `Adafruit MCP23017 I2C GPIO Expander Breakout - STEMMA QT / Qwiic
<https://www.adafruit.com/product/5346>`_
"""

from micropython import const
Expand Down
6 changes: 6 additions & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@
.. If your library file(s) are nested in a directory (e.g. /adafruit_foo/foo.py)
.. use this format as the module name: "adafruit_foo.foo"
.. automodule:: adafruit_mcp230xx.mcp23xxx
:members:

.. automodule:: adafruit_mcp230xx.mcp230xx
:members:

.. automodule:: adafruit_mcp230xx.mcp23008
:members:

.. automodule:: adafruit_mcp230xx.mcp23016
:members:

.. automodule:: adafruit_mcp230xx.mcp23017
:members:

Expand Down
44 changes: 44 additions & 0 deletions docs/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,50 @@ Ensure your device works with this simple test.
:caption: examples/mcp230xx_simpletest.py
:linenos:

MCP23Sxx Simple test
---------------------

Simple demo of reading and writing the digital I/O of the MCP2300xx as if
they were native CircuitPython digital inputs/outputs.

.. literalinclude:: ../examples/mcp23Sxx_simpletest.py
:caption: examples/mcp23Sxx_simpletest.py
:linenos:

MCP230xx Event detect interrupt
-------------------------------

Example showing the event detect interrupt feature


.. literalinclude:: ../examples/mcp230xx_event_detect_interrupt.py
:caption: examples/mcp230xx_event_detect_interrupt.py
:linenos:

MCP23Sxx Event detect interrupt
-------------------------------

Example showing the event detect interrupt feature


.. literalinclude:: ../examples/mcp23Sxx_event_detect_interrupt.py
:caption: examples/mcp23Sxx_event_detect_interrupt.py
:linenos:

MCP230xx LEDs and Buttons
-------------------------------

LEDs and buttons example for the MCP230xx

.. literalinclude:: ../examples/mcp230xx_leds_and_buttons.py
:caption: examples/mcp230xx_leds_and_buttons.py
:linenos:

MCP23Sxx LEDs and Buttons
-----------------------------

LEDs and buttons example for the MCP23Sxx

.. literalinclude:: ../examples/mcp230xx_leds_and_buttons_irq.py
:caption: examples/mcp230xx_leds_and_buttons_irq.py
:linenos:

0 comments on commit 28dea2c

Please sign in to comment.