adafruit / Adafruit_CircuitPython_SCD30

Helper library for the SCD30 e-CO2 sensor
MIT License
15 stars 10 forks source link

Example results in 'Unsupported baudrate' with Feather M0 & CircuitPython v7.3.3 #33

Open pushbuttondesign opened 1 year ago

pushbuttondesign commented 1 year ago

ERROR DESCRIPTION:

CIRCUIT:

CODE:

import adafruit_scd30, time, board, busio

#i2c = board.I2C()     #  this works
#i2c = busio.I2C(board.SCL, board.SDA, frequency=100000)   #  this works
i2c = busio.I2C(board.SCL, board.SDA, frequency=50000)  #  this does not work
scd30 = adafruit_scd30.SCD30(i2c)

time.sleep(5)
print("CO2: %d PPM" % scd30.CO2)

CODE OUTPUT: ValueError: Unsupported baudrate