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 TimePeriod Duration { get; set; }

Period

Period

View Source
Declaration
public TimePeriod 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 double DutyCycle { get; set; }

Inverted

Get or set inversion

View Source
Declaration
public bool Inverted { 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()

Implements

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