File tree 4 files changed +10
-7
lines changed 4 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -59,13 +59,13 @@ 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_pct2075
67
67
68
- i2c = board.I2C()
68
+ i2c = board.I2C() # uses board.SCL and board.SDA
69
69
pct = adafruit_pct2075.PCT2075(i2c)
70
70
71
71
while True:
Original file line number Diff line number Diff line change 16
16
17
17
**Hardware:**
18
18
19
- * Adafruit PCT2075 Temperature Sensor Breakout: https://www.adafruit.com/products/4369
19
+ * `Adafruit PCT2075 Temperature Sensor Breakout
20
+ <https://www.adafruit.com/products/4369>`_ (Product ID: 4369)
20
21
21
22
**Software and Dependencies:**
22
23
23
24
* Adafruit CircuitPython firmware for the supported boards:
24
25
https://circuitpython.org/downloads
25
26
27
+ * Adafruit's Bus Device library:
28
+ https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
26
29
30
+ * Adafruit's Register library:
31
+ https://github.com/adafruit/Adafruit_CircuitPython_Register
27
32
28
- * Adafruit's Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
29
- * Adafruit's Register library: https://github.com/adafruit/Adafruit_CircuitPython_Register
30
33
"""
31
34
32
35
from adafruit_register .i2c_struct import ROUnaryStruct , UnaryStruct
Original file line number Diff line number Diff line change 5
5
import board
6
6
import adafruit_pct2075
7
7
8
- i2c = board .I2C ()
8
+ i2c = board .I2C () # uses board.SCL and board.SDA
9
9
pct = adafruit_pct2075 .PCT2075 (i2c )
10
10
11
11
pct .high_temperature_threshold = 35.5
Original file line number Diff line number Diff line change 5
5
import board
6
6
import adafruit_pct2075
7
7
8
- i2c = board .I2C ()
8
+ i2c = board .I2C () # uses board.SCL and board.SDA
9
9
pct = adafruit_pct2075 .PCT2075 (i2c )
10
10
11
11
while True :
You can’t perform that action at this time.
0 commit comments