Move hardware definitions to separate file

This commit is contained in:
John Stäck 2019-03-01 13:59:11 +01:00
parent 1d8cd1a3ef
commit 18f3131d8a
3 changed files with 115 additions and 106 deletions

View file

@ -1,7 +1,5 @@
#include "midi.h"
//Need this define here for now
#define NEWTEENSYDUINO
#include "hardware.h"
int midiChannel = 1;
@ -71,17 +69,17 @@ void midiPanic() { // all notes off
// Send a three byte din midi message
void midiSend3B(byte midistatus, byte data1, byte data2) {
MidiSerial.write(midistatus);
MidiSerial.write(data1);
MidiSerial.write(data2);
MIDI_SERIAL.write(midistatus);
MIDI_SERIAL.write(data1);
MIDI_SERIAL.write(data2);
}
//**************************************************************
// Send a two byte din midi message
void midiSend2B(byte midistatus, byte data) {
MidiSerial.write(midistatus);
MidiSerial.write(data);
MIDI_SERIAL.write(midistatus);
MIDI_SERIAL.write(data);
}
//**************************************************************