Skip to content

Commit 4aede41

Browse files
committed
have two options
1 parent ddece4b commit 4aede41

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/scd30_simpletest.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
import adafruit_scd30
88

99
# SCD-30 has tempremental I2C with clock stretching, and delays
10-
# It's best to start using I2C clock 1000 Hz and then you can increase it
10+
# It's best to start using I2C clock slower and then you can increase it
1111
# until the sensor stops responding (NAK fails, etc)
12-
i2c = busio.I2C(board.SCL, board.SDA, frequency=1000)
12+
#i2c = busio.I2C(board.SCL, board.SDA, frequency=1000) # for FT232H, use 1KHz
13+
i2c = busio.I2C(board.SCL, board.SDA, frequency=50000) # for MCP2221 and others, use 50KHz
1314
scd = adafruit_scd30.SCD30(i2c)
1415

1516
while True:

0 commit comments

Comments
 (0)