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