eldruin / lsm303agr-rs

Platform agnostic Rust driver for the LSM303AGR ultra-compact high-performance eCompass module: ultra-low-power 3D accelerometer and 3D magnetometer
Apache License 2.0
18 stars 14 forks source link

Allow changing magnetometer mode. #23

Closed reitermarkus closed 2 years ago

reitermarkus commented 2 years ago

Also add necessary mode change delays.

reitermarkus commented 2 years ago

@eldruin, I think changing mode and ODR should be done in one function since the delay depends on both.

eldruin commented 2 years ago

@eldruin, I think changing mode and ODR should be done in one function since the delay depends on both.

Yes, feel free to unite them. If it makes sense for this device, I'm all for it.

reitermarkus commented 2 years ago

@eldruin, can you merge this?

I think it's easier to unify in a follow-up PR.