Porrey.Uwp.IoT.SoftPwmExtensions.WatchPulse C# (CSharp) Méthode

WatchPulse() public static méthode

Attaches a handler to the PwmPulsed event to watch for changes in the pulse.
public static WatchPulse ( this pwm, EventHandler eventHandler ) : ISoftPwm
pwm this The instance of SoftPwm to start.
eventHandler EventHandler A EventHandler method or lambda expression.
Résultat ISoftPwm
		public static ISoftPwm WatchPulse(this ISoftPwm pwm, EventHandler eventHandler)
		{
			if (pwm is SoftPwm)
			{
				((SoftPwm)pwm).PwmPulsed += eventHandler;
			}

			return pwm;
		}
	}