Reverted last commit (won't work).

This commit is contained in:
Francois Best 2012-06-17 12:45:06 +02:00
parent 323d8e1707
commit 44f6f78454
1 changed files with 6 additions and 12 deletions

View File

@ -36,6 +36,12 @@
#define MIDI_SERIAL_PORT Serial // Change the number (to Serial1 for example) if you want #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. // 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 #define USE_RUNNING_STATUS 1 // Running status enables short messages when sending multiple values
// of the same type and channel. // of the same type and channel.
// Set to 0 if you have troubles controlling your hardware. // Set to 0 if you have troubles controlling your hardware.
@ -61,18 +67,6 @@
#define MIDI_PITCHBEND_MAX 8191 #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 /*! Type definition for practical use
(because "unsigned char" is a bit long to write.. ) (because "unsigned char" is a bit long to write.. )