Documentation
¶
Index ¶
- Variables
- func NewComponent(ref v0.ComponentRef) (v0.Component, error)
- type Component
- func (s *Component) Endpoints() []mqhub.Endpoint
- func (s *Component) Ref() v0.ComponentRef
- func (s *Component) SetPWMFrequency(freq uint) error
- func (s *Component) SetPWMPulse(chn int, on uint, off uint) error
- func (s *Component) Start() (err error)
- func (s *Component) Stop() error
- func (s *Component) Type() v0.ComponentType
- type Config
- type State
Constants ¶
This section is empty.
Variables ¶
View Source
var Type = eng.DefineComponentType("gobot.drv.pca9685", eng.ComponentFactoryFunc(func(ref v0.ComponentRef) (v0.Component, error) { return NewComponent(ref) })). Describe("[GoBot] PCA9685 Driver (I2C)"). Register()
Type is the Component type
Functions ¶
func NewComponent ¶
func NewComponent(ref v0.ComponentRef) (v0.Component, error)
NewComponent creates a Component
Types ¶
type Component ¶
type Component struct { Config Adapter cmn.Adapter `inject:"i2c" map:"-"` // contains filtered or unexported fields }
Component is the implement of PCA9685 Component
func (*Component) SetPWMFrequency ¶
SetPWMFrequency implements common.PWMDriver
func (*Component) SetPWMPulse ¶
SetPWMPulse implements common.PWMDriver
Click to show internal directories.
Click to hide internal directories.