File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 66import board
77import adafruit_sht4x
88
9- i2c = board .I2C ()
9+ i2c = board .I2C () # uses board.SCL and board.SDA
1010sht = adafruit_sht4x .SHT4x (i2c )
1111print ("Found SHT4x with serial number" , hex (sht .serial_number ))
1212
You can’t perform that action at this time.
0 commit comments