adafruit / Adafruit_CircuitPython_SCD4X

CircuitPython/Python driver for Sensirion SCD40 & SCD41
MIT License
19 stars 10 forks source link

Add start low power periodic measurement #6

Closed enosh closed 2 years ago

enosh commented 3 years ago

Saw this command in the data sheet and wanted to use it. The function name is start_low_periodic_measurement instead of start_low_power_periodic_measurement to fit the length pylint wants.

Tested with a Feather RP2040 and the new SCD40 STEMMA QT breakout. Around 30 seconds between measurements. Screen Shot 2021-08-19 at 23 06 48

First time submitter! Hope I'm not missing anything.

kattni commented 3 years ago

@enosh Thanks for your contribution! I am working with this sensor and will test it either today or Tuesday. Running CI now, which will verify syntax and formatting, etc.

ladyada commented 3 years ago

didnt test but lgtm

enosh commented 2 years ago

I used start_periodic_measurement for reference which also has no delay specified in the datasheet. Just tested both without a delay and it doesn't seem to make a difference. But I assume a delay wouldn't hurt, right?