Skip to content

Commit f9b6856

Browse files
committed
Use slower I2C clock in README.rst as per e7d04a6
I had previously used the example in README.rst without this, and had reads fail after a few hours of use (updating every 2 seconds as default).
1 parent 2c61b7c commit f9b6856

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ Usage Example
6666
import board
6767
import adafruit_scd30
6868
69-
i2c = board.I2C() # uses board.SCL and board.SDA
69+
# SCD-30 has tempremental I2C with clock stretching, datasheet recommends
70+
# starting at 50KHz
71+
i2c = busio.I2C(board.SCL, board.SDA,frequency=50000)
7072
scd = adafruit_scd30.SCD30(i2c)
7173
7274
while True:

0 commit comments

Comments
 (0)