SCD30 Added support for manual calibration (#4362)

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
Florian Trück
2023-02-03 09:13:27 +01:00
committed by GitHub
parent 8d6ffb9169
commit 6b7b076875
4 changed files with 78 additions and 1 deletions
+3
View File
@@ -20,6 +20,8 @@ class SCD30Component : public Component, public sensirion_common::SensirionI2CDe
}
void set_temperature_offset(float offset) { temperature_offset_ = offset; }
void set_update_interval(uint16_t interval) { update_interval_ = interval; }
bool force_recalibration_with_reference(uint16_t co2_reference);
uint16_t get_forced_calibration_reference();
void setup() override;
void update();
@@ -33,6 +35,7 @@ class SCD30Component : public Component, public sensirion_common::SensirionI2CDe
COMMUNICATION_FAILED,
FIRMWARE_IDENTIFICATION_FAILED,
MEASUREMENT_INIT_FAILED,
FORCE_RECALIBRATION_FAILED,
UNKNOWN
} error_code_{UNKNOWN};
bool enable_asc_{true};