File tree 3 files changed +10
-7
lines changed
3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -59,14 +59,14 @@ To install in a virtual environment in your current project:
59
59
Usage Example
60
60
=============
61
61
62
- .. code-block :: python
62
+ .. code-block :: python3
63
63
64
64
import time
65
65
import board
66
66
import adafruit_ahtx0
67
67
68
68
# Create sensor object, communicating over the board's default I2C bus
69
- i2c = board.I2C()
69
+ i2c = board.I2C() # uses board.SCL and board.SDA
70
70
sensor = adafruit_ahtx0.AHTx0(i2c)
71
71
72
72
while True:
Original file line number Diff line number Diff line change 16
16
17
17
**Hardware:**
18
18
19
- * This is a library for the Adafruit AHT20 Temperature & Humidity Sensor breakout:
20
- https://www.adafruit.com/product/4566
19
+ * ` Adafruit AHT20 Temperature & Humidity Sensor breakout:
20
+ < https://www.adafruit.com/product/4566>`_ (Product ID: 4566)
21
21
22
22
**Software and Dependencies:**
23
23
24
24
* Adafruit CircuitPython firmware for the supported boards:
25
- https://github.com/adafruit/circuitpython/releases
26
- * Adafruit's Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
25
+ https://circuitpython.org/downloads
26
+
27
+ * Adafruit's Bus Device library:
28
+ https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
29
+
27
30
"""
28
31
29
32
import time
Original file line number Diff line number Diff line change 10
10
import adafruit_ahtx0
11
11
12
12
# Create sensor object, communicating over the board's default I2C bus
13
- i2c = board .I2C ()
13
+ i2c = board .I2C () # uses board.SCL and board.SDA
14
14
sensor = adafruit_ahtx0 .AHTx0 (i2c )
15
15
16
16
while True :
You can’t perform that action at this time.
0 commit comments