Use TEENSYDUINO to determine version rather than making our own
This commit is contained in:
parent
50b1fe9eb3
commit
d04c0f92f8
2 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue