Skip to content

Commit 44267de

Browse files
committed
removed AppleMIDI_Debug.h from standard build
bring AppleMIDI_Debug.h explicitly in examples example define SerialMon for debugging
1 parent 3e4ea0b commit 44267de

File tree

17 files changed

+41
-28
lines changed

17 files changed

+41
-28
lines changed

examples/AVR_Callbacks/AVR_Callbacks.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#include <Ethernet.h>
22

3+
#define SerialMon Serial
4+
#include <AppleMIDI_Debug.h>
5+
36
#define ONE_PARTICIPANT
47
#define USE_EXT_CALLBACKS
5-
#define SerialMon Serial
6-
#define APPLEMIDI_DEBUG SerialMon
78
#include <AppleMIDI.h>
89

910
// Enter a MAC address for your controller below.

examples/AVR_Directory/AVR_Directory.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#include <Ethernet.h>
22

3-
#define USE_DIRECTORY
43
#define SerialMon Serial
5-
#define APPLEMIDI_DEBUG SerialMon
4+
#include <AppleMIDI_Debug.h>
5+
6+
#define USE_DIRECTORY
67
#include <AppleMIDI.h>
78

89
// Enter a MAC address for your controller below.

examples/AVR_E3_NoteOnOffEverySec/AVR_E3_NoteOnOffEverySec.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#include <Ethernet3.h> // from https://github.com/sstaub/Ethernet3
22

33
#define SerialMon Serial
4-
#define APPLEMIDI_DEBUG SerialMon
4+
#include <AppleMIDI_Debug.h>
5+
56
#include <AppleMIDI.h>
67

78
// Enter a MAC address for your controller below.

examples/AVR_Initiator/AVR_Initiator.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#include <Ethernet.h>
22

3-
#define APPLEMIDI_INITIATOR
43
#define SerialMon Serial
5-
#define APPLEMIDI_DEBUG SerialMon
4+
#include <AppleMIDI_Debug.h>
5+
6+
#define APPLEMIDI_INITIATOR
67
#include <AppleMIDI.h>
78

89
// Enter a MAC address for your controller below.

examples/AVR_MultipleSessions/AVR_MultipleSessions.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#include <Ethernet.h>
22

33
#define SerialMon Serial
4-
#define APPLEMIDI_DEBUG SerialMon
4+
#include <AppleMIDI_Debug.h>
5+
56
#include <AppleMIDI.h>
67

78
// Enter a MAC address for your controller below.

examples/AVR_NonDefaultSession/AVR_NonDefaultSession.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#include <Ethernet.h>
22

33
#define SerialMon Serial
4-
#define APPLEMIDI_DEBUG SerialMon
4+
#include <AppleMIDI_Debug.h>
5+
56
#include <AppleMIDI.h>
67

78
// Enter a MAC address for your controller below.

examples/AVR_NoteOnOffEverySec/AVR_NoteOnOffEverySec.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#include <Ethernet.h>
22

33
#define SerialMon Serial
4-
#define APPLEMIDI_DEBUG SerialMon
4+
#include <AppleMIDI_Debug.h>
5+
56
#include <AppleMIDI.h>
67

78
// Enter a MAC address for your controller below.

examples/AVR_ReceivedRawMidiData/AVR_ReceivedRawMidiData.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#include <Ethernet.h>
22

3-
#define USE_EXT_CALLBACKS
43
#define SerialMon Serial
5-
#define APPLEMIDI_DEBUG SerialMon
4+
#include <AppleMIDI_Debug.h>
5+
6+
#define USE_EXT_CALLBACKS
67
#include <AppleMIDI.h>
78

89
// Enter a MAC address for your controller below.

examples/AVR_SysEx/AVR_SysEx.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#include <Ethernet.h>
22

33
#define SerialMon Serial
4-
#define APPLEMIDI_DEBUG SerialMon
4+
#include <AppleMIDI_Debug.h>
5+
56
#include <AppleMIDI.h>
67

78
// Enter a MAC address for your controller below.

examples/ESP32_NoteOnOffEverySec/ESP32_NoteOnOffEverySec.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
#include <WiFiUdp.h>
44

55
#define SerialMon Serial
6-
#define APPLEMIDI_DEBUG SerialMon
6+
#include <AppleMIDI_Debug.h>
7+
78
#include <AppleMIDI.h>
89

910
char ssid[] = "ssid"; // your network SSID (name)

0 commit comments

Comments
 (0)