From 87ebd4bc76c85cd0f954b0e39c2e2757abff6b48 Mon Sep 17 00:00:00 2001 From: James Barnett Date: Tue, 29 Aug 2017 12:21:38 +0100 Subject: Add CPU utilisaiton indicator mode --- NucLedController/LEDColour.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'NucLedController/LEDColour.cs') 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); } } } -- cgit v1.2.3