Skip to content

Commit

Permalink
api v0.6.2 commit
Browse files Browse the repository at this point in the history
  • Loading branch information
scaryghost committed Nov 15, 2018
1 parent d2f2f08 commit b162de5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions examples/multi_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self, device):
self.callback = FnVoid_VoidP_DataP(self.data_handler)

def data_handler(self, ctx, data):
print("%s -> %s" % (self.device.address, parse_value(data)))
#print("%s -> %s" % (self.device.address, parse_value(data)))
self.samples+= 1

states = []
Expand All @@ -30,7 +30,9 @@ def data_handler(self, ctx, data):
for s in states:
print("configuring device")
libmetawear.mbl_mw_settings_set_connection_parameters(s.device.board, 7.5, 7.5, 0, 6000)
libmetawear.mbl_mw_acc_set_odr(s.device.board, 25.0)
sleep(1.5)

libmetawear.mbl_mw_acc_set_odr(s.device.board, 100.0)
libmetawear.mbl_mw_acc_set_range(s.device.board, 16.0)
libmetawear.mbl_mw_acc_write_acceleration_config(s.device.board)

Expand All @@ -40,7 +42,7 @@ def data_handler(self, ctx, data):
libmetawear.mbl_mw_acc_enable_acceleration_sampling(s.device.board)
libmetawear.mbl_mw_acc_start(s.device.board)

sleep(30.0)
sleep(3.0)

for s in states:
libmetawear.mbl_mw_acc_stop(s.device.board)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def run(self):
setup(
name='metawear',
packages=['mbientlab', 'mbientlab.metawear'],
version='0.6.1',
version='0.6.2',
description='Python bindings for the MetaWear C++ SDK by MbientLab',
long_description=open(os.path.join(os.path.dirname(__file__), "README.rst")).read(),
package_data={'mbientlab.metawear': so_pkg_data},
Expand Down

0 comments on commit b162de5

Please sign in to comment.