Files
esp8266-led-marquee-sign-co…/src/util.h
T
2024-03-21 01:39:45 +01:00

19 lines
415 B
C

#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");
}