adafruit / Adafruit_CircuitPython_SCD30

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

Errno 19 for few minutes run #12

Closed cw1812 closed 3 years ago

cw1812 commented 3 years ago

File "adafruit_scd30.py", line 183, in CO2 File "adafruit_scd30.py", line 234, in _read_data File "adafruit_scd30.py", line 221, in _send_command File "adafruit_scd30.py", line 221, in _send_command OSError: [Errno 19] Unsupported operation

ladyada commented 3 years ago

please post in forums, with detailed information

kevinjwalters commented 3 years ago

The forum post for this is Adafruit Forums: Errno19 after few minutes running. The program running on an ESP32-S2 has an extra scd.data_available call immediately beforehand with no intervening statements:

    #Read SCD30
    if scd.data_available :
        label_scd2.text = str(int(scd.CO2))
        print("CO2:", scd.CO2, "ppm")

There's a slightly different SCD-30 with Pi 4 issue reported on Adafruit Forums: SCD-30 I2C detection error on Raspberry Pi 4B.