Use TEENSYDUINO to determine version rather than making our own

This commit is contained in:
John Stäck 2019-06-24 15:00:42 +02:00
parent 50b1fe9eb3
commit d04c0f92f8
2 changed files with 1 additions and 5 deletions

View file

@ -3,10 +3,6 @@
#define REVB
//Comment out the following line if you have Teensyduino 1.4.0 or earlier, to make pitch bend over USB-MIDI work.
#define NEWTEENSYDUINO
// Pin definitions
// Teensy pins

View file

@ -44,7 +44,7 @@ void midiSendAfterTouch(uint8_t value) {
void midiSendPitchBend(uint16_t value) {
#if defined(NEWTEENSYDUINO)
#if (TEENSYDUINO > 140)
usbMIDI.sendPitchBend(value-8192, midiChannel); // newer teensyduino "pitchBend-8192" older just "pitchBend"... strange thing to change
#else
usbMIDI.sendPitchBend(value, midiChannel);