aboutsummaryrefslogtreecommitdiff
path: root/NucLedController/LEDColour.cs
diff options
context:
space:
mode:
Diffstat (limited to 'NucLedController/LEDColour.cs')
-rw-r--r--NucLedController/LEDColour.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/NucLedController/LEDColour.cs b/NucLedController/LEDColour.cs
index 68fb22c..e512ef9 100644
--- a/NucLedController/LEDColour.cs
+++ b/NucLedController/LEDColour.cs
@@ -28,7 +28,12 @@ namespace NucLedController
public override string ToString()
{
- return this.Identifier + this.ByteValue;
+ return Identifier + ByteValue;
+ }
+
+ public static LEDColour getLEDColour(string identifier)
+ {
+ return AvailableColours.Find(c => c.Identifier == identifier);
}
}
}