Skip to content
This repository was archived by the owner on Jul 20, 2025. It is now read-only.

Commit 84baa96

Browse files
authored
Merge pull request #26 from mbientlab/usb_perf_rebase
usb: performance enhancement.
2 parents 5586b69 + 1b685d3 commit 84baa96

31 files changed

+112
-37
lines changed

examples/acc_threshold_detector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
print("Searching for device...")
99
d = MetaWear(sys.argv[1])
1010
d.connect()
11-
print("Connected to " + d.address)
11+
print("Connected to " + d.address + " over " + ("USB" if d.usb.is_connected else "BLE"))
1212
print("Configuring device")
1313
libmetawear.mbl_mw_settings_set_connection_parameters(d.board, 7.5, 7.5, 0, 6000)
1414
sleep(1.0)

examples/anonymous_datasignals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# connect
1515
metawear = MetaWear(sys.argv[1])
1616
metawear.connect()
17-
print("Connected")
17+
print("Connected to " + metawear.address + " over " + ("USB" if metawear.usb.is_connected else "BLE"))
1818

1919
# setup
2020
e = Event()

examples/calibrate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# connect
1111
device = MetaWear(sys.argv[1])
1212
device.connect()
13-
print("Connected")
13+
print("Connected to " + device.address + " over " + ("USB" if device.usb.is_connected else "BLE"))
1414

1515
# event
1616
e = Event()

examples/data_fuser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def start(self):
6565
for i in range(len(argv) - 1):
6666
d = MetaWear(argv[i + 1])
6767
d.connect()
68-
print("Connected to " + d.address)
68+
print("Connected to " + d.address + " over " + ("USB" if d.usb.is_connected else "BLE"))
6969
states.append(State(d))
7070

7171
# configure

examples/data_processor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def start(self):
4747
for i in range(len(argv) - 1):
4848
d = MetaWear(argv[i + 1])
4949
d.connect()
50-
print("Connected to " + d.address)
50+
print("Connected to " + d.address + " over " + ("USB" if d.usb.is_connected else "BLE"))
5151
states.append(State(d))
5252

5353
# configure

examples/firmware_build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# connect
1111
m = MetaWear(sys.argv[1])
1212
m.connect()
13-
print("Connected")
13+
print("Connected to " + m.address + " over " + ("USB" if m.usb.is_connected else "BLE"))
1414

1515
# get board info
1616
size = c_uint(0)

examples/full_reset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# connect
1010
device = MetaWear(sys.argv[1])
1111
device.connect()
12-
print("Connected")
12+
print("Connected to " + device.address + " over " + ("USB" if device.usb.is_connected else "BLE"))
1313

1414
# stop logging
1515
libmetawear.mbl_mw_logging_stop(device.board)

examples/led.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# connect
1111
device = MetaWear(sys.argv[1])
1212
device.connect()
13-
print("Connected")
13+
print("Connected to " + device.address + " over " + ("USB" if device.usb.is_connected else "BLE"))
1414

1515
# create led pattern
1616
pattern= LedPattern(repeat_count= Const.LED_REPEAT_INDEFINITELY)

examples/led_dongle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# Add hci_mac to the setup to specify which dongle to use
1212
device = MetaWear(sys.argv[1], hci_mac="B8:27:EB:F2:61:2E")
1313
device.connect()
14-
print("Connected")
14+
print("Connected to " + device.address + " over " + ("USB" if device.usb.is_connected else "BLE"))
1515

1616
# create led pattern
1717
pattern= LedPattern(repeat_count= Const.LED_REPEAT_INDEFINITELY)

examples/led_temp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# connect
1111
device = MetaWear(sys.argv[1])
1212
device.connect()
13-
print("Connected")
13+
print("Connected to " + device.address + " over " + ("USB" if device.usb.is_connected else "BLE"))
1414

1515
# create led pattern
1616
pattern= LedPattern(repeat_count= Const.LED_REPEAT_INDEFINITELY)

0 commit comments

Comments
 (0)