From 6f8f07b1ae8d0cb739b9485b7b18e2544764206b Mon Sep 17 00:00:00 2001 From: James Barnett Date: Tue, 1 Aug 2017 21:36:39 +0100 Subject: Add fade cycle mode --- NucLedController/LEDController.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'NucLedController/LEDController.cs') 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 }); } -- cgit v1.2.3