diff options
| author | James Barnett <james.barnett@fivium.co.uk> | 2017-08-01 21:36:39 +0100 |
|---|---|---|
| committer | James Barnett <james.barnett@fivium.co.uk> | 2017-08-01 21:36:39 +0100 |
| commit | 6f8f07b1ae8d0cb739b9485b7b18e2544764206b (patch) | |
| tree | 5bd58e00d41119f7d279d8fd98c8a2cb2893ead2 /NucLedController/LEDController.cs | |
| parent | cd68a397f67308a9b915a98837780813750e29c5 (diff) | |
| download | intel-nuc-led-controller-6f8f07b1ae8d0cb739b9485b7b18e2544764206b.tar.xz intel-nuc-led-controller-6f8f07b1ae8d0cb739b9485b7b18e2544764206b.zip | |
Add fade cycle modev0.2
Diffstat (limited to 'NucLedController/LEDController.cs')
| -rw-r--r-- | NucLedController/LEDController.cs | 7 |
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 }); } |