Esempio n. 1
0
        public Program()
        {
            var lcdProvider = new GpioLcdTransferProvider(Pins.GPIO_PIN_D7, Pins.GPIO_PIN_D8, Pins.GPIO_PIN_D9, Pins.GPIO_PIN_D10, Pins.GPIO_PIN_D11, Pins.GPIO_PIN_D12);
            this.lcd = new Lcd(lcdProvider);
            this.lcdScreen = new LcdScreen(20, 4, this.lcd);
            this.lyncCache = new LyncCache();

            this.lcdScreenRefreshReset = new AutoResetEvent(false);

            var lcdScreenAutoRefreshThread = new Thread(this.RunLcdScreenAutoRefresh) { Priority = ThreadPriority.BelowNormal };
            lcdScreenAutoRefreshThread.Start();
        }
Esempio n. 2
0
        public void QueueDisplayStatus(LcdScreen lcdScreen)
        {
            if (this.user == null)
            {
                return;
            }

            var page = lcdScreen.CreatePage();
            page.MinimumWaitTime = 3000;
            page.Write(1, this.user + " (" + this.status + ")");
            lcdScreen.PushPage(page);
        }