Skip to main content

Class SerialWombatBase.PwmPort

Represents a serial wombat PwmPort

Assembly: SerialWombat.dll
View Source
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
public override bool Inverted { get; set; }

DutyCycle

PWM duty cycle

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

Frequency

PWM frequency

View Source
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
public override float Duration { get; set; }

Period

PWM period

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

State

Get the port state (is it running)

View Source
public override bool State { get; }

Fields

DefaultFrequency

The PWM default frequency

View Source
public static readonly Frequency DefaultFrequency

Methods

Start()

Start the PWM port

View Source
public override void Start()

Stop()

Stop the PWM port

View Source
public override void Stop()

Implements

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