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