Difference between revisions of "Pseudo-Medical Monitor Code MIDI STUFF"

From LVL1
Jump to navigation Jump to search
(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...")
 
(Blanked the page)
Tag: Blanking
 
Line 1: Line 1:
<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_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);
 
}
 
 
</nowiki>
 
 
[[Pseudo-Medical_Monitor_Code#Custom_Includes]]
 

Latest revision as of 15:47, 14 December 2021