aboutsummaryrefslogtreecommitdiff
path: root/NucLedController/LEDController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'NucLedController/LEDController.cs')
-rw-r--r--NucLedController/LEDController.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/NucLedController/LEDController.cs b/NucLedController/LEDController.cs
index 31dc1b0..f070647 100644
--- a/NucLedController/LEDController.cs
+++ b/NucLedController/LEDController.cs
@@ -8,7 +8,12 @@
public static void SetLEDState(LEDTransition transition, LEDColour colour)
{
- byte brightness = 0x64; // Just hardcode to max brightness for now
+ byte brightness = 0x64; // Max brightness value
+ WMISystemManagement.Instance.WriteData(new byte[] { RING_LED_COMMAND_CODE, brightness, transition.ByteValue, colour.ByteValue });
+ }
+
+ public static void SetLEDState(LEDTransition transition, LEDColour colour, byte brightness)
+ {
WMISystemManagement.Instance.WriteData(new byte[] { RING_LED_COMMAND_CODE, brightness, transition.ByteValue, colour.ByteValue });
}