diff --git a/bbb.go b/bbb.go index e4f375a..4f61d8f 100644 --- a/bbb.go +++ b/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