Skip to content

Commit d269218

Browse files
Merge pull request #7 from jposada202020/correcting_print
correcting_debug_print
2 parents 67827bd + 99fe99f commit d269218

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ To install in a virtual environment in your current project:
5959
Usage Example
6060
=============
6161

62-
.. code-block:: python
62+
.. code-block:: python3
6363
6464
import time
6565
import board

adafruit_sht4x.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,16 @@
1515
1616
**Hardware:**
1717
18-
* Adafruit's SHT40 Temperature & Humidity Sensor: https://www.adafruit.com/product/4885
18+
* `Adafruit SHT40 Temperature & Humidity Sensor
19+
<https://www.adafruit.com/product/4885>`_ (Product ID: 4885)
1920
2021
**Software and Dependencies:**
2122
2223
* Adafruit CircuitPython firmware for the supported boards:
2324
https://circuitpython.org/downloads
2425
25-
* Adafruit's Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
26+
* Adafruit's Bus Device library:
27+
https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
2628
2729
"""
2830

@@ -165,7 +167,7 @@ def mode(self):
165167

166168
@mode.setter
167169
def mode(self, new_mode):
168-
print(new_mode)
170+
169171
if not Mode.is_valid(new_mode):
170172
raise AttributeError("mode must be a Mode")
171173
self._mode = new_mode

examples/sht4x_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import board
77
import adafruit_sht4x
88

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

0 commit comments

Comments
 (0)