mirror of
https://github.com/kidoman/embd
synced 2024-12-31 17:11:36 +01:00
doc: pwm constants
This commit is contained in:
parent
193385104d
commit
ac32623864
7
bbb.go
7
bbb.go
@ -238,9 +238,16 @@ func (p *bbbAnalogPin) Close() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// BBBPWMDefaultPolarity represents the default polarity (Positve or 1) for pwm.
|
||||||
const BBBPWMDefaultPolarity = Positive
|
const BBBPWMDefaultPolarity = Positive
|
||||||
|
|
||||||
|
// BBBPWMDefaultDuty represents the default duty (0ns) for pwm.
|
||||||
const BBBPWMDefaultDuty = 0
|
const BBBPWMDefaultDuty = 0
|
||||||
|
|
||||||
|
// BBBPWMDefaultPeriod represents the default period (500000ns) for pwm.
|
||||||
const BBBPWMDefaultPeriod = 500000
|
const BBBPWMDefaultPeriod = 500000
|
||||||
|
|
||||||
|
// BBBPWMMaxPulseWidth represents the max period (1000000000ns) supported by pwm.
|
||||||
const BBBPWMMaxPulseWidth = 1000000000
|
const BBBPWMMaxPulseWidth = 1000000000
|
||||||
|
|
||||||
type bbbPWMPin struct {
|
type bbbPWMPin struct {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user