/l3gd20

A platform agnostic driver to interface with the L3GD20 (gyroscope)

Primary LanguageRustApache License 2.0Apache-2.0

l3gd20

A platform agnostic driver to interface with the L3GD20 (gyroscope)

What works

  • Reading the gyroscope and temperature sensor
  • Reading the WHO_AM_I register

TODO

  • Make sure this works with the spidev crate (i.e. with the Raspberry Pi)
  • Configuration. e.g. selecting the gyroscope sensing range / sensitivity.
  • How to make the API compatible with device specific features like DMA and interrupts?
  • ???

Examples

You should find at least one example in the f3 crate.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.