From c3f563e32413d91af88b1cd611f66f2fec1e6ce7 Mon Sep 17 00:00:00 2001 From: Electronica y Ciencia Date: Mon, 29 May 2023 16:52:19 +0200 Subject: [PATCH] Errata --- EasyMCP2221/MCP2221.py | 8 ++++---- docs/source/api_reference.rst | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/EasyMCP2221/MCP2221.py b/EasyMCP2221/MCP2221.py index 2add54a..29cb9b3 100644 --- a/EasyMCP2221/MCP2221.py +++ b/EasyMCP2221/MCP2221.py @@ -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) @@ -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``: @@ -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: diff --git a/docs/source/api_reference.rst b/docs/source/api_reference.rst index 5f9a5de..2bc773f 100644 --- a/docs/source/api_reference.rst +++ b/docs/source/api_reference.rst @@ -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