private void Send(LPD433MHzCode code) { var command = new SendLDP433MhzSignalCommand().WithPin(_pin).WithCode(code.Value).WithLength(code.Length).WithRepeats(code.Repeats); _i2CHardwareBridge.ExecuteCommand(command); }
public void Write(BinaryState state, bool commit = true) { if (commit == false) { return; } lock (_syncRoot) { if (state == BinaryState.High) { _sender.Send(_codeSequencePair.OnSequence); } else if (state == BinaryState.Low) { _sender.Send(_codeSequencePair.OffSequence); } else { throw new NotSupportedException(); } _state = state; } }