mirror of
https://github.com/bbswitzer/PianoProject
synced 2026-08-01 09:16:01 -04:00
32 lines
558 B
Arduino
32 lines
558 B
Arduino
#include <EEPROM.h>
|
|
#include <Wire.h>
|
|
#include <LiquidCrystal_I2C.h>
|
|
#include <MIDIUSB.h>
|
|
#include "input.h"
|
|
#include "lcd.h"
|
|
#include "setting.h"
|
|
#include "midi.h"
|
|
#include "serial.h"
|
|
|
|
LiquidCrystal_I2C lcd(0x27, 16, 2);//set the LCD address to 0x27 for a 16 chars and 2 line display
|
|
|
|
const bool DEBUG_MODE = false;
|
|
|
|
void setup()
|
|
{
|
|
initializeInputs();
|
|
initializeLCD();
|
|
printHomeScreen();
|
|
Serial1.begin(38400);
|
|
|
|
//send all data to ESP32 for initializationv
|
|
sendAllSettings();
|
|
}
|
|
|
|
void loop()
|
|
{
|
|
checkForInput();
|
|
checkSchedule();
|
|
checkForMidiUSB();
|
|
}
|