Skip to main content

Class SerialWombatBase.PwmPort

Represents a serial wombat PwmPort

Assembly: SerialWombat.dll
View Source
Declaration
public class SerialWombatBase.PwmPort : PwmPortBase, IPwmPort, IDigitalPort, IPort<IDigitalChannelInfo>, IDisposable

Inheritance: System.Object -> Meadow.Hardware.PortBase<Meadow.Hardware.IDigitalChannelInfo> -> Meadow.Hardware.DigitalPortBase -> Meadow.Hardware.PwmPortBase

Implements:
Meadow.Hardware.IPwmPort, Meadow.Hardware.IDigitalPort, Meadow.Hardware.IPort<Meadow.Hardware.IDigitalChannelInfo>, System.IDisposable

Properties

Inverted

Is the port inverted

View Source
Declaration
public override bool Inverted { get; set; }

DutyCycle

PWM duty cycle

View Source
Declaration
public override float DutyCycle { get; set; }

Frequency

PWM frequency

View Source
Declaration
public override Frequency Frequency { get; set; }

Duration

The amount of time, in seconds, that the a PWM pulse is high. This will always be less than or equal to the Period

View Source
Declaration
public override float Duration { get; set; }

Period

PWM period

View Source
Declaration
public override float Period { get; set; }

State

Get the port state (is it running)

View Source
Declaration
public override bool State { get; }

Fields

DefaultFrequency

The PWM default frequency

View Source
Declaration
public static readonly Frequency DefaultFrequency

Methods

Start()

Start the PWM port

View Source
Declaration
public override void Start()

Stop()

Stop the PWM port

View Source
Declaration
public override void Stop()

Implements

  • Meadow.Hardware.IPwmPort
  • Meadow.Hardware.IDigitalPort
  • Meadow.Hardware.IPort<Meadow.Hardware.IDigitalChannelInfo>
  • System.IDisposable