Initial commit

This commit is contained in:
2024-03-21 01:38:53 +01:00
commit 32ba413380
7 changed files with 171 additions and 0 deletions

18
src/util.h Normal file
View File

@@ -0,0 +1,18 @@
#pragma once
enum Brightness {
Normal,
Bright,
};
void sendTextToSign(String text, Brightness brightness = Bright) {
// debugging
Serial.print("Sending text \"");
Serial.print(text);
Serial.println("\"");
// TODO: find out how the brightness attribute in the LED sign is encoded in the UART signal
Serial1.print("f01A\\s");
Serial1.print(text);
Serial1.print("\r\r\r");
}