예제 #1
0
        public void Tick(ThreadPoolTimer timer)
        {
            if (tickCount == 0)
            {
                lcdController.PrintLine(0, "Tick Count:     ");
            }

            tickCount++;
            lcdController.PrintLine(1, tickCount.ToString());
        }
예제 #2
0
        public void Run(IBackgroundTaskInstance taskInstance)
        {
            deferral = taskInstance.GetDeferral();

            lcdController = new ArduinoLcdLibrary.LcdController();
            lcdController.PrintLine(0, "Lcd Initialized");

            timer = ThreadPoolTimer.CreatePeriodicTimer(this.Tick, TimeSpan.FromMilliseconds(1000));
        }
예제 #3
0
 public void Tick(ThreadPoolTimer timer)
 {
     tickCount++;
     lcdController.PrintLine(1, "Tick Count: " + tickCount.ToString());
 }