From 44f6f78454b8479ca1369b549f0a0af4807a37ca Mon Sep 17 00:00:00 2001 From: Francois Best Date: Sun, 17 Jun 2012 12:45:06 +0200 Subject: [PATCH] Reverted last commit (won't work). --- src/MIDI.h | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/src/MIDI.h b/src/MIDI.h index da580f3..039d15d 100644 --- a/src/MIDI.h +++ b/src/MIDI.h @@ -36,6 +36,12 @@ #define MIDI_SERIAL_PORT Serial // Change the number (to Serial1 for example) if you want // to use a different serial port for MIDI I/O. + +#define MIDI_USE_SOFTWARE_SERIAL 0 // Set to 1 to use SoftwareSerial instead of native serial ports. +#define MIDI_SOFTSERIAL_RX_PIN 1 // This pin number will be used for MIDI Input +#define MIDI_SOFTSERIAL_TX_PIN 2 // This pin number will be used for MIDI Output. + + #define USE_RUNNING_STATUS 1 // Running status enables short messages when sending multiple values // of the same type and channel. // Set to 0 if you have troubles controlling your hardware. @@ -61,18 +67,6 @@ #define MIDI_PITCHBEND_MAX 8191 -#ifndef MIDI_USE_SOFTWARE_SERIAL -#define MIDI_USE_SOFTWARE_SERIAL 0 -#else - #if MIDI_USE_SOFTWARE_SERIAL - #if !defined(MIDI_SOFTSERIAL_RX_PIN) || !defined(MIDI_SOFTSERIAL_TX_PIN) - #error You need to define some pins to enable MIDI with software serial. - #endif - #endif -#endif - - - /*! Type definition for practical use (because "unsigned char" is a bit long to write.. )