Skip to content

Update for Firmware v1.0.0 support

Choose a tag to compare

@mbientlab mbientlab released this 14 Feb 02:00
· 99 commits to master since this release

API version 1.4 updates the library to support the new features and changes added in firmware v1.0.0.

Features

  • Added classes for Timer, I2C, Settings, and Macro modules
  • Added support for peak detector and pulse detector filters
  • Added TriggerBuilder class to simplify creating data processing or logging triggers
  • Updated GPIO callback functions to match data format for firmware v1.0.0
  • Updated TimeDelayBuilder to include differential filter mode
  • Added ability to pass in own LocalBroadcastManager for the MetaWear service to use

Descriptions of the new modules are provided below:

Module Description
Timer Internal timer that periodically sends notifications
I2C Use the I2C bus to directly communicate with sensors
Settings Change Bluetooth LE advertisement parameters
Macro Program persistent commands to the board that can be run at boot time

Code Changes

GPIO

Accelerometer

  • Changed enableTapDetection to return a TapConfig object
    • TapConfig extends ThresholdConfig and provides methods to configure the pulse time limit, latency, and window

Logging

  • Added removeLogEntries method
    • Removes a number of entries from the logger, requires a disconnect for the erase to occur
  • Added addReadTrigger method, which logs data from register read

DataProcessor

  • Added addReadFilter method, which processes data from a register read

Debug

  • Added resetAfterGarbageCollect method
    • Disconnects the board, performs indicated erase operations, then resets the board

TimeDelayBuilder

MetaWearBleService

LoggingTrigger

TriggerBuilder

  • Added methods to construct triggers for accelerometer axis data, gpio pins, and data filters

BytesInterpreter

  • Added logBytesToGs method which converts bytes to Gs for log entries containing combined axis data