Exemplo n.º 1
0
        public static void Main()
        {
            // write your code here
            var serial = new SerialLcd(Serial.COM2);

            Thread.Sleep(1000);
            serial.SetSplashScreenText("Bootup!");
        }
Exemplo n.º 2
0
    private LcdWriter()
    {
        _serialInterface = new SerialLcd(SerialPorts.COM2);

        ThreadUtil.Start(() =>
        {
            while (true)
            {
                _serialInterface.ClearDisplay();
                _serialInterface.SetCursorPosition(1, 1);

                lock (_lockObject)
                {
                    _serialInterface.Write(_lcdDisplay);
                }

                mutex.WaitOne();
            }
        });
    }