Expand description
Components for the LSM303DLHC sensor.
I2C Interface
§Usage
let lsm303agr = components::lsm303agr::Lsm303agrI2CComponent::new(mux_i2c, None, None, board_kernel, DRIVER_NUM)
.finalize(components::lsm303agr_component_static!());
lsm303agr.configure(
lsm303agr::Lsm303dlhcAccelDataRate::DataRate25Hz,
false,
lsm303agr::Lsm303dlhcScale::Scale2G,
false,
true,
lsm303agr::Lsm303dlhcMagnetoDataRate::DataRate3_0Hz,
lsm303agr::Lsm303dlhcRange::Range4_7G,
);