2 using System.Collections.Generic;
15 #region IAutoConfigOutputController Member
25 List<int> Preconfigured =
new List<int>(Cabinet.
OutputControllers.Where(OC => OC is
LedWiz).Select(LW => ((LedWiz)LW).Number));
26 List<int> Numbers = LedWiz.GetLedwizNumbers();
27 foreach (
int N
in Numbers)
29 if (!Preconfigured.Contains(N))
36 Log.
Write(
"Detected and added LedWiz Nr. {0} with name {1}".Build(LW.
Number, LW.
Name));
43 LWE.
Name =
"{0} Equivalent".Build(LW.
Name);
45 for (
int i = 1; i < 33; i++)
int Number
Gets or sets the number of the LedWiz. The number of the LedWiz must be unique. Setting changes the...
This class is used to detect and configure LedWiz output controllers automatically.
The Cabinet object describes the parts of a pinball cabinet (toys, outputcontrollers, outputs and more).
new string Name
Name of the IOutputController. This property is fully implemented in the abstract OutputControllerBas...
Interface for classes used to automatically detect and configure output controllers ...
The namespace DirectOutput.Cab.Toys contains all toy related classes.
LedWizEquivalentOutputList Outputs
Gets or sets the outputs of the LedWizEquivalent toy.
bool Contains(string Name)
Checks if a INamedItem object with the specified name exists in the list.
DirectOutput.Cab.Toys.ToyList Toys
List of IToy objects describing the toys in the cabinet.
static void Write(string Message)
Writes the specified message to the logfile.
A simple logger used to record important events and exceptions.
Out.OutputControllerList OutputControllers
List of IOutputController objects representing the output controllers in the cabinet.
The namespace DirectOutput.Cab contains all cabinet related classes like the Cabinet class itself...
void AutoConfig(Cabinet Cabinet)
This method detects and configures LedWiz output controllers automatically.
The LEDWizEquivalent toy is only used by the framework when ini files are used for the configuration ...
int LedWizNumber
Gets or sets the number of the virtual LedWiz resp. ini file to be matched with the LedWizEquivalentT...
new string Name
Gets or sets the Name of the IToy.
The LedWiz is a easy to use outputcontroller with 32 outputs which all support 49 pwm levels with a P...
LEDWizEquivalentOutput is the output object for the LedWizEquivalent IToy.