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 <angus@redyak.com.au>
Angus Gratton 2024-04-03 16:11:56 +11:00
rodzic 575251fb01
commit d90e654384
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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...")