Skip to content

Commit 6faa61e

Browse files
authored
Merge pull request #1509 from jedgarpark/power-glove
library import fix, renamed to code.py to appease the Bundle Fly
2 parents d3ca1b8 + aa4d63d commit 6faa61e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

PowerGlove_BLE_MIDI/powerglove_ble_midi.py renamed to PowerGlove_BLE_MIDI/code.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-FileCopyrightText: 2021 John Park for Adafruit Industries.
2+
#
3+
# SPDX-License-Identifier: MIT
14
"""
25
Power Glove BLE MIDI with Feather Sense nRF52840
36
Sends MIDI CC values based on finger flex sensors and accelerometer
@@ -11,12 +14,12 @@
1114
from adafruit_midi.control_change import ControlChange
1215
# from adafruit_midi.note_on import NoteOn
1316
# from adafruit_midi.pitch_bend import PitchBend
14-
import adafruit_lsm6ds # accelerometer
17+
import adafruit_lsm6ds.lsm6ds33 # accelerometer
1518
import simpleio
1619
from analogio import AnalogIn
1720

1821
i2c = board.I2C()
19-
sense_accel = adafruit_lsm6ds.LSM6DS33(i2c)
22+
sense_accel = adafruit_lsm6ds.lsm6ds33.LSM6DS33(i2c)
2023

2124
analog_in_thumb = AnalogIn(board.A3)
2225
analog_in_index = AnalogIn(board.A2)

0 commit comments

Comments
 (0)