fix daisy-seed midi

This commit is contained in:
Stefano D'Angelo 2024-02-09 15:50:09 +01:00
parent a811f2e390
commit 29891ae7bb

View File

@ -218,8 +218,21 @@ int main() {
memset(zero, 0, BLOCK_SIZE * sizeof(float));
#endif
#if MIDI_BUS_IN >= 0
MidiUsbHandler::Config midi_usb_cfg;
midi_usb_cfg.transport_config.periph = MidiUsbTransport::Config::INTERNAL;
midi_usb.Init(midi_usb_cfg);
MidiUartHandler::Config midi_uart_cfg;
midi_uart.Init(midi_uart_cfg);
#endif
hardware.StartAudio(AudioCallback);
#if MIDI_BUS_IN >= 0
midi_uart.StartReceive();
#endif
while (1) {
#if MIDI_BUS_IN >= 0
midi_usb.Listen();