1
0
mirror of https://github.com/kidoman/embd synced 2024-12-22 12:50:19 +01:00

doc: pwm constants

This commit is contained in:
Kunal Powar 2014-03-29 13:39:30 +05:30
parent 193385104d
commit ac32623864

7
bbb.go
View File

@ -238,9 +238,16 @@ func (p *bbbAnalogPin) Close() error {
return nil
}
// BBBPWMDefaultPolarity represents the default polarity (Positve or 1) for pwm.
const BBBPWMDefaultPolarity = Positive
// BBBPWMDefaultDuty represents the default duty (0ns) for pwm.
const BBBPWMDefaultDuty = 0
// BBBPWMDefaultPeriod represents the default period (500000ns) for pwm.
const BBBPWMDefaultPeriod = 500000
// BBBPWMMaxPulseWidth represents the max period (1000000000ns) supported by pwm.
const BBBPWMMaxPulseWidth = 1000000000
type bbbPWMPin struct {