public LPD433MHzCodeSequence WithCode(LPD433MHzCode code) { if (code == null) throw new ArgumentNullException(nameof(code)); Codes.Add(code); return this; }
public LPD433MHzCodeSequence WithCode(LPD433MHzCode code) { if (code == null) { throw new ArgumentNullException(nameof(code)); } Codes.Add(code); return(this); }
private void Send(LPD433MHzCode code) { var command = new SendLDP433MhzSignalCommand().WithPin(_pin).WithCode(code.Value).WithLength(code.Length).WithRepeats(code.Repeats); _i2CHardwareBridge.ExecuteCommand(command); }