mirror of
https://github.com/kidoman/embd
synced 2025-01-03 10:31:36 +01:00
doc: group the bbb constants together
This commit is contained in:
parent
ac32623864
commit
f7e8cb31d4
10
bbb.go
10
bbb.go
@ -238,17 +238,19 @@ func (p *bbbAnalogPin) Close() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
// BBBPWMDefaultPolarity represents the default polarity (Positve or 1) for pwm.
|
// BBBPWMDefaultPolarity represents the default polarity (Positve or 1) for pwm.
|
||||||
const BBBPWMDefaultPolarity = Positive
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user