From d90e654384db021a62ca48079fd088db5fc68b45 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Wed, 3 Apr 2024 16:11:56 +1100 Subject: [PATCH] usb-device-midi: Keep the built-in driver in midi_example.py. The example prints to console, so no reason not to do this similar to the other examples. Tested Windows 10, Linux. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton --- micropython/usb/examples/device/midi_example.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/micropython/usb/examples/device/midi_example.py b/micropython/usb/examples/device/midi_example.py index 01dc2e8e..1fc0bd6d 100644 --- a/micropython/usb/examples/device/midi_example.py +++ b/micropython/usb/examples/device/midi_example.py @@ -25,7 +25,8 @@ class MIDIExample(MIDIInterface): m = MIDIExample() -usb.device.get().init(m) +# Remove builtin_driver=True if you don't want the MicroPython serial REPL available. +usb.device.get().init(m, builtin_driver=True) print("Waiting for USB host to configure the interface...")