jadadactyl
New member
Hi all! I'm trying to build a midi program changer and I'm trying to get MIDI out working from my Teensy 3.6 before I add more complexity to the design.
My physical setup involves running TX1 to a 220ohm resistor to pin 5 on a MIDI port. Also running 5v to a 200ohm resistor then to pin 4 on the MIDI port. Finally ground is connected to pin 2 on the MIDI port.
Below is the code I'm trying to use to test if the signal can be received by my synth, but it isn't working!
Any thoughts on what might be happening?
My physical setup involves running TX1 to a 220ohm resistor to pin 5 on a MIDI port. Also running 5v to a 200ohm resistor then to pin 4 on the MIDI port. Finally ground is connected to pin 2 on the MIDI port.
Below is the code I'm trying to use to test if the signal can be received by my synth, but it isn't working!
Code:
#include <MIDI.h>
#define LED 13
MIDI_CREATE_INSTANCE(HardwareSerial, Serial, MIDI);
void setup()
{
pinMode(LED, OUTPUT);
MIDI.begin(MIDI_CHANNEL_OFF);
}
void loop()
{
digitalWrite(LED, HIGH);
MIDI.sendNoteOn(60, 127, 1);
delay(1000);
MIDI.sendNoteOff(60, 0, 1);
digitalWrite(LED, LOW);
delay(1000);
}
Any thoughts on what might be happening?