adafruit / adafruit/Adafruit_CircuitPython_SCD30

Maybe we can have a dummy start_periodic_measurement() function

Open Beginner friendly
#27 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
17
Forks
13
PR merge metrics
No merged PRs in 30d

Description

SCD4x library has a function:
```
def start_periodic_measurement(self):
"""Put sensor into working mode, about 5s per measurement"""
self._send_command(_SCD4X_STARTPERIODICMEASUREMENT)
```

When porting code from SCD4x to SCD30 you have to wonder about this.
Maybe we could have a dummy function that has that name but does nothing:
```
def start_periodic_measurement(self):
"""Dummy function for forward compatibility with SCD4x library"""
pass
```

This would permit the same code (almost) to work on both kind of sensor.

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the SCD30 library class and its public sensor-control methods, then compare the SCD4x start_periodic_measurement() interface shown in the issue. Done means SCD30 exposes the same callable for forward-compatible code without initiating an additional sensor command; run the library's existing tests or basic examples if available.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
embedded-iot
Issue type
Feature
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.