mirror of
https://github.com/bbswitzer/PianoProject
synced 2026-07-14 02:01:33 -04:00
18 lines
391 B
C++
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);
|
|
}
|