diff --git a/README.rst b/README.rst index 978dbd7..a414a68 100644 --- a/README.rst +++ b/README.rst @@ -59,13 +59,13 @@ To install in a virtual environment in your current project: Usage Example ============= -.. code-block:: python +.. code-block:: python3 import time import board import adafruit_pct2075 - i2c = board.I2C() + i2c = board.I2C() # uses board.SCL and board.SDA pct = adafruit_pct2075.PCT2075(i2c) while True: diff --git a/adafruit_pct2075.py b/adafruit_pct2075.py index ef72a6d..7169073 100644 --- a/adafruit_pct2075.py +++ b/adafruit_pct2075.py @@ -16,17 +16,20 @@ **Hardware:** -* Adafruit PCT2075 Temperature Sensor Breakout: https://www.adafruit.com/products/4369 +* `Adafruit PCT2075 Temperature Sensor Breakout + `_ (Product ID: 4369) **Software and Dependencies:** * Adafruit CircuitPython firmware for the supported boards: https://circuitpython.org/downloads +* Adafruit's Bus Device library: + https://github.com/adafruit/Adafruit_CircuitPython_BusDevice +* Adafruit's Register library: + https://github.com/adafruit/Adafruit_CircuitPython_Register -* Adafruit's Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice -* Adafruit's Register library: https://github.com/adafruit/Adafruit_CircuitPython_Register """ from adafruit_register.i2c_struct import ROUnaryStruct, UnaryStruct diff --git a/examples/pct2075_high_temp_alert_example.py b/examples/pct2075_high_temp_alert_example.py index 3f535c5..2ec4e88 100644 --- a/examples/pct2075_high_temp_alert_example.py +++ b/examples/pct2075_high_temp_alert_example.py @@ -5,7 +5,7 @@ import board import adafruit_pct2075 -i2c = board.I2C() +i2c = board.I2C() # uses board.SCL and board.SDA pct = adafruit_pct2075.PCT2075(i2c) pct.high_temperature_threshold = 35.5 diff --git a/examples/pct2075_simpletest.py b/examples/pct2075_simpletest.py index cd05e9d..99219f1 100755 --- a/examples/pct2075_simpletest.py +++ b/examples/pct2075_simpletest.py @@ -5,7 +5,7 @@ import board import adafruit_pct2075 -i2c = board.I2C() +i2c = board.I2C() # uses board.SCL and board.SDA pct = adafruit_pct2075.PCT2075(i2c) while True: