37 void setup()
override;
38 void dump_config()
override;
39 void update()
override;
virtual void setup()
Where the component's initialization should happen.
Helper class to request loop() to be called as fast as possible.
This class simplifies creating components that periodically check a state.
This Class provides the methods to read/write bytes from/to an i2c device.
i2c::ErrorCode read_bytes_16_le_(uint8_t a_register, uint16_t *data, uint8_t len=1)
QMC5883LOversampling oversampling_
QMC5883LDatarate datarate_
static void gpio_intr(QMC5883LComponent *arg)
HighFrequencyLoopRequester high_freq_
ErrorCode
Error codes returned by I2CBus and I2CDevice methods.
@ QMC5883L_DATARATE_200_HZ
@ QMC5883L_DATARATE_100_HZ
@ QMC5883L_DATARATE_50_HZ
@ QMC5883L_DATARATE_10_HZ