C# 클래스 Porrey.Uwp.IoT.SoftPwmExtensions

Fluent API Extension for SoftPwm.
파일 보기 프로젝트 열기: porrey/iot

공개 메소드들

메소드 설명
AssignSoftPwm ( this pin ) : ISoftPwm

Creates an instance of a SoftPwm object from the given Windows.Devices.Gpio.GpioPin instance.

Start ( this pwm ) : ISoftPwm

Starts the given SoftPwm instance.

WatchPulse ( this pwm, EventHandler eventHandler ) : ISoftPwm

Attaches a handler to the PwmPulsed event to watch for changes in the pulse.

WatchPulseWidthChanges ( this pwm, PulseWidthChangedEventHandler eventHandler ) : ISoftPwm

Attaches a handler to the PulseWidthChanged event to watch for changes to the HighPulseWidth and LowPulseWidth properties.

WithPulseFrequency ( this pwm, double pulseFrequency ) : ISoftPwm

Sets the pulse frequency (in Hz) of the SoftPwm instance.

WithValue ( this pwm, double value ) : ISoftPwm

Sets the value of a SoftPwm instance with the given value.

메소드 상세

AssignSoftPwm() 공개 정적인 메소드

Creates an instance of a SoftPwm object from the given Windows.Devices.Gpio.GpioPin instance.
public static AssignSoftPwm ( this pin ) : ISoftPwm
pin this An instance of Windows.Devices.Gpio.GpioPin to /// create the SoftPwm on.
리턴 ISoftPwm

Start() 공개 정적인 메소드

Starts the given SoftPwm instance.
public static Start ( this pwm ) : ISoftPwm
pwm this The instance of SoftPwm to start.
리턴 ISoftPwm

WatchPulse() 공개 정적인 메소드

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.
리턴 ISoftPwm

WatchPulseWidthChanges() 공개 정적인 메소드

Attaches a handler to the PulseWidthChanged event to watch for changes to the HighPulseWidth and LowPulseWidth properties.
public static WatchPulseWidthChanges ( this pwm, PulseWidthChangedEventHandler eventHandler ) : ISoftPwm
pwm this The instance of SoftPwm to start.
eventHandler PulseWidthChangedEventHandler A PulseWidthChangedEventHandler method or lambda expression..
리턴 ISoftPwm

WithPulseFrequency() 공개 정적인 메소드

Sets the pulse frequency (in Hz) of the SoftPwm instance.
public static WithPulseFrequency ( this pwm, double pulseFrequency ) : ISoftPwm
pwm this The instance of SoftPwm to start.
pulseFrequency double The pulse frequency to use given in Hz.
리턴 ISoftPwm

WithValue() 공개 정적인 메소드

Sets the value of a SoftPwm instance with the given value.
public static WithValue ( this pwm, double value ) : ISoftPwm
pwm this The instance of SoftPwm to start.
value double The value to set the SoftPwm instance to.
리턴 ISoftPwm