View Source SCD30.Utils.I2C (scd30 v0.1.1)

I2C wrappers introducing delays.

SCD30 module seems unable to handle quick write_read, so I had to write those wrappers. The sleep delay is taken from the Adafruit python library : https://github.com/adafruit/Adafruit_CircuitPython_SCD30/blob/11412384a1b3c9b8121c282e49786dd0f9a13f91/adafruit_scd30.py#L281

In the above file, call to python sleep is 50ms, but written as 3ms in comment ? I choosed empirically to use 10ms.

Link to this section Summary

Link to this section Functions

Link to this function

read(i2c_bus, address, bytes_to_read, opts \\ [])

View Source
Link to this function

write(i2c_bus, address, write_data, opts \\ [])

View Source
Link to this function

write_read(i2c_bus, address, write_data, bytes_to_read, opts \\ [])

View Source