From 3db2424fc9eae721327c260b390813b95151a626 Mon Sep 17 00:00:00 2001 From: lathoub Date: Sun, 22 Mar 2020 17:26:22 +0100 Subject: [PATCH] cleanup --- examples/ErrorCallback/ErrorCallback.ino | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/examples/ErrorCallback/ErrorCallback.ino b/examples/ErrorCallback/ErrorCallback.ino index bd280ec..e35cf81 100644 --- a/examples/ErrorCallback/ErrorCallback.ino +++ b/examples/ErrorCallback/ErrorCallback.ino @@ -1,28 +1,17 @@ #include -// Simple tutorial on how to receive and send MIDI messages. -// Here, when receiving any message on channel 4, the Arduino -// will blink a led and play back a note for 1 second. +// Before running the program below, make sure you set +// UseReceiverActiveSensing (optionally UseSenderActiveSensing) in Settings.h to true MIDI_CREATE_DEFAULT_INSTANCE(); -USING_NAMESPACE_MIDI void handleError(int8_t err) { - if (bitRead(err, ErrorActiveSensingTimeout)) - Serial.println("ActiveSensing Timeout"); - else - Serial.println("ActiveSensing OK"); - digitalWrite(LED_BUILTIN, (err == 0)? LOW : HIGH); } void setup() { - Serial.begin(115200); - while (!Serial) {} - Serial.println("booting"); - pinMode(LED_BUILTIN, OUTPUT); digitalWrite(LED_BUILTIN, LOW);