Accelerometer BMI160 has the method stepCounter(). How do I get the the count (the integer number) form this method?
https://github.com/mbientlab/MetaWear-SDK-Cpp/blob/d679878b8f7f88471697491f352469c391c7f27f/cppdocs/source/accelerometer.rst
You can see an example here: https://github.com/mbientlab/MetaWear-SDK-Cpp/blob/d679878b8f7f88471697491f352469c391c7f27f/test/test_accelerometer_bmi160.py
self.libmetawear.mbl_mw_acc_bmi160_set_step_counter_mode(self.board, test['mode']) self.libmetawear.mbl_mw_acc_bmi160_enable_step_counter(self.board) self.libmetawear.mbl_mw_acc_bmi160_write_step_counter_config(self.board)
self.libmetawear.mbl_mw_acc_bmi160_set_step_counter_mode(self.board, test['mode'])
self.libmetawear.mbl_mw_acc_bmi160_enable_step_counter(self.board)
self.libmetawear.mbl_mw_acc_bmi160_write_step_counter_config(self.board)
There two links are for C and python respectively. Could you provide me an example for Java?
I am not sure if we have an example for Java, you will need to look around our documentation. The principle is the same.
Comments
https://github.com/mbientlab/MetaWear-SDK-Cpp/blob/d679878b8f7f88471697491f352469c391c7f27f/cppdocs/source/accelerometer.rst
You can see an example here: https://github.com/mbientlab/MetaWear-SDK-Cpp/blob/d679878b8f7f88471697491f352469c391c7f27f/test/test_accelerometer_bmi160.py
self.libmetawear.mbl_mw_acc_bmi160_set_step_counter_mode(self.board, test['mode'])
self.libmetawear.mbl_mw_acc_bmi160_enable_step_counter(self.board)
self.libmetawear.mbl_mw_acc_bmi160_write_step_counter_config(self.board)
There two links are for C and python respectively. Could you provide me an example for Java?
I am not sure if we have an example for Java, you will need to look around our documentation. The principle is the same.