19 void setup()
override;
28 void set_abc(
bool enabled, uint8_t cycle_days, uint16_t baseline_ppm) {
35 bool cm1106_write_command_(
const uint8_t *command,
size_t command_len, uint8_t *response,
size_t response_len);
This class simplifies creating components that periodically check a state.
bool send_command_expect_ack_(const uint8_t *command, size_t command_len, const uint8_t *ack)
Sends a command and checks the sensor's four byte acknowledgement, updating the warning status.
void calibrate_zero(uint16_t ppm)
void abc_set_(bool enabled)
void dump_config() override
CM1106ABCLogic abc_boot_logic_
bool cm1106_write_command_(const uint8_t *command, size_t command_len, uint8_t *response, size_t response_len)
void set_co2_sensor(sensor::Sensor *co2_sensor)
sensor::Sensor * co2_sensor_
void set_abc(bool enabled, uint8_t cycle_days, uint16_t baseline_ppm)
Base-class for all sensors.