Exemplo n.º 1
0
        /// <summary>Returns an array of MulticolorLEDs for each hardware module that is physically connected to the specified socket.</summary>
        /// <param name="socketNumber">The socket to get the objects for.</param>
        /// <returns>The array of MulticolorLEDs.</returns>
        public static MulticolorLED[] GetAll(int socketNumber)
        {
            int chainLength = DaisyLinkModule.GetLengthOfChain(socketNumber);

            if (chainLength == 0)
            {
                return(new MulticolorLED[0]);
            }

            MulticolorLED[] leds = new MulticolorLED[chainLength];
            for (int i = 0; i < leds.Length; i++)
            {
                leds[i] = new MulticolorLED(socketNumber);
            }

            return(leds);
        }
Exemplo n.º 2
0
 void ParallelCNC_DaisyLinkInterrupt(DaisyLinkModule sender)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 3
0
 void MulticolorLED_DaisyLinkInterrupt(DaisyLinkModule sender)
 {
     OnAnimationFinishedEvent(this);
 }