Skip to content

correcting_debug_print #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ To install in a virtual environment in your current project:
Usage Example
=============

.. code-block:: python
.. code-block:: python3

import time
import board
Expand Down
8 changes: 5 additions & 3 deletions adafruit_sht4x.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@

**Hardware:**

* Adafruit's SHT40 Temperature & Humidity Sensor: https://www.adafruit.com/product/4885
* `Adafruit SHT40 Temperature & Humidity Sensor
<https://www.adafruit.com/product/4885>`_ (Product ID: 4885)

**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 Bus Device library:
https://github.com/adafruit/Adafruit_CircuitPython_BusDevice

"""

Expand Down Expand Up @@ -165,7 +167,7 @@ def mode(self):

@mode.setter
def mode(self, new_mode):
print(new_mode)

if not Mode.is_valid(new_mode):
raise AttributeError("mode must be a Mode")
self._mode = new_mode
Expand Down
2 changes: 1 addition & 1 deletion examples/sht4x_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import board
import adafruit_sht4x

i2c = board.I2C()
i2c = board.I2C() # uses board.SCL and board.SDA
sht = adafruit_sht4x.SHT4x(i2c)
print("Found SHT4x with serial number", hex(sht.serial_number))

Expand Down