Skip to content

Instantly share code, notes, and snippets.

@HongyiZhu
HongyiZhu / configurations.java
Created November 17, 2016 20:29
This is the configuration logic that failed with firmware 1.2.5
accel_module = board.getModule(Bmi160Accelerometer.class);
settings_module = board.getModule(Settings.class);
timerModule = board.getModule(com.mbientlab.metawear.module.Timer.class);
timerModule.scheduleTask(new com.mbientlab.metawear.module.Timer.Task() {
@Override
public void commands() {
accel_module.disableAxisSampling();
}
}, 3000, true).onComplete(new AsyncOperation.CompletionHandler<com.mbientlab.metawear.module.Timer.Controller>() {