コード例 #1
0
        public static void Init()
        {
            SerialController.WriteToSerial(DeviceSymbols.LCD_POWER_CHECK);

            while (true)
            {
                Display();
            }
        }
コード例 #2
0
        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());
        }
コード例 #3
0
 private static void ClearScreen() => SerialController.WriteToSerial(DeviceSymbols.LCD_CLEAR);