From fadff608037bd9db3e2bd2f5f32cdf9654cfbc54 Mon Sep 17 00:00:00 2001 From: midilab Date: Sat, 3 Feb 2024 19:49:12 -0300 Subject: [PATCH] Update RP2040UsbMasterMidiClock.ino remove usb read from loop since its a clock sync only example. --- .../RP2040UsbMasterMidiClock.ino | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/examples/RP2040UsbMasterMidiClock/RP2040UsbMasterMidiClock.ino b/examples/RP2040UsbMasterMidiClock/RP2040UsbMasterMidiClock.ino index cf1092a..c579d76 100644 --- a/examples/RP2040UsbMasterMidiClock/RP2040UsbMasterMidiClock.ino +++ b/examples/RP2040UsbMasterMidiClock/RP2040UsbMasterMidiClock.ino @@ -10,8 +10,6 @@ Adafruit_USBD_MIDI usb_midi; MIDI_CREATE_INSTANCE(Adafruit_USBD_MIDI, usb_midi, MIDI_USB); -//#define LED_BUILTIN PIN_LED_B - //MIDI_CREATE_INSTANCE(HardwareSerial, Serial1, MIDI); #include @@ -62,11 +60,11 @@ void setup() { delay(1); // wait until device mounted - /*while( !TinyUSBDevice.mounted() ) { + while( !TinyUSBDevice.mounted() ) { Serial.println("waiting for usb.."); Serial.flush(); delay(1); - }*/ + } // Setup our clock system // Inits the clock @@ -85,12 +83,6 @@ void setup() { Serial.println("uClock.start()ed!"); Serial.flush(); } -uint32_t count = 0; - // Do it whatever to interface with Clock.stop(), Clock.start(), Clock.setTempo() and integrate your environment... void loop() { - MIDI_USB.read(); - count++; - if (millis()%1000==0) - Serial.println("looped!!!"); }