예제 #1
0
        // Note: A constructor summary is auto-generated by the doc builder.
        /// <summary></summary>
        /// <param name="socketNumber">The mainboard socket that has the multi-color LED plugged into it.</param>
        public MulticolorLED(int socketNumber)
            : base(socketNumber, GHI_DAISYLINK_MANUFACTURER, GHI_DAISYLINK_TYPE_MULTICOLORLED, GHI_DAISYLINK_VERSION_MULTICOLORLED, GHI_DAISYLINK_VERSION_MULTICOLORLED, 50, "MulticolorLED")
        {
            // Initialize the LED to default color and state
            TurnOff();

            DaisyLinkInterrupt += new DaisyLinkInterruptEventHandler(MulticolorLED_DaisyLinkInterrupt);
        }
예제 #2
0
 internal void OnDaisyLinkInterrupt(DaisyLinkModule sender)
 {
     DebugPrint("DaisyLink Module on socket " + sender.daisylink.Socket + " in position " + sender.PositionOnChain + " of " + sender.LengthOfChain + " has raised its interrupt.");
     if (onDaisyLinkInterrupt == null)
     {
         onDaisyLinkInterrupt = new DaisyLinkInterruptEventHandler(OnDaisyLinkInterrupt);
     }
     if (Program.CheckAndInvoke(DaisyLinkInterrupt, onDaisyLinkInterrupt, sender))
     {
         DaisyLinkInterrupt(sender);
     }
 }
예제 #3
0
        internal void OnDaisyLinkInterrupt(DaisyLinkModule sender)
        {
            DebugPrint("DaisyLink Module on socket " + sender.daisylink.Socket + " in position " + sender.PositionOnChain + " of " + sender.LengthOfChain + " has raised its interrupt.");
            if (onDaisyLinkInterrupt == null) onDaisyLinkInterrupt = new DaisyLinkInterruptEventHandler(OnDaisyLinkInterrupt);
            if (Program.CheckAndInvoke(DaisyLinkInterrupt, onDaisyLinkInterrupt, sender))
            {
                DaisyLinkInterrupt(sender);
            }

        }