Pseudo-Medical Monitor Code MIDI STUFF
Jump to navigation
Jump to search
#define MIDI_TX_PIN 17 #define MIDI_RX_PIN 16 #define MIDI_RST_PIN 28 #define MIDI_GPIO0_PIN 30 #define MIDI_GPIO1_PIN 32 #define MIDISerial Serial2 void MIDI_reset() { digitalWrite(MIDI_RST_PIN,HIGH); digitalWrite(MIDI_GPIO0_PIN,LOW); digitalWrite(MIDI_GPIO1_PIN,HIGH); digitalWrite(MIDI_RST_PIN,LOW); digitalWrite(MIDI_RST_PIN,HIGH); } bool MIDI_setup() { pinMode(MIDI_RST_PIN, OUTPUT); pinMode(MIDI_GPIO0_PIN, OUTPUT); pinMode(MIDI_GPIO1_PIN, OUTPUT); digitalWrite(MIDI_RST_PIN,HIGH); MIDI_reset(); MIDISerial.begin(31250); return(true); }