public static void Init() { SerialController.WriteToSerial(DeviceSymbols.LCD_POWER_CHECK); while (true) { Display(); } }
public static void Display(string firstLine, string secondLine, bool isLongMessage = false) { if (!IsDisplayOn) { return; } if (isLongMessage) { _isContentBusy = true; Task.Delay(DISPLAY_DELAY).ContinueWith(x => _isContentBusy = false); _forceUpdate = true; } ClearScreen(); SerialController.WriteToSerial(firstLine.ToUpper() + DeviceSymbols.LINE_BREAK + secondLine.ToUpper()); }
private static void ClearScreen() => SerialController.WriteToSerial(DeviceSymbols.LCD_CLEAR);