diff --git a/README.rst b/README.rst index 7c3d9ce..edf0c4a 100644 --- a/README.rst +++ b/README.rst @@ -32,15 +32,10 @@ Then, construct the thermometer class: # Do one reading with busio.I2C(SCL, SDA) as i2c: - t = adafruit_mcp9808.MCP9808(i2c) - -Finally, read the temperature property. - -.. code-block:: python - - # and print it out - print(t.temperature) + t = adafruit_mcp9808.MCP9808(i2c) + # Finally, read the temperature property and print it out + print(t.temperature) API Reference =============