Hi there.
I made a breakout board which can hold a TEENSY 3.1 or Arduino UNO.
This board has MIDI input and output.
Now i tried to get the board working with the teensy plugged in. (UNO works like a charm.)
But so far i don't get it working.
The MIDI circuit uses the normal RX/TX lines on the UNO and RX1/TX1 with the TEENSY.
Do i have to change the code to use RX1/TX1 with the teensy?
This is the BASIC IO Sample from the latest stable release of the arduino midi library > https://github.com/FortySevenEffects/arduino_midi_library/releases/tag/4.2
Does the teensy need a change on "MIDI.read"?
Maybe tell which Serial Pins to use?
Thank you!
Best, J
I made a breakout board which can hold a TEENSY 3.1 or Arduino UNO.
This board has MIDI input and output.
Now i tried to get the board working with the teensy plugged in. (UNO works like a charm.)
But so far i don't get it working.
The MIDI circuit uses the normal RX/TX lines on the UNO and RX1/TX1 with the TEENSY.
Do i have to change the code to use RX1/TX1 with the teensy?
Code:
#include <MIDI.h>
// Simple tutorial on how to receive and send MIDI messages.
// Here, when receiving any message on channel 4, the Arduino
// will blink a led and play back a note for 1 second.
MIDI_CREATE_DEFAULT_INSTANCE();
#define LED 13 // LED pin on Arduino Uno
void setup()
{
pinMode(LED, OUTPUT);
MIDI.begin(4); // Launch MIDI and listen to channel 4
}
void loop()
{
if (MIDI.read()) // If we have received a message
{
digitalWrite(LED,HIGH);
MIDI.sendNoteOn(42,127,1); // Send a Note (pitch 42, velo 127 on channel 1)
delay(1000); // Wait for a second
MIDI.sendNoteOff(42,0,1); // Stop the note
digitalWrite(LED,LOW);
}
}
This is the BASIC IO Sample from the latest stable release of the arduino midi library > https://github.com/FortySevenEffects/arduino_midi_library/releases/tag/4.2
Does the teensy need a change on "MIDI.read"?
Maybe tell which Serial Pins to use?
Thank you!
Best, J