1
0
mirror of https://github.com/kidoman/embd synced 2024-06-12 22:09:49 +02:00

doc: group the bbb constants together

This commit is contained in:
Karan Misra 2014-03-29 14:22:57 +05:30
parent ac32623864
commit f7e8cb31d4

18
bbb.go
View File

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