Skip to main content

Class Pca9685.PwmPort

Pca9685 PWM port

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

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

Properties

Channel

Channel info

View Source
Declaration
public IPwmChannelInfo Channel { get; }

Duration

Duration

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

Period

Period

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

Frequency

Gets the overall PWM Frequency set for the PCA9685. Can't be changed per port.

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

State

State

View Source
Declaration
public bool State { get; }

Pin

Pin

View Source
Declaration
public IPin Pin { get; }

DutyCycle

Duty cycle

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

Inverted

Get or set inversion

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

TimeScale

Get or set the time scale

View Source
Declaration
public TimeScale TimeScale { get; set; }

Methods

Start()

Start PWM ports

View Source
Declaration
public void Start()

Stop()

Stop PWM ports

View Source
Declaration
public void Stop()

Dispose()

Dispose

View Source
Declaration
public void Dispose()
Exceptions

System.NotImplementedException

Implements

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