예제 #1
0
        /// <summary>
        /// Output the color to a ledstrip channel
        /// </summary>
        /// <param name="channel">The ledstrip channel</param>
        /// <param name="r">The red byte</param>
        /// <param name="g">The green byte</param>
        /// <param name="b">The blue byte</param>
        public void Output(byte channel, byte r, byte g, byte b)
        {
            byte mode = 0;

            serial.Send(mode, channel, r, g, b);
            System.Diagnostics.Debug.Print("Following data has been sent over {0}: Channel {1}, RGB: {2},{3},{4} ", serial.Comport, channel, r, g, b);
        }
예제 #2
0
 /// <summary>
 /// Set a solid color on the RGB led(s)
 /// </summary>
 /// <param name="red">Red color byte</param>
 /// <param name="green">Green color byte</param>
 /// <param name="blue">Blue color byte</param>
 public void SetSolidColor(byte channel, byte red, byte green, byte blue)
 {
     serial.Send(channel, red, green, blue);
 }