Pwm Class
Package: GHIElectronics.Endpoint.Core
Namespace: GHIElectronics.Endpoint.Core
PWM pins bundled with EPM815, for .NET's System.Device.Pwm. Pwm.Initialize connects the pin to its timer; Pwm.GetChipId and Pwm.GetChannelId give what PwmChannel needs. Channels of one timer share its frequency.
class Pwm: ...
Nested Types
| Type | Kind | Summary |
|---|---|---|
| EPM815.Pwm.Pin | Class | The pins with PWM (the timer and channel are in the comments) |
Methods
GetChannelId(int pin)
@staticmethod
def GetChannelId(pin: int) -> int:
The pin's channel in its PWM chip, for PwmChannel.Create
Returns int
GetChipId(int pin)
@staticmethod
def GetChipId(pin: int) -> int:
The PWM chip of the pin's timer (/sys/class/pwm/pwmchipN), for PwmChannel.Create
Returns int
Initialize(int pin)
@staticmethod
def Initialize(pin: int) -> None:
Connects the pin to its timer
UnInitialize(int pin)
@staticmethod
def UnInitialize(pin: int) -> None:
Gives the pin back, as it was before Initialize