aboutsummaryrefslogtreecommitdiff
path: root/NucLedController/LEDController.cs
diff options
context:
space:
mode:
authorJames Barnett <james.barnett@fivium.co.uk>2017-08-01 12:52:13 +0100
committerJames Barnett <james.barnett@fivium.co.uk>2017-08-01 12:52:13 +0100
commitcd68a397f67308a9b915a98837780813750e29c5 (patch)
treefcd3694a286c5a98f3a7904ffdc6b446557065d8 /NucLedController/LEDController.cs
parent36776bfbff6f15f7239924777651392945ebb2a0 (diff)
downloadintel-nuc-led-controller-cd68a397f67308a9b915a98837780813750e29c5.tar.xz
intel-nuc-led-controller-cd68a397f67308a9b915a98837780813750e29c5.zip
Add options to disable LED and cycle colours
- Add disable option in manual LED control - Add mode to cycle through all colours at a given rate
Diffstat (limited to 'NucLedController/LEDController.cs')
-rw-r--r--NucLedController/LEDController.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/NucLedController/LEDController.cs b/NucLedController/LEDController.cs
index 7cf4847..31dc1b0 100644
--- a/NucLedController/LEDController.cs
+++ b/NucLedController/LEDController.cs
@@ -12,5 +12,10 @@
WMISystemManagement.Instance.WriteData(new byte[] { RING_LED_COMMAND_CODE, brightness, transition.ByteValue, colour.ByteValue });
}
+ public static void DisableLED()
+ {
+ WMISystemManagement.Instance.WriteData(new byte[] { RING_LED_COMMAND_CODE, 0x00, 0x00, 0x00 });
+ }
+
}
}