/// <summary> /// Show the Color specified by ColorNo /// </summary> /// <param name="color">A color no from the enum.</param> /// <returns></returns> public async Task SetRgbColorNoAsync(PoweredUpColor color) { AssertIsConnected(); await _protocol.SendMessageAsync(new PortOutputCommandSetRgbColorNoMessage() { HubId = _hubId, PortId = _portId, StartupInformation = PortOutputCommandStartupInformation.ExecuteImmediately, CompletionInformation = PortOutputCommandCompletionInformation.CommandFeedback, ColorNo = color, }); }
public void PortOutputCommandEncoder_Encode_PortOutputCommandSetRgbColorNoMessage(string expectedData, byte port, PoweredUpColor color) => PortOutputCommandEncoder_Encode(expectedData, new PortOutputCommandSetRgbColorNoMessage() { PortId = port, StartupInformation = PortOutputCommandStartupInformation.ExecuteImmediately, CompletionInformation = PortOutputCommandCompletionInformation.CommandFeedback, ColorNo = color, });