public void Write(GpioOutputPwm gpio) { lock (this) { Serialize(gpio); Execute(); } }
public void Write(GpioOutputPwm gpio, float dutyCycle) { lock (this) { gpio.DutyCycle = dutyCycle; Write(gpio); } }
protected void Serialize(GpioOutputPwm gpio) { BasicTypeSerializer.Put(SendContext, (byte)Command.SetPwmOutputDutyCycle); gpio.SerializeDutyCycle(SendContext, (GpioTimeBase)Timers[(int)gpio.Identifier]); }