Files
PianoProject/ControlBox/serial.cpp
T

18 lines
391 B
C++

#include "lcd.h"
namespace SerialConstants
{
extern const byte NOTE_HEADER = 201;
extern const byte SUSTAIN_HEADER = 202;
extern const byte SETTING_HEADER = 203;
extern const byte RESET_HEADER = 204;
extern const byte VOLUME_HEADER = 205;
}
void sendSerialToMain(byte header, byte setting, byte value)
{
Serial1.write(header);
Serial1.write(setting);
Serial1.write(value);
}