mirror of
https://github.com/bbswitzer/PianoProject
synced 2026-08-02 13:15:48 -04:00
30 lines
445 B
Arduino
30 lines
445 B
Arduino
#include <MIDIUSB.h>
|
|
#include "shiftRegister.h"
|
|
#include "serial.h"
|
|
#include "midi.h"
|
|
|
|
extern const bool DEBUG_MODE = false;
|
|
|
|
void setup()
|
|
{
|
|
intitializeRegisters();
|
|
delay(2000);
|
|
|
|
Serial.begin(38400);
|
|
Serial1.begin(38400);
|
|
|
|
pinMode(19, OUTPUT);
|
|
pinMode(20, OUTPUT);
|
|
pinMode(LED_BUILTIN, OUTPUT);
|
|
digitalWrite(19, HIGH);
|
|
digitalWrite(20, HIGH);
|
|
|
|
if(DEBUG_MODE)
|
|
testRegisters();
|
|
}
|
|
|
|
void loop()
|
|
{
|
|
checkForMidiUSB();
|
|
checkForSerial();
|
|
} |