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