public void Tick(ThreadPoolTimer timer) { if (tickCount == 0) { lcdController.PrintLine(0, "Tick Count: "); } tickCount++; lcdController.PrintLine(1, tickCount.ToString()); }
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)); }
public void Tick(ThreadPoolTimer timer) { tickCount++; lcdController.PrintLine(1, "Tick Count: " + tickCount.ToString()); }