From 11d3b2ee4428c4632475f8bd4ca7d313b20a4310 Mon Sep 17 00:00:00 2001 From: ncguk Date: Wed, 6 Sep 2017 22:34:43 +0100 Subject: [PATCH 1/3] Clarify code indents When I started using this library I copied and pasted the code in the README into the CircuitPython REPL but got stuck because the `print` statement didn't appear to be indented in the code block. I've added four spaces to the appropriate lines to make this clearer. --- README.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 7c3d9ce..85366d7 100644 --- a/README.rst +++ b/README.rst @@ -32,14 +32,14 @@ Then, construct the thermometer class: # Do one reading with busio.I2C(SCL, SDA) as i2c: - t = adafruit_mcp9808.MCP9808(i2c) + t = adafruit_mcp9808.MCP9808(i2c) Finally, read the temperature property. .. code-block:: python - # and print it out - print(t.temperature) + # and print it out + print(t.temperature) API Reference From f1aacad06eca25fba4dc60141cc6a0136a66fa38 Mon Sep 17 00:00:00 2001 From: ncguk Date: Wed, 6 Sep 2017 23:21:59 +0100 Subject: [PATCH 2/3] Update README.rst --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 85366d7..9a2f762 100644 --- a/README.rst +++ b/README.rst @@ -38,7 +38,7 @@ Finally, read the temperature property. .. code-block:: python - # and print it out + # and print it out print(t.temperature) From 1f6285eb61ff387802189d240813919a9aa704e3 Mon Sep 17 00:00:00 2001 From: ncguk Date: Wed, 6 Sep 2017 23:37:00 +0100 Subject: [PATCH 3/3] Update README.rst --- README.rst | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/README.rst b/README.rst index 9a2f762..edf0c4a 100644 --- a/README.rst +++ b/README.rst @@ -34,14 +34,9 @@ Then, construct the thermometer class: with busio.I2C(SCL, SDA) as i2c: t = adafruit_mcp9808.MCP9808(i2c) -Finally, read the temperature property. - -.. code-block:: python - - # and print it out + # Finally, read the temperature property and print it out print(t.temperature) - API Reference =============