Esempio n. 1
0
        static public uint OnBeforeMeasure(object sender, EventArgs e)
        {
            uint id = ((SensorBase.SensorIdEventArgs)e).id;

            if (rgb == null)
            {
                return(0);
            }
            rgb.On((RgbLed.Led)(id % 3));
            Thread.Sleep(20);
            rgb.Off((RgbLed.Led)(id % 3));
            //   rgb.Blink((RgbLed.Led)(id % 3), 50, RgbLed.BlinkRate.VeryFast);
            return(0);
        }