Exemplo n.º 1
0
        public void CycleLeds()
        {
            const int wait = 200;

            using OnboardLed led = new OnboardLed(Device);

            RgbColor currentColor = RgbColor.None;

            while (true)
            {
                currentColor = currentColor.GetNext();
                Console.WriteLine($"Setting color to {currentColor}.");
                led.SetColor(currentColor);
                Thread.Sleep(wait);
            }
        }