tkeksa / lis2dh12

Platform-agnostic Rust driver for the LIS2DH12 accelerometer
Apache License 2.0
5 stars 8 forks source link

Add a register reset function #4

Closed fry closed 2 years ago

fry commented 2 years ago

we had a sensor end up with corrupted config registers during power failure scenarios, so a reset function was added to restore all settings to their default startup state - rebooting the sensor did not appear to reset those for us