Pseudo-Medical Monitor Code MIDI STUFF

From LVL1
Revision as of 18:30, 11 December 2021 by JAC 101 (talk | contribs) (Created page with " <nowiki> #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_res...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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);
}

 

Pseudo-Medical_Monitor_Code#Custom_Includes