Skip to content

Commit c3f563e

Browse files
Errata
1 parent 8a7a477 commit c3f563e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

EasyMCP2221/MCP2221.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,8 @@ def read_flash_info(self, raw=False, human=False):
362362
If ``False``, return only parsed data (this is the default).
363363
If ``True``, return all data unparsed.
364364
human (bool, optional):
365-
If ``True``, return variable names in readable text. (this is the default).
366-
If ``False``, return variable names untranslated, for API.
365+
If ``False``, return variable names untranslated, for API (this is the default).
366+
If ``True``, return variable names in readable text.
367367
368368
Return:
369369
dict: Flash data (parsed or raw)
@@ -1316,7 +1316,7 @@ def IOC_clear(self):
13161316
self.SRAM_config(int_conf = INT_FLAG_CLEAR)
13171317

13181318

1319-
def IOC_config(self, edge = "none"):
1319+
def IOC_config(self, edge = "both"):
13201320
""" Configure Interruption On Change edge.
13211321
13221322
Valid values for ``edge``:
@@ -1334,7 +1334,7 @@ def IOC_config(self, edge = "none"):
13341334
ValueError: if edge detection value is not valid.
13351335
13361336
Example:
1337-
>>> mcp.IOC_config("both")
1337+
>>> mcp.IOC_config(edge = "rising")
13381338
>>>
13391339
13401340
See also:

docs/source/api_reference.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ DAC - Analog output
4040
Interrupt On Change
4141
-------------------
4242

43-
.. autofunction:: EasyMCP2221.Device.IOC_config()
44-
.. autofunction:: EasyMCP2221.Device.IOC_read()
45-
.. autofunction:: EasyMCP2221.Device.IOC_clear()
43+
.. autofunction:: EasyMCP2221.Device.IOC_config
44+
.. autofunction:: EasyMCP2221.Device.IOC_read
45+
.. autofunction:: EasyMCP2221.Device.IOC_clear
4646

4747

4848
Clock output

0 commit comments

Comments
 (0)