forked from fmueller/esp8266-led-marquee-sign-controller
Initial commit
This commit is contained in:
18
src/util.h
Normal file
18
src/util.h
Normal 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");
|
||||
}
|
||||
Reference in New Issue
Block a user