/// <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); }
void ParallelCNC_DaisyLinkInterrupt(DaisyLinkModule sender) { throw new NotImplementedException(); }
void MulticolorLED_DaisyLinkInterrupt(DaisyLinkModule sender) { OnAnimationFinishedEvent(this); }