/// <summary> /// Resets the led back to color green /// </summary> /// <returns></returns> public async Task Reset() { if (Mode != LedMode.Green) { Mode = LedMode.Green; await UIWriteMethods.Led(Brick.Socket, Mode); } }
/// <summary> /// Change the current led mode. /// </summary> /// <param name="mode">the mode to change led to</param> public async void SetValue(LedMode mode) { Mode = mode; await UIWriteMethods.Led(Brick.Socket, mode); }