// 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); }
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); } }
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); } }