Skip to content

Commit d90e654

Browse files
committed
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>
1 parent 575251f commit d90e654

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

micropython/usb/examples/device/midi_example.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ def on_control_change(self, channel, controller, value):
2525

2626

2727
m = MIDIExample()
28-
usb.device.get().init(m)
28+
# Remove builtin_driver=True if you don't want the MicroPython serial REPL available.
29+
usb.device.get().init(m, builtin_driver=True)
2930

3031
print("Waiting for USB host to configure the interface...")
3132

0 commit comments

Comments
 (0)