Example #1
0
 void IndicateDebug(GIS.FEZHAT.Color color, int round)
 {
     if (debugTimer == null)
     {
         debugTimer          = new DispatcherTimer();
         debugTimer.Interval = TimeSpan.FromMilliseconds(500);
         debugTimer.Tick    += DebugTimer_Tick;
     }
     debugCount = 0;
     debugRound = round;
     debugColor = color;
     debugTimer.Start();
 }
        private async void Start()
        {
            if (this.hat != null)
            {
                this.hat.D2.Color = GIS.FEZHAT.Color.Green;
                this.hat.D3.Color = GIS.FEZHAT.Color.Green;
            }

            currentColor = GIS.FEZHAT.Color.Magneta;

            await Windows.ApplicationModel.Core.CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal,
                                                                                                        () =>
            {
                timer.Start();
            }
                                                                                                        );
        }
 void ChangeLED(GIS.FEZHAT.Color SelColor)
 {
     this.hat.D2.Color = SelColor;
     this.hat.D3.Color = SelColor;
 }
Example #4
0
 void IndicateDebug(GIS.FEZHAT.Color color, int round)
 {
     if (debugTimer == null)
     {
         debugTimer = new DispatcherTimer();
         debugTimer.Interval = TimeSpan.FromMilliseconds(500);
         debugTimer.Tick += DebugTimer_Tick;
     }
     debugCount = 0;
     debugRound = round;
     debugColor = color;
     debugTimer.Start();
 }