|
|
@ -1080,8 +1080,11 @@ FLASHMEM void setup_midi_devices(void) { |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#ifdef MIDI_DEVICE_USB_HOST_SERIAL |
|
|
|
#ifdef MIDI_DEVICE_USB_HOST_SERIAL |
|
|
|
|
|
|
|
Serial.println("1"); |
|
|
|
usb_host.begin(); |
|
|
|
usb_host.begin(); |
|
|
|
|
|
|
|
Serial.println("2"); |
|
|
|
userial.begin(USB_HOST_SERIAL_BAUD, USB_HOST_SERIAL_FORMAT); |
|
|
|
userial.begin(USB_HOST_SERIAL_BAUD, USB_HOST_SERIAL_FORMAT); |
|
|
|
|
|
|
|
Serial.println("3"); |
|
|
|
usbhost_midi_serial.setHandleNoteOn(handleNoteOn_MIDI_DEVICE_USB_HOST_SERIAL); |
|
|
|
usbhost_midi_serial.setHandleNoteOn(handleNoteOn_MIDI_DEVICE_USB_HOST_SERIAL); |
|
|
|
usbhost_midi_serial.setHandleNoteOff(handleNoteOff_MIDI_DEVICE_USB_HOST_SERIAL); |
|
|
|
usbhost_midi_serial.setHandleNoteOff(handleNoteOff_MIDI_DEVICE_USB_HOST_SERIAL); |
|
|
|
usbhost_midi_serial.setHandleControlChange(handleControlChange_MIDI_DEVICE_USB_HOST_SERIAL); |
|
|
|
usbhost_midi_serial.setHandleControlChange(handleControlChange_MIDI_DEVICE_USB_HOST_SERIAL); |
|
|
@ -1101,7 +1104,7 @@ FLASHMEM void setup_midi_devices(void) { |
|
|
|
usbhost_midi_serial.setHandleActiveSensing(handleActiveSensing_MIDI_DEVICE_USB_HOST_SERIAL); |
|
|
|
usbhost_midi_serial.setHandleActiveSensing(handleActiveSensing_MIDI_DEVICE_USB_HOST_SERIAL); |
|
|
|
usbhost_midi_serial.setHandleSystemReset(handleSystemReset_MIDI_DEVICE_USB_HOST_SERIAL); |
|
|
|
usbhost_midi_serial.setHandleSystemReset(handleSystemReset_MIDI_DEVICE_USB_HOST_SERIAL); |
|
|
|
//usbhost_midi_serial.setHandleRealTimeSystem(handleRealTimeSystem_MIDI_DEVICE_USB_HOST_SERIAL);
|
|
|
|
//usbhost_midi_serial.setHandleRealTimeSystem(handleRealTimeSystem_MIDI_DEVICE_USB_HOST_SERIAL);
|
|
|
|
|
|
|
|
Serial.println("4"); |
|
|
|
usbhost_midi_serial.begin(DEFAULT_MIDI_CHANNEL); |
|
|
|
usbhost_midi_serial.begin(DEFAULT_MIDI_CHANNEL); |
|
|
|
|
|
|
|
|
|
|
|
#ifdef DEBUG |
|
|
|
#ifdef DEBUG |
|
|
|