mma7660fc

Crates.iomma7660fc
lib.rsmma7660fc
version0.1.2
sourcesrc
created_at2018-04-06 19:34:55.062713
updated_at2018-04-23 16:33:23.651697
descriptionA platform agnostic driver to interface with the MMA7660FC 3-Axis Accelerometer via I2C
homepage
repositoryhttps://github.com/rahul-thakoor/mma7660fc
max_upload_size
id59319
size10,974
Rahul Thakoor (rahul-thakoor)

documentation

README

mma7660fc

A platform agnostic driver to interface with the MMA7660FC 3-Axis Accelerometer via I2C

This chip can be found on Seeed's Grove 3-Axis Digital Accelerometer(±1.5g)

This driver was built using embedded-hal traits.

Documentation

Read the detailed documentation here

What works

  • Read the XOUT register for value of x
  • Read registers XOUT, YOUT and ZOUT to get 6-bits output value for x, y and z
  • Set mode to active or standby
  • Get acceleration within range ±1.5g

TODO

  • Allow to modify sampling rate, currently initialised to 4 samples per second active
  • Get other data such as orientation, tilt, etc
  • Test with stm32f30x-hal, currently only testing with linux-embedded-hal

License

Licensed under either of

at your option.

Resources

The following resources were consulted when making this driver:

Commit count: 33

cargo fmt