blob: 31dc1b0c886c056c6858d33337168049b5b82320 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
namespace NucLedController
{
class LEDController
{
private static readonly byte POWER_LED_COMMAND_CODE = 0x01;
private static readonly byte RING_LED_COMMAND_CODE = 0x02;
public static void SetLEDState(LEDTransition transition, LEDColour colour)
{
byte brightness = 0x64; // Just hardcode to max brightness for now
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 });
}
}
}
|