Skip to content

Accelerometer and Logging Update

Choose a tag to compare

@mbientlab mbientlab released this 14 Oct 18:15
· 114 commits to master since this release

Version 1.1 expands on the accelerometer API and adds an API to interact with the new logging module. The expanded accelerometer API provides builders and explicit functions for configuring the accelerometer functionality and fleshes out the support for existing features.

The logging module requires firmware v0.6.0 or higher.

Changes

Accelerometer

  • Added support for shake, tap, and motion detection
    • Callback functions added: singleTapDetected, doubleTapDetected, shakeDetected
  • Fleshed out the implementation for xyz data sampling, free fall detection, and orientation detection
    • Deprecated inFreeFall, stoppedFreeFall, and receivedOrientation callback functions
    • Replaced with: movementDetected and orientationChanged
  • Added callback function for reading configurations
  • Added functions to explicitly enable different components and builders to configure the detection settings
  • Deprecated old [enable|disable]Notification functions
    • Replaced with [enable|disable]Component

Logging

  • Created API to interact with the new logging module.
    • Implemented callback functions to retrieve log information and download the log from the MetaWear board
    • Provides functions to add and remove logged events
  • Coded sample triggers for offline logging of accelerometer data and switch presses
    • Added functions in the BytesInterpreter class to convert the logged bytes into meaningful data

MetaWearController

  • Added readBatteryLevel function to retrieve the battery level characteristic