Documentation ¶
Overview ¶
Package pwm manages a sysfs exposed pwm pin, providing helpers to configure the pwm signal using more commonly understood values such as frequency and duty cycles
NOTE:
When changing period, period must be >= duty_ycle or the device will reject the change, see https://github.com/torvalds/linux/blob/master/drivers/pwm/core.c#L471
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
Instance implements the Pwm interface
func (*Instance) GetDutyCycle ¶
GetDutyCycle retrieves the current pwm values and returns a value from 0 to 100.0
func (*Instance) SetDutyCycle ¶
SetDutyCycle sets the pwm values for duty cycle, percentage is a value from 0 to 100.0
Click to show internal directories.
Click to hide internal directories.