Skip to content

Commit

Permalink
Errata
Browse files Browse the repository at this point in the history
  • Loading branch information
electronicayciencia committed May 29, 2023
1 parent 8a7a477 commit c3f563e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions EasyMCP2221/MCP2221.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,8 @@ def read_flash_info(self, raw=False, human=False):
If ``False``, return only parsed data (this is the default).
If ``True``, return all data unparsed.
human (bool, optional):
If ``True``, return variable names in readable text. (this is the default).
If ``False``, return variable names untranslated, for API.
If ``False``, return variable names untranslated, for API (this is the default).
If ``True``, return variable names in readable text.
Return:
dict: Flash data (parsed or raw)
Expand Down Expand Up @@ -1316,7 +1316,7 @@ def IOC_clear(self):
self.SRAM_config(int_conf = INT_FLAG_CLEAR)


def IOC_config(self, edge = "none"):
def IOC_config(self, edge = "both"):
""" Configure Interruption On Change edge.
Valid values for ``edge``:
Expand All @@ -1334,7 +1334,7 @@ def IOC_config(self, edge = "none"):
ValueError: if edge detection value is not valid.
Example:
>>> mcp.IOC_config("both")
>>> mcp.IOC_config(edge = "rising")
>>>
See also:
Expand Down
6 changes: 3 additions & 3 deletions docs/source/api_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ DAC - Analog output
Interrupt On Change
-------------------

.. autofunction:: EasyMCP2221.Device.IOC_config()
.. autofunction:: EasyMCP2221.Device.IOC_read()
.. autofunction:: EasyMCP2221.Device.IOC_clear()
.. autofunction:: EasyMCP2221.Device.IOC_config
.. autofunction:: EasyMCP2221.Device.IOC_read
.. autofunction:: EasyMCP2221.Device.IOC_clear


Clock output
Expand Down

0 comments on commit c3f563e

Please sign in to comment.