From aa4d63d3e46b547c2d5806fe920e3f90ea37c308 Mon Sep 17 00:00:00 2001 From: John Park Date: Fri, 16 Apr 2021 09:46:43 -0700 Subject: [PATCH] library import fix, renamed to code.py to appease the Bundle Fly --- PowerGlove_BLE_MIDI/{powerglove_ble_midi.py => code.py} | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) rename PowerGlove_BLE_MIDI/{powerglove_ble_midi.py => code.py} (95%) diff --git a/PowerGlove_BLE_MIDI/powerglove_ble_midi.py b/PowerGlove_BLE_MIDI/code.py similarity index 95% rename from PowerGlove_BLE_MIDI/powerglove_ble_midi.py rename to PowerGlove_BLE_MIDI/code.py index 4b2f0983c..bf024a69f 100644 --- a/PowerGlove_BLE_MIDI/powerglove_ble_midi.py +++ b/PowerGlove_BLE_MIDI/code.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 John Park for Adafruit Industries. +# +# SPDX-License-Identifier: MIT """ Power Glove BLE MIDI with Feather Sense nRF52840 Sends MIDI CC values based on finger flex sensors and accelerometer @@ -11,12 +14,12 @@ import adafruit_midi from adafruit_midi.control_change import ControlChange # from adafruit_midi.note_on import NoteOn # from adafruit_midi.pitch_bend import PitchBend -import adafruit_lsm6ds # accelerometer +import adafruit_lsm6ds.lsm6ds33 # accelerometer import simpleio from analogio import AnalogIn i2c = board.I2C() -sense_accel = adafruit_lsm6ds.LSM6DS33(i2c) +sense_accel = adafruit_lsm6ds.lsm6ds33.LSM6DS33(i2c) analog_in_thumb = AnalogIn(board.A3) analog_in_index = AnalogIn(board.A2)