components

Module lsm303dlhc

Source
Expand description

Components for the LSM303DLHC sensor.

I2C Interface

§Usage

let lsm303dlhc = components::lsm303dlhc::Lsm303dlhcI2CComponent::new(i2c_mux, board_kernel, driver_num)
   .finalize(components::lsm303dlhc_component_static!());

lsm303dlhc.configure(
   lsm303dlhc::Lsm303dlhcAccelDataRate::DataRate25Hz,
   false,
   lsm303dlhc::Lsm303dlhcScale::Scale2G,
   false,
   true,
   lsm303dlhc::Lsm303dlhcMagnetoDataRate::DataRate3_0Hz,
   lsm303dlhc::Lsm303dlhcRange::Range4_7G,
);

Structs§