Example #1
0
        static void BlackoutExample(PlasmaTrimController trim)
        {
            var blackState = new PlasmaTrimState()
            {
                Brightness = 170
            };                                                          //Retaining brightness as it affects sequence playback..

            Console.WriteLine("Blackout: {0}", trim.SetImmediateState(blackState)); Console.ReadLine();
        }
Example #2
0
        static void SetColourExample(PlasmaTrimController trim)
        {
            var state = new PlasmaTrimState {
                Brightness = 170, B4 = 255
            };

            Console.WriteLine("Set RGB4, to BLUE: {0}",
                              trim.SetImmediateState(state)
                              );
            Console.ReadLine();
        }
Example #3
0
        static void ColourChangeExample(PlasmaTrimController trim)
        {
            Console.WriteLine("Set RGB4, transition from green to red.");

            var state = new PlasmaTrimState
            {
                Brightness = 255
            };

            for (byte i = 0; i < 255; i++)
            {
                state.R4 = i;
                state.G4 = (byte)(255 - i);
                trim.SetImmediateState(state);
                Thread.Sleep(2); //wait 2 ms before advancing colour
            }

            Console.ReadLine();
        }