62 void setup()
override;
97 void write_value_(uint8_t start_reg,
size_t size, int32_t value);
98 int32_t
read_value_(uint8_t start_reg,
size_t size);
103 template<
typename... Ts>
106 void play(Ts...
x)
override { this->parent_->calibrate_external_offset(); }
109 template<
typename... Ts>
112 void play(Ts...
x)
override { this->parent_->calibrate_internal_offset(); }
117 void play(Ts...
x)
override { this->parent_->calibrate_gain(); }
void set_gain_calibration(float gain_calibration)
void set_samples_per_second(NAU7802SPS sps)
void play(Ts... x) override
void dump_config() override
int32_t offset_calibration_
void set_calibration_failure_(bool failed)
bool offset_calibration_failed_
This class simplifies creating components that periodically check a state.
void set_ldo_voltage(NAU7802LDO ldo)
void set_offset_calibration(int32_t offset_calibration)
bool gain_calibration_failed_
float get_setup_priority() const override
BedjetMode mode
BedJet operating mode.
bool calibrate_(enum NAU7802CalibrationModes mode)
void write_value_(uint8_t start_reg, size_t size, int32_t value)
void play(Ts... x) override
Implementation of SPI Controller mode.
void set_gain(NAU7802Gain gain)
bool calibrate_internal_offset()
int32_t read_value_(uint8_t start_reg, size_t size)
Base-class for all sensors.
bool can_proceed() override
This Class provides the methods to read/write bytes from/to an i2c device.
bool calibrate_external_offset()
Helper class to easily give an object a parent of type T.
void play(Ts... x) override