Skip to content

Instantly share code, notes, and snippets.

@tran-simon
tran-simon / AccelerometerBmi270Impl.java
Created July 17, 2023 20:06
Metawear Android BMI270 activity detection
/*
* Copyright 2014-2015 MbientLab Inc. All rights reserved.
*
* IMPORTANT: Your use of this Software is limited to those specific rights granted under the terms of a software
* license agreement between the user who downloaded the software, his/her employer (which must be your
* employer) and MbientLab Inc, (the "License"). You may not use this Software unless you agree to abide by the
* terms of the License which can be found at www.mbientlab.com/terms. The License limits your use, and you
* acknowledge, that the Software may be modified, copied, and distributed when used in conjunction with an
* MbientLab Inc, product. Other than for the foregoing purpose, you may not use, reproduce, copy, prepare
* derivative works of, modify, distribute, perform, display or sell this Software and/or its documentation for any
$ ffx component list
/
/bootstrap
/bootstrap/archivist
/bootstrap/base_resolver
/bootstrap/console
/bootstrap/console-launcher
/bootstrap/cr50_agent
/bootstrap/decompressor
/bootstrap/device_name_provider
/
bootstrap
archivist
base_resolver
console
console-launcher
cr50_agent
decompressor
device_name_provider
driver_index
$ ffx component list --verbose
Type State Moniker URL
CML Running / fuchsia-boot:///#meta/root.cm
CML Running /bootstrap fuchsia-boot:///#meta/bootstrap.cm
CML Running /bootstrap/archivist fuchsia-boot:///#meta/archivist.cm
CML Running /bootstrap/base_resolver fuchsia-boot:///#meta/base-resolver.cm
CML Running /bootstrap/console fuchsia-boot:///#meta/console.cm
CML Running /bootstrap/console-launcher fuchsia-boot:///#meta/console-launcher.cm
CML Stopped /bootstrap/cr50_agent fuchsia-boot:///#meta/cr50_agent.cm
CML Running /bootstrap/decompressor fuchsia-boot:///#meta/decompressor-sandbox.cm
<?xml version="1.0" ?>
<!-- *************************************************** -->
<!-- * A fully commented XML is diffusion_1.xml. Refer * -->
<!-- * to it to have full information about what * -->
<!-- * these options mean. * -->
<!-- *************************************************** -->
<argos-configuration>
<?xml version="1.0" ?>
<!-- *************************************************** -->
<!-- * A fully commented XML is diffusion_1.xml. Refer * -->
<!-- * to it to have full information about what * -->
<!-- * these options mean. * -->
<!-- *************************************************** -->
<argos-configuration>
package window;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;
import java.net.URL;
import javax.swing.JCheckBox;
import javax.swing.JFrame;
import javax.swing.JPanel;