Closed
Description
I know this is not a common use case but certainly can be addressed somehow.
When I disabled usb_midi
in boot.py
:
import usb_midi
usb_midi.disable() # Midi interface
Then initialise adafruit_macropad
in code.py
:
from adafruit_macropad import MacroPad
macropad = MacroPad()
It throws an IndexError
:
Traceback (most recent call last):
File "code.py", line 13, in <module>
File "adafruit_macropad.py", line 172, in __init__
IndexError: tuple index out of range
Which references
Adafruit_CircuitPython_MacroPad/adafruit_macropad.py
Lines 170 to 177 in 97e3712
Well this makes sense. As macropad lib also initialise hid devices and similar, I haven't tried if I disable HID would it crashes the library, too.
And of course if I simply get rid of adafruit_midi
library, macropad lib crashes as well.
Maybe those things should really be modular? Thanks
Metadata
Metadata
Assignees
Labels
No labels